/* =========================================================
   RWP — Rizata Wijaya Polyurethane
   Main stylesheet
   ---------------------------------------------------------
   1. Tokens          6. Buttons & links
   2. Reset / base    7. Sections & components
   3. Typography      8. Page-specific
   4. Layout          9. Footer
   5. Header / nav   10. Utilities & responsive
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand (from company profile) */
  --navy-900: #0d1b3d;
  --navy-800: #122650;
  --navy-700: #1a3570;
  --navy: #1e3a78;
  --navy-400: #4a66a8;
  --red: #e31e24;
  --red-600: #c4161c;
  --red-100: #fde8e9;

  /* Neutrals */
  --ink: #0f1424;
  --ink-2: #3c4256;
  --ink-3: #6b7185;
  --line: #e2e4ea;
  --line-2: #d0d4de;
  --paper: #f4f4f2;
  --paper-2: #ebebe7;
  --white: #ffffff;

  /* Type */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-hero: clamp(2.8rem, 6.6vw, 6.7rem);
  --fs-h1: clamp(2.6rem, 6vw, 5.6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(80px, 11vw, 100px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur: .9s;

  --shadow-sm: 0 1px 2px rgba(13, 27, 61, .06), 0 2px 8px rgba(13, 27, 61, .05);
  --shadow-md: 0 10px 30px -10px rgba(13, 27, 61, .18);
  --shadow-lg: 0 30px 80px -20px rgba(13, 27, 61, .28);
}

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--red);
  color: var(--white);
}

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

/* ---------- 3. TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--ink-2);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

.accent {
  color: var(--red);
}

.muted {
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s var(--ease-out) .2s;
}

.eyebrow.is-in::before,
.is-in .eyebrow::before {
  transform: scaleX(1);
}

.on-dark .eyebrow {
  color: rgba(255, 255, 255, .65);
}

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tight {
  padding-block: calc(var(--section) * .6);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(40px, 6vw, 40px);
}

.section-head--split {
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 2rem 4rem;
}

.on-dark {
  background: var(--navy-900);
  color: var(--white);
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

.on-dark p {
  color: rgba(255, 255, 255, .7);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

/* ---------- 5. HEADER / NAV ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  transition: transform .6s var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) - var(--gutter) * 2);
  margin-inline: auto;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-sm);
  transition: background .4s, box-shadow .4s, padding .4s var(--ease-out);
}

.site-header.is-scrolled .nav {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, .88);
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  overflow: hidden;
  white-space: nowrap;
  transition: color .3s;
}

.nav__link span {
  display: block;
  transition: transform .5s var(--ease-out);
}

.nav__link span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--navy);
}

.nav__link:hover span {
  transform: translateY(-100%);
}

.nav__link.is-active {
  color: var(--navy);
  background: var(--paper-2);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language switch (flags, built by js/i18n.js) */
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
}

.lang-switch__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  opacity: .45;
  filter: grayscale(.6);
  transition: opacity .3s, filter .3s, background .3s, transform .3s var(--ease-out);
}

.lang-switch__btn svg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13, 27, 61, .12);
}

.lang-switch__btn:hover {
  opacity: .85;
  filter: none;
  transform: scale(1.06);
}

.lang-switch__btn[aria-current] {
  opacity: 1;
  filter: none;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
}

.nav__toggle i {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}

.nav__toggle i:nth-child(1) {
  top: 19px;
}

.nav__toggle i:nth-child(2) {
  top: 25px;
}

.menu-open .nav__toggle i:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-open .nav__toggle i:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Mobile menu */
/* Header: hamburger menu below 1000px (six menu items no longer fit next to logo + buttons) */
@media (max-width: 1000px) {
  .nav__links,
  .nav__cta .btn {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav {
    padding: 8px 8px 8px 18px;
  }
}

/* Six menu items: tighter on small laptops until the mobile menu takes over at 1000px */
@media (max-width: 1200px) {
  .nav__links {
    gap: 0;
  }

  .nav__link {
    padding: 10px 11px;
    font-size: .88rem;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy-900);
  color: var(--white);
  padding: 120px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 50px) 50px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}

.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 50px) 50px);
  visibility: visible;
}

.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .3s;
}

.mobile-menu__links a small {
  font-size: .8rem;
  font-family: var(--font-body);
  color: var(--red);
  font-weight: 600;
}

.mobile-menu__links a.is-active {
  color: var(--red);
}

.menu-open .mobile-menu__links a {
  opacity: 1;
  transform: none;
}

.menu-open .mobile-menu__links li:nth-child(1) a {
  transition-delay: .25s;
}

.menu-open .mobile-menu__links li:nth-child(2) a {
  transition-delay: .3s;
}

.menu-open .mobile-menu__links li:nth-child(3) a {
  transition-delay: .35s;
}

.menu-open .mobile-menu__links li:nth-child(4) a {
  transition-delay: .4s;
}

.menu-open .mobile-menu__links li:nth-child(5) a {
  transition-delay: .45s;
}

.mobile-menu__foot {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  display: grid;
  gap: 4px;
}

.mobile-menu__foot a {
  color: var(--white);
}

/* ---------- 6. BUTTONS & LINKS ---------- */
.btn {
  --bg: var(--navy);
  --fg: var(--white);
  --fill: var(--red);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 16px 18px 16px 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color .4s, transform .4s var(--ease-out);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--fill);
  transform: translate(-50%, -50%);
  transition: width .6s var(--ease-out), height .6s var(--ease-out);
}

.btn:hover::before {
  width: 260%;
  height: 600%;
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
  position: relative;
}

