/* ==========================================================================
   ABLIN New Technologies — Design System
   Palette derived from the ABLIN logo: navy triangle, crimson swoosh,
   sky-blue band, off-white ground.

   Contrast (WCAG 2.1, verified):
     --text        #F2F0EA on --bg #0A1628  → 15.1:1  AAA
     --text-muted  #9FB4CB on --bg #0A1628  →  7.6:1  AAA
     --sky         #8DC3E0 on --bg #0A1628  →  9.4:1  AAA
     #FFFFFF       on --crimson #C0202C     →  5.4:1  AA  (button labels)
   Crimson is used for FILLS ONLY, never as text on dark — as text on
   #0A1628 it lands at 2.9:1 and fails.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* brand */
  --navy-900: #060E1B;
  --navy-850: #0A1628;
  --navy-800: #0E1D33;
  --navy-750: #12243D;
  --navy-700: #172E4B;
  --navy-600: #1B3A63; /* logo navy */
  --navy-500: #24507F;

  --crimson: #C0202C; /* logo red */
  --crimson-bright: #D92C39; /* fills and hover states only */
  --crimson-deep: #8E1620;
  /* crimson is unreadable as small text on dark (#D92C39 = 4.0:1). This tint
     keeps the accent legible at label sizes — 7.5:1 on --bg-deep. */
  --crimson-text: #FF7A85;

  --wa-green: #16703B; /* darkened from #1F8A4C so white labels clear 4.5:1 */
  --wa-green-hover: #1E8C4B;

  --sky: #8DC3E0; /* logo sky band */
  --sky-bright: #B4DAEF;
  --sky-deep: #4E90B8;

  --bone: #F2F0EA; /* logo ground */

  /* semantic */
  --bg: var(--navy-850);
  --bg-deep: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: var(--navy-750);
  --surface-3: var(--navy-700);
  --border: rgba(141, 195, 224, 0.14);
  --border-strong: rgba(141, 195, 224, 0.26);
  --text: var(--bone);
  --text-muted: #9FB4CB;
  --text-dim: #6F8AA6;
  --accent: var(--sky);
  --cta: var(--crimson);

  /* type */
  --font-head: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.75rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* space — "spacious" marketing scale */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* form */
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --shadow-l: 0 24px 60px rgba(0, 0, 0, 0.48);

  --container: 1240px;
  --container-narrow: 820px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* ---------- 2. Reset ---------------------------------------------------- */

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

/* The browser's own [hidden] { display: none } lives in the UA stylesheet, so
   ANY author rule that sets display — .product { display: flex }, .card, .step —
   silently overrides it and the element keeps rendering. The catalog filter sets
   the hidden attribute, so without this the filter appears to do nothing. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  font-weight: 700;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}
h4 {
  font-size: var(--step-0);
}

p {
  margin: 0 0 var(--space-s);
  text-wrap: pretty;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: var(--sky-bright);
}

ul,
ol {
  margin: 0 0 var(--space-s);
  padding-left: 1.25rem;
}

strong {
  font-weight: 600;
  color: #fff;
}

/* visible focus everywhere — never removed */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

/* ---------- 3. Layout helpers ------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 9vw, var(--space-3xl));
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, var(--space-2xl));
}

.section--deep {
  background: var(--bg-deep);
}

.section--surface {
  background: var(--surface);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-s);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--crimson);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-s);
  color: #fff;
}

/* ---------- 4. Section headers ----------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-s);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--crimson);
  flex: none;
}

.eyebrow--num::before {
  display: none;
}

.eyebrow-num {
  font-variant-numeric: tabular-nums;
  color: var(--crimson-text);
  font-weight: 700;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-l);
}

/* :not(.eyebrow) — an .eyebrow is a <p> too, and this rule would otherwise win
   on specificity and blow the small label up to lead-paragraph size */
.section-head p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: var(--step-1);
  margin-bottom: 0;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
}

/* ---------- 5. Buttons ------------------------------------------------- */

.btn {
  --btn-bg: var(--crimson);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px; /* touch target */
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn:hover {
  background: var(--crimson-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 32, 44, 0.32);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(141, 195, 224, 0.1);
  border-color: var(--sky);
  color: #fff;
  box-shadow: none;
}

.btn--sky {
  --btn-bg: var(--sky);
  --btn-fg: var(--navy-900);
}
.btn--sky:hover {
  background: var(--sky-bright);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(141, 195, 224, 0.28);
}

.btn--wa {
  --btn-bg: var(--wa-green);
  --btn-fg: #fff;
}
.btn--wa:hover {
  background: var(--wa-green-hover);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 138, 76, 0.3);
}