.btn__icon svg {
  width: 14px;
  height: 14px;
  transition: transform .5s var(--ease-out);
}

.btn__icon svg+svg {
  position: absolute;
  transform: translateX(-200%);
}

.btn:hover .btn__icon svg:first-child {
  transform: translateX(200%);
}

.btn:hover .btn__icon svg+svg {
  transform: translateX(0);
}

.btn--sm {
  padding: 10px 12px 10px 18px;
  font-size: .88rem;
}

.btn--sm .btn__icon {
  width: 26px;
  height: 26px;
}

.btn--red {
  --bg: var(--red);
  --fill: var(--navy);
}

.btn--light {
  --bg: var(--white);
  --fg: var(--navy);
  --fill: var(--red);
}

.btn--light:hover {
  --fg: var(--white);
}

.btn--light .btn__icon {
  background: var(--paper-2);
}

.btn--light:hover .btn__icon {
  background: rgba(255, 255, 255, .16);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--navy);
  --fill: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}

.btn--ghost:hover {
  --fg: var(--white);
}

.btn--ghost .btn__icon {
  background: var(--paper-2);
}

.btn--ghost:hover .btn__icon {
  background: rgba(255, 255, 255, .16);
}

.on-dark .btn--ghost {
  --fg: var(--white);
  --fill: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
}

.on-dark .btn--ghost:hover {
  --fg: var(--navy);
}

.on-dark .btn--ghost .btn__icon {
  background: rgba(255, 255, 255, .12);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}

.link-arrow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform .4s var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- 7. SECTIONS & COMPONENTS ---------- */

/* Hero (home) */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(120px, 16vh, 140px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 75%);
  opacity: .55;
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.hero__heading {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.hero__kicker,
.page-hero__kicker {
  line-height: 1.5;
  margin: 0;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .92;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
}

.hero__title .line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
}

.hero__title .line--red {
  color: var(--red);
}

.hero__meta {
  display: grid;
  gap: 1.5rem;
  justify-items: end;
  text-align: right;
  padding-top: 1rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
}

.hero__badge b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  margin-top: clamp(32px, 5vw, 20px);
  flex: 1;
}

.hero__intro {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 8px;
}

.hero__intro .actions,
.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}

.hero__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 27, 61, .55));
}

.hero__chip {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 20px 14px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .25);
}

.hero__chip strong {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--red);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.hero__chip span {
  font-size: .85rem;
  line-height: 1.35;
  opacity: .9;
}

.hero__play {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.hero__play svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

.hero__play svg.ring text {
  font-size: 10.5px;
  letter-spacing: 3.2px;
  fill: var(--white);
  font-weight: 600;
  text-transform: uppercase;
}

.hero__play .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--navy);
}

.hero__play .dot svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: .8rem;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__scroll i {
  width: 1px;
  height: 36px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--red);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: clamp(150px, 15vh, 220px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero__inner>.lead,
.page-hero__aside {
  max-width: 60ch;
}

.page-hero__head {
  display: grid;
  gap: 1.25rem;
}

.page-hero__title {
  font-size: clamp(3rem, 7.6vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .95;
}

.page-hero__crumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

.page-hero__crumb a:hover {
  color: var(--red);
}

.page-hero__aside {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.page-hero__num {
  position: absolute;
  right: calc(var(--gutter) * -0.5);
  top: 90px;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(10rem, 28vw, 26rem);
  line-height: .8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none;
  user-select: none;
}

.page-banner {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  min-height: 260px;
  position: relative;
}

.page-banner img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

/* Marquee */
.marquee {
  --gap: clamp(28px, 4vw, 56px);
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  padding-block: clamp(20px, 3vw, 34px);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 38s linear infinite;
}

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

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.marquee--dark {
  border-color: rgba(255, 255, 255, .1);
}

.marquee--dark .marquee__item {
  color: var(--white);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
  padding-left: 24px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
}

.stat__num sup {
  font-size: .45em;
  color: var(--red);
  margin-left: 4px;
  line-height: 1.2;
}

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

.stats--2x2 .stat {
  padding-bottom: 24px;
}

.stats--2x2 .stat:nth-child(odd) {
  padding-left: 0;
}

.stats--2x2 .stat:nth-child(even) {
  border-right: 0;
}

.stats--2x2 .stat:nth-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.stat__label {
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--ink-3);
  max-width: 22ch;
}

/* About intro (home) */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.intro__media {
  position: relative;
}

.intro__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.intro__img img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.intro__float {
  position: absolute;
  right: -28px;
  bottom: 40px;
  width: 46%;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}

.intro__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__body {
  display: grid;
  gap: 1.5rem;
}

.big-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.big-quote em {
  font-style: normal;
  color: var(--red);
}

/* Bento — solutions */
.bento {
  display: grid;
  gap: clamp(12px, 1.5vw, 20px);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
}

.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--white);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 260px;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}

.tile:hover {
  box-shadow: var(--shadow-lg);
}

.tile__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--red);
}

.tile h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.tile p {
  font-size: .95rem;
}

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

.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.tile:hover .tile__img img {
  transform: scale(1.06);
}

.tile--photo {
  color: var(--white);
}

.tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 27, 61, .05) 20%, rgba(13, 27, 61, .88));
}

.tile--photo h3,
.tile--photo .tile__num {
  color: var(--white);
}

.tile--photo p {
  color: rgba(255, 255, 255, .78);
}

.tile--navy {
  background: var(--navy);
  color: var(--white);
}

.tile--navy h3 {
  color: var(--white);
}

.tile--navy p {
  color: rgba(255, 255, 255, .72);
}

.tile--red {
  background: var(--red);
}

.tile--red h3,
.tile--red p,
.tile--red .tile__num {
  color: var(--white);
}

.tile__arrow {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--navy);
  transition: transform .5s var(--ease-out), background .4s, color .4s;
}

.tile__arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform .5s var(--ease-out);
}

.tile:hover .tile__arrow {
  background: var(--red);
  color: var(--white);
}

.tile:hover .tile__arrow svg {
  transform: rotate(0);
}

.tile--photo .tile__arrow,
.tile--navy .tile__arrow {
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.tile .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.row-2 {
  grid-row: span 2;
}

/* Products bento: 2 tall tiles left, 3 stacked right, 3 across the bottom */
@media (min-width: 1101px) {
  .bento--products {
    grid-auto-rows: minmax(130px, auto);
  }

  .bento--products .tile {
    min-height: 0;
  }

  .bento--products> :nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
  }

  .bento--products> :nth-child(2) {
    grid-column: 1 / 7;
    grid-row: 4 / 7;
  }

  .bento--products> :nth-child(3) {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
  }

  .bento--products> :nth-child(4) {
    grid-column: 7 / 13;
    grid-row: 3 / 5;
  }

  .bento--products> :nth-child(5) {
    grid-column: 7 / 13;
    grid-row: 5 / 7;
  }

  .bento--products> :nth-child(n+6) {
    grid-row: 7 / 9;
  }
}

/* Tags / chips */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.on-dark .tag,
.tile--photo .tag,
.tile--navy .tag {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-color: rgba(255, 255, 255, .18);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  counter-reset: step;
  position: relative;
}

.process__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 1px;
  background: rgba(255, 255, 255, .15);
}

.process__line i {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2s var(--ease-out) .3s;
}

.process.is-in .process__line i {
  transform: scaleX(1);
}

.step {
  position: relative;
  padding-top: 0;
}

.step__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  transition: background .4s, transform .5s var(--ease-out);
}

.step:hover .step__icon {
  background: var(--red);
  transform: scale(1.08) rotate(-6deg);
}

.step__icon svg {
  width: 28px;
  height: 28px;
}

.step__no {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: .5rem;
}

.step h3 {
  margin-bottom: .6rem;
}

.step p {
  font-size: .95rem;
}

/* Feature list (why choose us) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 36px) clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feature:not(:nth-child(3n+1)) {
  padding-left: clamp(20px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
}

.feature__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  display: block;
  transition: transform .6s var(--ease-out);
}

.feature h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: .5rem;
}

.feature p {
  font-size: .95rem;
}

.feature::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}

.feature:hover::after {
  transform: scaleX(1);
}

.feature:hover .feature__no {
  transform: translateX(8px);
}

@media (min-width: 901px) {
  .features--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .features--4 .feature:not(:nth-child(4n+1)) {
    padding-left: clamp(20px, 2.4vw, 36px);
    border-left: 1px solid var(--line);
  }

  .features--4 .feature:nth-child(4n+1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Client logos strip (home) */
.clients {
  padding-block: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.clients__inner {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.clients__label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.6;
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}

.clients__logo {
  height: 72px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: var(--r-md);
  transition: background .4s;
}

.clients__logo img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .4s, opacity .4s, transform .5s var(--ease-out);
}

.clients__logo:hover {
  background: var(--white);
}

.clients__logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

.clients__ph {
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: .72rem;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  width: 100%;
  height: 100%;
  place-content: center;
}

.clients__ph svg {
  width: 20px;
  height: 20px;
  color: var(--line-2);
}

/* Facility loop (home) */
.facility__intro {
  display: grid;
  gap: 1.25rem;
  align-content: end;
}

.facility__hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ink-3);
}

.facility__hint svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.facility__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}

.facility__btn svg {
  width: 18px;
  height: 18px;
}

.facility__btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.facility {
  --gap: clamp(14px, 1.6vw, 24px);
  overflow: hidden;
  padding-block: 4px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.facility__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding-right: var(--gap);
  animation: facilityLoop var(--dur, 55s) linear infinite;
}

.facility:hover .facility__track,
.facility:focus-within .facility__track,
.facility.is-paused .facility__track {
  animation-play-state: paused;
}

@keyframes facilityLoop {
  to {
    transform: translateX(-50%);
  }
}

.machine {
  flex: 0 0 clamp(250px, 26vw, 360px);
  margin: 0;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  text-align: left;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
}

.machine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.machine:hover img,
.machine:focus-visible img {
  transform: scale(1.06);
}

.machine::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(13, 27, 61, .85));
  pointer-events: none;
}

.machine__cap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--white);
}

.machine__cap small,
.lightbox__cap small {
  display: table;
  margin-bottom: .5rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}

/* Lightbox (machine photos) */
.lightbox {
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.lightbox::backdrop {
  background: rgba(13, 27, 61, .82);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  animation: lightboxIn .45s var(--ease-out);
}

.lightbox[open]::backdrop {
  animation: fadeIn .35s ease;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.lightbox__figure {
  margin: 0;
  display: grid;
}

.lightbox__img {
  width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  background: #0a1430;
}

.lightbox__img.is-swapping {
  animation: fadeIn .35s ease;
}

.lightbox__cap {
  padding: 18px 150px 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: rgba(13, 27, 61, .55);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background .3s, transform .4s var(--ease-out);
}

.lightbox__close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox__nav .facility__btn {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, .25);
  color: var(--white);
}

.lightbox__nav .facility__btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.lightbox__prev svg {
  transform: rotate(180deg);
}

.lightbox__count {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  min-width: 3.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  background: var(--navy);
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 88px);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 2rem;
  align-items: end;
  color: var(--white);
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.cta-band p {
  color: rgba(255, 255, 255, .72);
  margin-top: 1rem;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, .7);
}