.btn--lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: var(--step-1);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.btn .ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--sky);
  min-height: 44px;
}
.tlink .ico {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--dur) var(--ease);
}
.tlink:hover .ico {
  transform: translateX(4px);
}

/* ---------- 6. Header / nav -------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 27, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 14, 27, 0.96);
  border-bottom-color: var(--border-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
  flex: none;
}
.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-s);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(141, 195, 224, 0.08);
}

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

.nav-links a[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson-text);
  margin-left: 0.45rem;
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .ico {
  width: 24px;
  height: 24px;
}

.nav-toggle[aria-expanded="true"] .ico-menu,
.nav-toggle[aria-expanded="false"] .ico-close {
  display: none;
}

@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-s) clamp(1.25rem, 4vw, 2.5rem) var(--space-m);
    background: var(--navy-900);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-l);
  }
  .nav-links.is-open a {
    min-height: 52px;
    padding-inline: 0;
    font-size: var(--step-1);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links.is-open a:hover {
    background: transparent;
  }
  .nav-cta.is-open {
    display: inline-flex;
    position: absolute;
    z-index: 1;
  }
}

/* ---------- 7. Hero ---------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-deep);
  isolation: isolate;
}

/* layered brand-coloured glow, standing in for the reference image's
   lit 3D renders without needing heavy assets */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.hero::before {
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(27, 58, 99, 0.85), transparent 68%);
}

.hero::after {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -28%;
  left: -10%;
  background: radial-gradient(circle, rgba(192, 32, 44, 0.4), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, var(--space-xl));
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}


/* The hero headline is a full tagline sentence (~82 chars), not a short hook.
   At --step-5 it ran five lines and pushed the primary CTA below the fold on a
   860px-tall screen, so it is capped lower than a normal h1. The grid column
   already constrains the measure — no max-width needed. */
.hero h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
  margin-bottom: var(--space-m);
}

.hero h1 .accent {
  color: var(--sky);
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-m);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-l);
  padding: 0;
}

.hero-tags li {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 3;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* product shots are on white; blend them into the dark canvas */
  mix-blend-mode: luminosity;
  opacity: 0.92;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(27, 58, 99, 0.55), rgba(6, 14, 27, 0.2) 45%, rgba(192, 32, 44, 0.28));
  mix-blend-mode: screen;
}

.hero-figure-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-m);
  background: linear-gradient(to top, rgba(6, 14, 27, 0.94), transparent);
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
}

.hero-figure-cap span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
}

/* ---------- hero video ------------------------------------------------- */

/* The still-photo treatment (luminosity blend + screen-blend colour wash)
   exists to sink a white-background product shot into the dark hero. The
   video is already dark and graded, so both would only wash it out. */
.hero-figure--video {
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
}

.hero-figure--video::after {
  display: none;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WCAG 2.2.2: anything that plays automatically for more than five seconds
   needs a visible way to stop it. This clip loops, so the control is required,
   not optional. */
.video-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 240, 234, 0.35);
  border-radius: 50%;
  background: rgba(6, 14, 27, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.video-toggle:hover {
  background: rgba(6, 14, 27, 0.85);
  border-color: var(--sky);
  transform: scale(1.06);
}

.video-toggle .ico {
  width: 17px;
  height: 17px;
}

/* play icon shows while paused, pause icon while playing */
.video-toggle .ico-pause,
.video-toggle.is-playing .ico-play {
  display: none;
}

.video-toggle.is-playing .ico-pause {
  display: block;
}

/* when autoplay is suppressed (reduced motion, Save-Data, slow link) the
   control becomes the primary affordance, so make it read as one */
.video-toggle.is-prominent {
  width: 60px;
  height: 60px;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background: rgba(192, 32, 44, 0.92);
  border-color: transparent;
}

.video-toggle.is-prominent:hover {
  background: var(--crimson-bright);
  transform: translate(50%, -50%) scale(1.06);
}

.video-toggle.is-prominent .ico {
  width: 22px;
  height: 22px;
}

/* Shallow laptop screens (1366x768 leaves ~700px of usable viewport). Without
   this the full tagline headline pushes the primary CTA below the fold.
   Must sit AFTER the .hero h1 / .hero-sub / .hero-tags rules above — a media
   query adds no specificity, so source order is what decides the winner. */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero {
    padding-block: 2rem 2.5rem;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 1.1rem + 1.8vw, 2.5rem);
  }
  .hero-sub {
    margin-bottom: var(--space-s);
  }
  .hero-tags {
    margin-bottom: var(--space-m);
  }
}