.cta-band__shape {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  transform: rotate(45deg);
  right: -90px;
  top: -140px;
  background: var(--red);
  opacity: .95;
}

.cta-band__shape--2 {
  width: 180px;
  height: 180px;
  right: 220px;
  top: auto;
  bottom: -110px;
  background: var(--navy-400);
  opacity: .5;
}

.cta-band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .14;
}

.cta-band__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.cta-band .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Diamond decorations (brand motif) */
.diamond {
  position: absolute;
  transform: rotate(45deg);
  pointer-events: none;
}

.diamond--red {
  background: var(--red);
}

.diamond--vm {
  width: 90px;
  height: 90px;
  right: -30px;
  bottom: -30px;
  opacity: .12;
}

.diamond--caps {
  width: 300px;
  height: 300px;
  left: -150px;
  bottom: -150px;
  background: var(--navy-700);
}

.diamond--navy {
  background: var(--navy);
}

/* Split card (vision/mission) */
.vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
}

.vm__card {
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.vm__card--navy {
  background: var(--navy);
  color: var(--white);
}

.vm__card--navy p,
.vm__card--navy li {
  color: rgba(255, 255, 255, .82);
}

.vm__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
}

.vm__label svg {
  width: 16px;
  height: 16px;
}

.vm__card--navy .vm__label {
  background: rgba(255, 255, 255, .12);
}

.vm__vision {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.vm__list {
  display: grid;
  gap: 0;
}

.vm__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 1.02rem;
}

.vm__list li:last-child {
  border-bottom: 0;
}

.vm__list li b {
  font-family: var(--font-display);
  color: var(--red);
  font-weight: 600;
  font-size: .9rem;
}

/* Story / text-media */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.story__text {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 120px;
}

.story__gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.story__gallery figure {
  border-radius: var(--r-md);
  overflow: hidden;
}

.story__gallery figure:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.story__gallery figure:not(:first-child) {
  aspect-ratio: 4 / 5;
}

.story__gallery figure:nth-child(4) {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.story__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.story__gallery figure:hover img {
  transform: scale(1.05);
}

/* Capability list */
.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}

.cap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  position: relative;
  cursor: zoom-in;
  transition: padding .5s var(--ease-out), color .3s;
}

.cap-list li:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Thumbnail: only on touch screens, where the hover preview can't show */
.cap-list__thumb {
  display: none;
  flex: none;
  width: 64px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

@media (hover: none), (max-width: 900px) {
  .cap-list__thumb {
    display: block;
  }

  .cap-list li::before {
    display: none;
  }

  .cap-list li svg {
    opacity: 1;
    transform: none;
  }
}

.cap-list li::before {
  content: "/";
  color: var(--red);
  margin-right: 14px;
  font-weight: 400;
}

.cap-list li span {
  flex: 1;
}

.cap-list li svg {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: .5s var(--ease-out);
  color: var(--red);
}

.cap-list li:hover {
  padding-left: 14px;
}

.cap-list li:hover svg {
  opacity: 1;
  transform: none;
}

.cap-list__title {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Hover image preview for cap list */
.hover-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  transition: opacity .35s, transform .5s var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.hover-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 8. PAGE-SPECIFIC ---------- */

/* Products: filter + list */
.filter {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  flex-wrap: wrap;
}

.filter__btn {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .4s;
}

.filter__btn.is-active {
  color: var(--white);
}

.filter__pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--navy);
  transition: transform .6s var(--ease-out), width .6s var(--ease-out);
}

.product-list {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.product {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), box-shadow .5s;
}

.product:hover {
  box-shadow: var(--shadow-lg);
}

.product.is-hidden {
  display: none;
}

.product.is-filtering {
  opacity: 0;
  transform: translateY(20px) scale(.98);
}

.product:nth-child(even) .product__media {
  order: 2;
}

.product__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.product__media>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.product:hover .product__media>img {
  transform: scale(1.05);
}

.product__thumb {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .8s var(--ease-out);
}

.product:hover .product__thumb {
  transform: translateY(-8px) rotate(-2deg);
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.product__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  letter-spacing: -0.05em;
}

.product__cat {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.product h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  letter-spacing: -0.035em;
}

.product__apps-title {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.product__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.product__media {
  cursor: zoom-in;
}

.product__media:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -4px;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Products: solution finder (js/finder.js) */
#finder {
  scroll-margin-top: 90px;
}

.finder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--r-lg);
  background: var(--navy-900);
  color: var(--white);
}

.finder h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.finder .lead {
  color: rgba(255, 255, 255, .72);
}

.finder__progress {
  display: flex;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.finder__progress li {
  flex: 1;
  max-width: 64px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  transition: background .4s var(--ease-out);
}

.finder__progress li.is-current {
  background: rgba(255, 255, 255, .55);
}

.finder__progress li.is-done {
  background: var(--red);
}

.finder__form {
  min-width: 0;
}

.finder__step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Without JS every question shows; with JS one at a time */
.finder:not(.is-ready) .finder__step + .finder__step {
  margin-top: 28px;
}

.finder__step[hidden],
.finder__result[hidden],
.finder__back[hidden] {
  display: none;
}

.finder.is-ready .finder__step:not([hidden]),
.finder__result:not([hidden]) {
  animation: finderIn .5s var(--ease-out) both;
}

@keyframes finderIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.finder__step legend {
  display: block;
  padding: 0;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
}

.finder__step legend small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.finder__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finder__opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.finder__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finder__opt span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s, background .25s, transform .4s var(--ease-out);
}

.finder__opt b {
  font-weight: 600;
}

.finder__opt small {
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
}

.finder__opt:hover span {
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-2px);
}

.finder__opt input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.finder__opt input:checked + span {
  border-color: var(--red);
  background: rgba(227, 30, 36, .16);
}

.finder__nav {
  margin-top: 16px;
}

.finder__back,
.finder__restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.finder__back svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.finder__back:hover,
.finder__restart:hover {
  color: var(--white);
}

.finder__result:focus {
  outline: none;
}

.finder__match {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
}

.finder__img {
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper);
}

.finder__img img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.finder__body h3 {
  margin: 6px 0 8px;
  font-size: var(--fs-h3);
}

.finder__body p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: .95rem;
}

.finder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.finder__note {
  margin: 16px 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
}

.finder__note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.finder__restart {
  margin-left: 6px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 600px) {
  .finder__options,
  .finder__match {
    grid-template-columns: 1fr;
  }

  .finder__img img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Home: link to the finder under the solutions bento */
.finder-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(20px, 3vw, 32px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}

.finder-teaser p {
  margin: 0;
  color: var(--ink-2);
}

.finder-teaser b {
  color: var(--ink);
}

/* Products: comparison table */
.compare {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}

.compare__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .95rem;
}

.compare__table th,
.compare__table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare__table thead th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper);
}

.compare__table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare__table tbody tr {
  transition: background .3s;
}

.compare__table tbody tr:hover {
  background: var(--paper);
}

.compare__table tbody th a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.compare__table tbody th a:hover {
  color: var(--red);
}

.compare__cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}

.compare__cat--molding {
  background: var(--navy);
  color: var(--white);
}

.compare__cat--spray {
  background: var(--red);
  color: var(--white);
}

.compare__uses {
  display: grid;
  gap: 4px;
  color: var(--ink-2);
}

.compare__uses li::before {
  content: "– ";
  color: var(--red);
}

/* Sections that clip decorations (diamonds) at their edges */
.section--clip {
  overflow: hidden;
}

.marquee--spaced {
  margin-top: clamp(64px, 8vw, 120px);
}

.section--flush-top {
  padding-top: 0;
}

/* About: how we work with clients */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  counter-reset: none;
}

.journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease-out);
}

.journey__step:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.journey__no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--navy);
}

.journey__icon {
  position: absolute;
  top: clamp(22px, 2.4vw, 30px);
  right: clamp(22px, 2.4vw, 30px);
  width: 28px;
  height: 28px;
  color: var(--red);
}

.journey__step h3 {
  font-size: 1.15rem;
}

.journey__step p {
  font-size: .9rem;
  color: var(--ink-3);
}

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

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

/* Solution pages (<id>.html) */
.page-hero__title--sm {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
}

.page-hero__inner > .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.solution {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.solution__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
}

.solution__photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  grid-column: span 2;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
}

.solution__photo--machine {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.solution__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.solution__photo:hover img {
  transform: scale(1.05);
}

.solution__photo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.solution__photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
}

.solution__info {
  display: grid;
  gap: 1.75rem;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--white);
}

.solution__feature {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tag--link {
  transition: background .3s, color .3s, border-color .3s;
}

.tag--link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.solution-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.solution__benefits {
  display: grid;
  gap: .75rem;
}

.solution__benefits li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.solution__benefits svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--red);
}

.solution__specs {
  min-width: 0;
}

.solution-others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.solution-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s;
}

.solution-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.solution-card__img {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
}

.solution-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card__no {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--red);
}

.solution-card h3 {
  font-size: 1.15rem;
  margin: .2rem 0 .35rem;
}

.solution-card p {
  font-size: .88rem;
  color: var(--ink-3);
}

/* Blog (built by build-blog.js): article list + article page */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s;
}

.post-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}

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

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}

.post-card__meta,
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  font-size: .82rem;
  color: var(--ink-3);
}

.post-card__meta span:before,
.post-hero__meta span:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--line-2);
  vertical-align: middle;
}

.post-card__draft {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--red-100);
  color: var(--red-600);
  font-weight: 600;
}

.post-card .post-card__meta .post-card__draft:before {
  content: none;
}

.post-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-card p:not(.post-card__meta) {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-2);
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

.post-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform .4s var(--ease-out);
}

.post-card:hover .post-card__more svg {
  transform: translateX(4px);
}

/* Article page */
.post-hero .container {
  max-width: 920px;
}

.post-hero__title {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.post-draft {
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--red-100);
  color: var(--red-600);
  font-size: .9rem;
  font-weight: 500;
}

.post {
  max-width: 920px;
}

.post__cover {
  margin: 0 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 8;
  background: var(--paper);
}

.post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  scroll-margin-top: 110px;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
  scroll-margin-top: 110px;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: .6em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--red);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: .45em;
}

.prose li::marker {
  color: var(--red);
  font-weight: 600;
}

.prose figure {
  margin-inline: 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--r-md);
}

.prose figcaption {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--ink-3);
}

.prose__tip {
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--white);
  color: var(--ink);
}

.prose__tip p {
  margin: 0;
}

.prose__table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}

.prose__table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.5;
}

.prose__table th,
.prose__table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose__table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
}

.prose__table tbody th {
  color: var(--ink);
  font-weight: 600;
}

.prose__table tbody tr:last-child > * {
  border-bottom: 0;
}