/* ---------- 8. Stats --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-deep);
  padding: var(--space-m) var(--space-s);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-num .unit {
  color: var(--crimson-bright);
}

.stat-label {
  display: block;
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---------- 9. Bento grid ---------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-s);
}

@media (min-width: 900px) {
  .bento--6 {
    grid-template-columns: repeat(6, 1fr);
  }
  .span-2 {
    grid-column: span 2;
  }
  .span-3 {
    grid-column: span 3;
  }
  .span-4 {
    grid-column: span 4;
  }
  .span-6 {
    grid-column: span 6;
  }
  .row-2 {
    grid-row: span 2;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.card--accent {
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800) 70%);
  border-color: var(--border-strong);
}

.card--crimson {
  background: linear-gradient(150deg, var(--crimson-deep), var(--navy-800) 78%);
  border-color: rgba(192, 32, 44, 0.4);
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin-bottom: var(--space-s);
  border-radius: var(--radius-s);
  background: rgba(141, 195, 224, 0.12);
  color: var(--sky);
}

.card-ico .ico {
  width: 22px;
  height: 22px;
}

.card--crimson .card-ico {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.card-foot {
  margin-top: auto;
  padding-top: var(--space-s);
}

.card-media {
  margin: calc(var(--space-m) * -1) calc(var(--space-m) * -1) var(--space-m);
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

/* Product shots sit on white and need `contain` so nothing is cropped. Full-bleed
   fabric and trim photography instead needs `cover` — `contain` would letterbox
   a texture and leave white bars down the sides. */
.card-media--cover {
  background: var(--surface-2);
}

.card-media--cover img {
  object-fit: cover;
}

/* For photos shot on a light-grey seamless sweep rather than pure white, a #fff
   tile leaves a visible band where the letterbox meets the photo. The tile
   carries the same gradient as the sweep so the letterbox disappears into it.
   Defaults suit a mid-grey sweep; override per photo with
   style="--sweep-top:#f7f8fa; --sweep-bottom:#f2f2f2". */
.card-media--soft,
.product-media--soft {
  background: linear-gradient(var(--sweep-top, #efefef), var(--sweep-bottom, #e5e5e5));
}

/* ---------- 10. Product / machinery catalog ---------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-l);
}

.filter-btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--sky);
}

.filter-btn[aria-pressed="true"] {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.filter-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  margin-left: 0.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--space-s);
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.product:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  flex: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms var(--ease);
}

/* items we supply but hold no photograph for — an honest placeholder rather
   than a stock image that misrepresents the machine */
.product-media--none {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  border-bottom: 1px solid var(--border);
}

.product-media--none .ico {
  width: 40px;
  height: 40px;
  color: var(--sky-deep);
}

.product-media--none span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product:hover .product-media img {
  transform: scale(1.05);
}

.product-body {
  padding: var(--space-s);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-cat {
  font-family: var(--font-head);
  font-size: 0.75rem; /* 12px floor — sky-deep was too dim at this size */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}

.product h3 {
  font-size: var(--step-0);
  margin: 0;
  letter-spacing: -0.01em;
}

.product p {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: 0;
}

.no-results {
  padding: var(--space-xl) var(--space-m);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-l);
}

/* ---------- 11. Customer logo wall ------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-s);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-s);
  animation: marquee 46s linear infinite;
}

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

.marquee--rev .marquee-track {
  animation-direction: reverse;
  animation-duration: 54s;
}

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

.cust {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  padding: 0.85rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
}

.cust-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.cust-flag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky);
  padding-left: 0.7rem;
  border-left: 1px solid var(--border-strong);
}

/* ---------- 12. Tables ------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--step--1);
}

caption {
  padding: var(--space-s) var(--space-m);
  text-align: left;
  color: var(--text-muted);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: 0.9rem var(--space-s);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  position: sticky;
  top: 0;
  background: var(--navy-700);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(141, 195, 224, 0.04);
}

th[scope="row"] {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

td {
  color: var(--text-muted);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill--good {
  background: rgba(141, 195, 224, 0.16);
  color: var(--sky-bright);
}

.pill--best {
  background: rgba(31, 138, 76, 0.22);
  color: #6ee7a0;
}

/* ---------- 13. Process / steps ---------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-s);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step {
  position: relative;
  padding: var(--space-m);
  padding-top: calc(var(--space-m) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  transition: border-color var(--dur) var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-m);
  left: var(--space-m);
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--crimson-text);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: var(--step-0);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 14. Feature list ------------------------------------------- */

.flist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-s);
}

.flist li {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}

.flist .ico {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.35rem;
  color: var(--sky);
}

.flist h3 {
  font-size: var(--step-0);
  margin-bottom: 0.2rem;
}

.flist p {
  color: var(--text-muted);
  font-size: var(--step--1);
  margin: 0;
}

/* definition-style key/value rows */
.kv {
  margin: 0;
  border-top: 1px solid var(--border);
}