.post-more .section-head > div:last-child {
  justify-self: end;
}

.post__solutions {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.post__solutions .solution-others {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-grid,
  .post__solutions .solution-others {
    grid-template-columns: 1fr;
  }

  .post__cover {
    aspect-ratio: 16 / 10;
  }

  .prose {
    font-size: 1rem;
  }
}

.product h3 a:hover {
  color: var(--red);
}

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

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

@media (max-width: 600px) {
  .solution-others {
    grid-template-columns: 1fr;
  }

  .solution-card {
    grid-template-columns: 90px 1fr;
  }
}

/* Customers: sectors */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.sector {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--white);
  padding: 28px;
  /* Subgrid: icon, title, text, tags and link line up across every card in a row */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: 0;
  align-content: start;
  transition: color .5s;
}

.sector>div {
  display: contents;
}

.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  clip-path: circle(0% at 100% 0%);
  transition: clip-path .8s var(--ease-out);
}

.sector:hover::before {
  clip-path: circle(150% at 100% 0%);
}

.sector:hover h3,
.sector:hover .sector__icon {
  color: var(--white);
}

.sector:hover p {
  color: rgba(255, 255, 255, .75);
}

.sector:hover .tag {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-color: rgba(255, 255, 255, .2);
}

.sector__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 2.5rem;
  color: var(--navy);
  transition: color .5s, transform .6s var(--ease-out);
}

.sector:hover .sector__icon {
  transform: rotate(-8deg) scale(1.1);
  color: var(--red);
}

.sector h3 {
  transition: color .5s;
  margin-bottom: .5rem;
}

.sector p {
  font-size: .92rem;
  transition: color .5s;
}

.sector .tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  margin-top: 1rem;
}

.sector--feature {
  background: var(--red);
  color: var(--white);
}

.sector--feature h3,
.sector--feature .sector__icon {
  color: var(--white);
}

.sector--feature p {
  color: rgba(255, 255, 255, .85);
}

.sector--feature .tag {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border-color: rgba(255, 255, 255, .25);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logo-slot {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .82rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background .4s;
}

.logo-slot img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .4s, opacity .4s, transform .5s var(--ease-out);
}

.logo-slot:hover {
  background: var(--white);
}

.logo-slot:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

.logo-slot__ph {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.logo-slot__ph svg {
  width: 28px;
  height: 28px;
  color: var(--line-2);
}

/* Equal rows so every photo lines up; --tall spans 2 rows, --wide spans 2 columns */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.5vw, 20px);
}

.gallery figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}

.gallery .gallery__item--tall {
  grid-row: span 2;
}

.gallery .gallery__item--wide {
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  transform: translateY(150%);
  transition: transform .5s var(--ease-out);
}

.gallery figure:hover figcaption {
  transform: none;
}

.gallery[data-gallery] figure {
  cursor: zoom-in;
}

.gallery figure:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.gallery figure:focus-visible figcaption {
  transform: none;
}

.facility__hint+.gallery {
  margin-top: 1.25rem;
}

.on-dark .facility__hint {
  color: rgba(255, 255, 255, .6);
}

/* Customers: sector link to its solution */
.sector__more {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: end;
  gap: .4rem;
  margin-top: 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  transition: color .5s, gap .4s var(--ease-out);
}

.sector__more svg {
  width: 16px;
  height: 16px;
}

.sector:hover .sector__more {
  color: var(--white);
  gap: .7rem;
}

.sector--feature {
  grid-column: span 2;
}

/* Customers: client types (shown until real logos are added) */
.logo-wall:not(:has(img)) {
  display: none;
}

.logo-wall:has(img)+.client-types {
  display: none;
}

.client-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}

.client-types li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  transition: border-color .4s, transform .5s var(--ease-out);
}

.client-types li:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.client-types svg {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--red);
}

/* Customers: case studies (template) */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.case {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}

.case__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.case:hover .case__media img {
  transform: scale(1.05);
}

.case__sector {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
}

.case__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(20px, 2.4vw, 30px);
  flex: 1;
}

.case__steps {
  display: grid;
  gap: .8rem;
}

.case__steps dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}

.case__steps dd {
  margin: .2rem 0 0;
  font-size: .92rem;
  color: var(--ink-3);
}

.case__quote {
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--navy);
  font-size: .95rem;
}

.case__quote cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-size: .8rem;
  color: var(--ink-3);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}

a.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--navy);
  transition: background .4s, color .4s;
}

a.contact-card:hover .contact-card__icon {
  background: var(--red);
  color: var(--white);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card small {
  display: block;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.contact-card strong {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.45;
}

.form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  position: relative;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 22px 16px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1.5px solid transparent;
  outline: none;
  transition: border-color .3s, background .3s;
}

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

.field select {
  appearance: none;
  cursor: pointer;
}

.field label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: .95rem;
  color: var(--ink-3);
  pointer-events: none;
  transition: transform .3s var(--ease-out), font-size .3s, color .3s;
  transform-origin: left top;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy);
  background: var(--white);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field select+label {
  transform: translateY(-9px);
  font-size: .72rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: .04em;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--red);
}

.field__err {
  display: none;
  font-size: .78rem;
  color: var(--red);
  margin-top: 6px;
}

.field.is-invalid .field__err {
  display: block;
}

.form__note {
  font-size: .82rem;
  color: var(--ink-3);
}

.form__status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5ee;
  color: #17663a;
  font-size: .9rem;
  font-weight: 500;
}

.form__status [hidden] {
  display: none;
}

.form__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.form__intro {
  font-size: .95rem;
}

/* Quote buttons land on #inquiry: keep the form clear of the fixed header */
#inquiry {
  scroll-margin-top: 110px;
}

/* "Quote request for: <product>" - shown when arriving from a quote button */
.form__prefill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red-100);
  color: var(--ink-2);
  font-size: .88rem;
}

.form__prefill[hidden] {
  display: none;
}

.form__prefill svg {
  color: var(--red);
  flex: none;
}

.form__prefill b {
  color: var(--ink);
}

.form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Honeypot for spam bots - hidden from people */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* File field: the whole dashed box is the button */
.field--file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Beats the floating-label rules (.field input:not(:placeholder-shown) + label) */
.field.field--file input + label {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: var(--paper);
  font-size: .9rem;
  color: var(--ink-2);
  cursor: pointer;
  pointer-events: auto;
  transform: none;
  font-weight: 500;
  letter-spacing: 0;
  transition: border-color .3s, background .3s, color .3s;
}

.field--file label svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--red);
}

.field--file label:hover,
.field--file input:focus-visible + label {
  border-color: var(--navy);
  background: var(--white);
}

.field.field--file.has-file input + label {
  border-style: solid;
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.field.field--file.is-invalid input + label {
  border-color: var(--red);
}

.form__status.is-visible {
  display: flex;
  animation: fadeUp .6s var(--ease-out);
}

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  min-height: 320px;
  position: relative;
  background: var(--paper-2);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.4) contrast(1.05);
}

.map__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  font-family: inherit;
}

.map__canvas .leaflet-tile-pane {
  filter: grayscale(.4) contrast(1.05);
}

.map__cta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(13, 27, 61, .25);
}

/* Custom factory marker with bobbing animation */
.map-pin {
  background: none;
  border: 0;
}

.map-pin__body {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(13, 27, 61, .3);
  animation: pinBob 1.8s ease-in-out infinite;
}

.map-pin__body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: var(--red);
  border-bottom: 0;
}

.map-pin__body svg {
  width: 28px;
  height: 28px;
}

.map-pin__shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 8px;
  margin-left: -13px;
  border-radius: 50%;
  background: rgba(13, 27, 61, .35);
  animation: pinShadow 1.8s ease-in-out infinite;
}

@keyframes pinBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pinShadow {

  0%,
  100% {
    transform: scale(1);
    opacity: .45;
  }

  50% {
    transform: scale(.6);
    opacity: .2;
  }
}

/* FAQ: sticky intro left, accordion right */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.faq__aside h2 {
  margin-top: 0;
}

.faq__help {
  margin-top: .75rem;
  padding: 24px;
  border-radius: var(--r-md);
  display: grid;
  gap: 1rem;
  justify-items: start;
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
  line-height: 1.55;
}

.faq__help p {
  color: inherit;
}

.faq__help strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.faq__item:hover {
  border-color: var(--line-2);
}

.faq__item.is-open {
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(13, 27, 61, .08);
}

.faq__item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

.faq__no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink-3);
  transition: color .3s;
}

.faq__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--navy);
  line-height: 1.35;
}

.faq__icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  transition: background .3s, transform .5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -.8px 0 0 -6px;
  border-radius: 2px;
  background: var(--navy);
  transition: background .3s;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item:hover .faq__icon {
  background: var(--line);
}

.faq__item.is-open .faq__no {
  color: var(--red);
}

.faq__item.is-open .faq__icon {
  background: var(--red);
  transform: rotate(135deg);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: var(--white);
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 24px 24px calc(24px + 18px + 1.6rem);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 64ch;
}

.faq__a a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 9. FOOTER ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  padding-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  position: relative;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 64px;
}

.footer__brand img {
  height: 46px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer__brand p {
  max-width: 34ch;
  color: rgba(255, 255, 255, .6);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1.25rem;
}

.footer ul {
  display: grid;
  gap: .6rem;
}

.footer a {
  transition: color .3s;
}

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

.footer__big {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: .6;
  font-size: clamp(1.5rem, 6.8vw, 8.8rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  transform: translateY(18%);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
}

.to-top span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  transition: background .3s, transform .4s var(--ease-out);
}

.to-top svg {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.to-top:hover span {
  background: var(--red);
  transform: translateY(-3px);
}

/* WhatsApp floating */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transform: scale(0);
  transition: transform .6s var(--ease-out);
}

.wa-float.is-visible {
  transform: scale(1);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: pulse 2.4s var(--ease-out) infinite;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- PRELOADER & TRANSITIONS ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}

.preloader.is-done {
  clip-path: inset(0 0 100% 0);
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.preloader__logo {
  width: 180px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .1s forwards;
}

.preloader__bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  border-radius: 2px;
}

.preloader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}

.preloader__count {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.page-transition i {
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-in-out);
}

.page-transition i:nth-child(2) {
  transition-delay: .05s;
  background: var(--navy-700);
}

.page-transition i:nth-child(3) {
  transition-delay: .1s;
}

.page-transition i:nth-child(4) {
  transition-delay: .15s;
  background: var(--navy-700);
}

.page-transition i:nth-child(5) {
  transition-delay: .2s;
  background: var(--red);
}

.page-transition.is-active i {
  transform: scaleY(1);
}

/* Custom cursor */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), background .3s, opacity .3s;
  mix-blend-mode: normal;
  opacity: 0;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(227, 30, 36, .14);
  border: 1px solid var(--red);
}

.cursor.is-view {
  width: 88px;
  height: 88px;
  background: var(--red);
}

.cursor span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
}

.cursor.is-view span {
  opacity: 1;
}

@media (hover: none),
(pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal="left"] {
  transform: translateX(-50px);
}