.kv > div {
  display: grid;
  gap: 0.2rem var(--space-m);
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .kv > div {
    grid-template-columns: 190px 1fr;
  }
}

.kv dt {
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}

.kv dd {
  margin: 0;
  color: var(--text-muted);
}

/* tel: and mailto: links are the highest-intent taps on the site — give them a
   full 44px target even though they sit inline inside <br>-separated text */
.kv dd a,
.market p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

/* ---------- 15. CTA band ---------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900) 62%);
  isolation: isolate;
}

.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  right: -8%;
  bottom: -40%;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(192, 32, 44, 0.5), transparent 68%);
}

.cta-band h2 {
  max-width: 26ch;
}

.cta-band p:not(.eyebrow) {
  max-width: 56ch;
  color: rgba(242, 240, 234, 0.82);
  font-size: var(--step-1);
}

/* ---------- 16. Forms ------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-m);
}

.form-row {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}

.field label .req {
  color: var(--crimson-text);
  margin-left: 0.15rem;
}

.field .hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--navy-900);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DC3E0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--sky-deep);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-color: var(--sky);
}

/* inline error, sits next to its own field */
.field .error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff9aa2; /* 6.9:1 on --navy-900 — crimson itself would fail as text */
}

.field .error .ico {
  width: 15px;
  height: 15px;
  flex: none;
}

.result-count {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: var(--space-s);
  font-variant-numeric: tabular-nums;
}

.field.has-error .error {
  display: flex;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff9aa2;
}

.form-note {
  font-size: var(--step--1);
  color: var(--text-dim);
  margin: 0;
}

.form-status {
  display: none;
  gap: 0.6rem;
  align-items: flex-start;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  border: 1px solid;
  font-size: var(--step--1);
}

.form-status.is-visible {
  display: flex;
}

.form-status--ok {
  background: rgba(31, 138, 76, 0.14);
  border-color: rgba(110, 231, 160, 0.4);
  color: #a7f3c9;
}

.form-status--error {
  background: rgba(192, 32, 44, 0.14);
  border-color: rgba(255, 154, 162, 0.45);
  color: #ff9aa2;
}

/* one status box, two faces — show only the icon matching the current state */
.form-status .ico-ok,
.form-status .ico-err {
  display: none;
}

.form-status--ok .ico-ok,
.form-status--error .ico-err {
  display: block;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

/* submit button while the request is in flight */
.btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.form-status .ico {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.1rem;
}

/* ---------- 17. Footer ------------------------------------------------ */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl) var(--space-m);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-bottom: var(--space-l);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-s);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0;
}

.footer-col a,
.footer-col p {
  color: var(--text-muted);
}

/* 44px minimum: footer phone numbers and emails are genuinely tapped */
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

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

.footer-col p {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.footer-brand .brand {
  margin-bottom: var(--space-s);
}

.footer-tag {
  color: var(--text-muted);
  max-width: 34ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-m);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 18. Page hero (subpages) ---------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 56vw;
  height: 56vw;
  max-width: 680px;
  max-height: 680px;
  top: -46%;
  right: -10%;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(27, 58, 99, 0.8), transparent 68%);
}

.page-hero h1 {
  font-size: var(--step-4);
  max-width: 24ch;
}

.page-hero p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: var(--step-1);
  max-width: 62ch;
  margin-bottom: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 var(--space-m);
  padding: 0;
  font-size: var(--step--1);
  color: var(--text-dim);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.crumbs li + li::before {
  content: "/";
  color: var(--text-dim);
}

/* breadcrumbs read small but still need a 44px tap area */
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

.crumbs a:hover {
  color: var(--sky);
}

/* ---------- 19. Misc -------------------------------------------------- */

.two-col {
  display: grid;
  gap: clamp(2rem, 5vw, var(--space-xl));
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col--wide-left {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.sticky-side {
  position: sticky;
  top: 6.5rem;
}

.figure-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.figure-frame figcaption {
  padding: var(--space-s) var(--space-m);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--step--1);
  border-top: 1px solid var(--border);
}

.map-list {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.market {
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--crimson);
}

.market h3 {
  font-size: var(--step-0);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.market p {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: 0;
}

.badge-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(141, 195, 224, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: var(--step--1);
  color: var(--sky-bright);
}

.badge-note .ico {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- 20. Motion ------------------------------------------------ */

/* GSAP sets the final state; this is the pre-JS fallback so content is
   never invisible if JS fails to load */
.reveal {
  opacity: 1;
}

html.gsap-ready .reveal {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.gsap-ready .reveal {
    opacity: 1;
  }
  .marquee-track {
    animation: none;
    transform: none;
  }
  .btn:hover,
  .product:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .cta-band,
  .marquee,
  .nav-toggle {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