[data-reveal="right"] {
  transform: translateX(50px);
}

[data-reveal="scale"] {
  transform: scale(.92);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Image "curtain" reveal — a cover panel slides away (IO-safe, unlike clip-path on the target) */
[data-reveal="clip"],
[data-reveal="clip-x"] {
  opacity: 1;
  transform: none;
  overflow: hidden;
}

[data-reveal="clip"]:not(.hero__media):not(.page-banner) {
  position: relative;
}

[data-reveal="clip"]::before,
[data-reveal="clip-x"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--curtain, var(--paper));
  transform-origin: top;
  transition: transform 1.3s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}

[data-reveal="clip-x"]::before {
  transform-origin: right;
}

[data-reveal="clip"].is-in::before {
  transform: scaleY(0);
}

[data-reveal="clip-x"].is-in::before {
  transform: scaleX(0);
}

[data-reveal="clip"] img,
[data-reveal="clip-x"] img {
  transform: scale(1.25);
  transition: transform 1.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal="clip"].is-in img,
[data-reveal="clip-x"].is-in img {
  transform: scale(1);
}

/* Split text (words/lines) */
/* Padding keeps glyph edges (tight letter-spacing, descenders) inside the clipping mask */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .04em .08em .1em 0;
  margin: -.04em -.08em -.1em 0;
}

.split-word>span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 0.045s + var(--d, 0s));
}

[data-split].is-in .split-word>span {
  transform: none;
}

/* Stagger children */
[data-stagger]>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}

[data-stagger].is-in>* {
  opacity: 1;
  transform: none;
}

[data-stagger].is-in>*:nth-child(1) {
  transition-delay: .05s;
}

[data-stagger].is-in>*:nth-child(2) {
  transition-delay: .12s;
}

[data-stagger].is-in>*:nth-child(3) {
  transition-delay: .19s;
}

[data-stagger].is-in>*:nth-child(4) {
  transition-delay: .26s;
}

[data-stagger].is-in>*:nth-child(5) {
  transition-delay: .33s;
}

[data-stagger].is-in>*:nth-child(6) {
  transition-delay: .40s;
}

[data-stagger].is-in>*:nth-child(7) {
  transition-delay: .47s;
}

[data-stagger].is-in>*:nth-child(8) {
  transition-delay: .54s;
}

[data-stagger].is-in>*:nth-child(n+9) {
  transition-delay: .6s;
}

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- KEYFRAMES ---------- */
@keyframes marquee {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scrollLine {
  0% {
    top: -40%;
  }

  100% {
    top: 100%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(-14px) rotate(45deg);
  }
}

.float {
  animation: floatY 6s ease-in-out infinite;
}

/* ---------- 10. UTILITIES & RESPONSIVE ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.center {
  text-align: center;
  justify-items: center;
}

.center .lead {
  margin-inline: auto;
}

@media (max-width: 1100px) {

  .bento .span-3,
  .bento .span-4,
  .bento .span-5 {
    grid-column: span 6;
  }

  .bento .span-7,
  .bento .span-8 {
    grid-column: span 12;
  }

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

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-types,
  .cases,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients__inner {
    grid-template-columns: 1fr;
  }

  .clients__label br {
    display: none;
  }
}

@media (max-width: 900px) {

  .hero__top,
  .hero__bottom,
  .page-hero__inner,
  .intro,
  .story,
  .caps,
  .contact,
  .vm,
  .section-head--split,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    justify-items: start;
    text-align: left;
  }

  .hero__media {
    aspect-ratio: 4 / 3;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 24px 16px 24px 0;
    border-right: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(even) {
    padding-left: 16px;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .process {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .process__line {
    display: none;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature:not(:nth-child(3n+1)) {
    padding-left: 0;
    border-left: 0;
  }

  .feature:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .product,
  .product:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .product:nth-child(even) .product__media {
    order: 0;
  }

  .product__media {
    min-height: 300px;
  }

  .story__text {
    position: static;
  }

  .intro__float {
    right: 12px;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .faq__aside {
    position: static;
  }
}

@media (max-width: 600px) {

  .bento .span-3,
  .bento .span-4,
  .bento .span-5,
  .bento .span-6 {
    grid-column: span 12;
  }

  .row-2 {
    grid-row: span 1;
  }

  .sectors,
  .features,
  .process,
  .form__row {
    grid-template-columns: 1fr;
  }

  .clients__logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients__logo {
    height: 60px;
    padding: 6px;
  }

  .machine {
    flex-basis: 70vw;
  }

  .lightbox__cap {
    padding: 16px 18px 76px;
    font-size: 1.05rem;
  }

  .lightbox__nav {
    left: 18px;
    right: auto;
  }

  .feature:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

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

  .client-types,
  .cases {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery .gallery__item--wide {
    grid-column: auto;
  }

  .sector--feature {
    grid-column: auto;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .hero__play {
    width: 84px;
    height: 84px;
  }

  .diamond {
    display: none;
  }

  .hero__chip {
    left: 12px;
    bottom: 12px;
    right: 12px;
  }

  .page-banner {
    aspect-ratio: 4 / 3;
  }

  .map {
    aspect-ratio: 4 / 3;
  }

  .faq__item summary {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
  }

  .faq__no {
    display: none;
  }

  .faq__a p {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  [data-stagger]>*,
  .split-word>span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  [data-reveal="clip"]::before,
  [data-reveal="clip-x"]::before {
    display: none;
  }

  .facility {
    overflow-x: auto;
    mask-image: none;
  }

  .facility__track {
    animation: none;
  }
}