/* ==========================================================================
   PILOT INDUSTRIES — Design System
   "Engineered Precision" — an industrial design language built from
   machined-metal neutrals, engineering-drawing grids and technical typography.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp — derived from the Pilot Industries logo green */
  --brand-50:  #f1f7ef;
  --brand-100: #e1efdd;
  --brand-200: #c4ddbc;
  --brand-300: #9cc891;
  --brand-400: #74b567;
  --brand-500: #4d9a3e;
  --brand-600: #3b7d30;
  --brand-700: #2f6527;
  --brand-800: #24501f;

  /* Neutrals — cool graphite, like ground tool steel */
  --ink:       #0b0e0f;
  --graphite:  #12171a;
  --slate:     #1b2225;
  --steel:     #394346;
  --muted:     #667176;
  --silver:    #9aa4a7;
  --line:      #e3e7e1;
  --line-soft: #eef1eb;
  --mist:      #eef1ea;
  --paper:     #f7f8f5;
  --white:     #ffffff;

  /* Semantic */
  --bg:        var(--paper);
  --text:      #1a2023;
  --text-2:    var(--muted);
  --accent:    var(--brand-600);
  --accent-on-dark: var(--brand-400);

  /* Dark-surface tokens */
  --d-bg:      #101517;
  --d-line:    rgba(255, 255, 255, .10);
  --d-line-2:  rgba(255, 255, 255, .06);
  --d-text:    #eef1f0;
  --d-muted:   #a4afb2;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(11, 14, 15, .05);
  --sh-sm: 0 2px 6px -2px rgba(11, 14, 15, .08), 0 1px 2px rgba(11, 14, 15, .04);
  --sh-md: 0 10px 26px -12px rgba(11, 14, 15, .18), 0 2px 6px -2px rgba(11, 14, 15, .06);
  --sh-lg: 0 28px 60px -28px rgba(11, 14, 15, .28), 0 10px 24px -16px rgba(11, 14, 15, .14);
  --sh-xl: 0 48px 90px -40px rgba(11, 14, 15, .40), 0 16px 36px -22px rgba(11, 14, 15, .18);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  /* Layout */
  --gutter: clamp(20px, 5vw, 44px);
  --maxw: 1240px;
  --section-y: clamp(72px, 9vw, 124px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

button { font: inherit; color: inherit; }

::selection { background: var(--brand-200); color: var(--brand-800); }

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

/* Skip link */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 84px); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--mist  { background: linear-gradient(180deg, var(--mist), var(--paper)); }

.section--dark {
  background: var(--d-bg);
  color: var(--d-text);
  position: relative;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(77, 154, 62, .16), transparent 62%),
    radial-gradient(70% 60% at 100% 100%, rgba(116, 181, 103, .10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--d-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-line-2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
  pointer-events: none;
  z-index: -1;
}
.section--dark p { color: var(--d-muted); }
.section--dark .eyebrow { color: var(--accent-on-dark); }

/* Hairline divider with a precision-green tick */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--accent) 0 56px, var(--line) 56px);
}
.section--dark .rule { background: linear-gradient(90deg, var(--accent-on-dark) 0 56px, var(--d-line) 56px); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY BLOCKS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 16px 0 0;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  max-width: 62ch;
}
.section--dark .section-head p { color: var(--d-muted); }
.section-head--center p { margin-inline: auto; }

.lede { font-size: 17px; line-height: 1.75; color: var(--text-2); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out),
              background-color .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
}
.btn .icon { width: 17px; height: 17px; flex: none; transition: transform .38s var(--ease-spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 10px 26px -12px rgba(59, 125, 48, .70), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  box-shadow: 0 18px 36px -14px rgba(59, 125, 48, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--light { background: #fff; color: var(--ink); box-shadow: var(--sh-md); }
.btn--light:hover { background: #fff; box-shadow: var(--sh-lg); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .45); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }

.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* Inline text link with sliding arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.link .icon { width: 15px; height: 15px; transition: transform .38s var(--ease-spring); }
.link:hover .icon { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(116, 181, 103, .18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px -18px rgba(11, 14, 15, .35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height .35s var(--ease);
}
.site-header.is-stuck .brand img { height: 50px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: -.005em;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand-700); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .38s var(--ease-out), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Scroll progress */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transition: width .12s linear;
}

/* Mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(11, 14, 15, .48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 140;
  width: min(360px, 86vw);
  background: #fff;
  padding: 26px var(--gutter) 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(102%);
  transition: transform .46s var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--sh-xl);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer__head img { height: 44px; width: auto; }
.drawer__close {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--steel);
}
.drawer__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 6px 0 8px;
}
.drawer a.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.drawer a.drawer__link .icon { width: 16px; height: 16px; color: var(--silver); }
.drawer a.drawer__link.is-active { color: var(--brand-700); }
.drawer a.drawer__link.is-active .icon { color: var(--brand-500); }
.drawer .btn { margin-top: 22px; }
.drawer__foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 760px);
}
.hero--page { min-height: clamp(360px, 48vh, 480px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(.4) contrast(1.06) brightness(.52);
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.5%, -1.5%, 0); }
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(8, 11, 12, .96) 0%, rgba(8, 11, 12, .88) 38%, rgba(8, 11, 12, .58) 68%, rgba(8, 11, 12, .46) 100%),
    radial-gradient(78% 70% at 78% 32%, rgba(77, 154, 62, .30), transparent 62%),
    linear-gradient(180deg, rgba(8, 11, 12, .55) 0%, transparent 34%, rgba(8, 11, 12, .70) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(110% 90% at 20% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 90% at 20% 50%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(96px, 12vw, 150px);
}
/* Home hero leaves room for the overlapping stats card */
.hero:not(.hero--page) .hero__inner { padding-bottom: clamp(136px, 15vw, 200px); }
.hero--page .hero__inner { padding-block: clamp(76px, 9vw, 110px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d6e5d1;
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 0 rgba(116, 181, 103, .6);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(116, 181, 103, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(116, 181, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(116, 181, 103, 0); }
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: .96;
  letter-spacing: -.045em;
  margin: 24px 0 0;
  max-width: 15ch;
}
.hero--page h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 17ch; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--brand-300), var(--brand-400) 45%, var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 24px;
  max-width: 60ch;
  color: #cdd6d3;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.72;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 22px;
}
.crumbs a { color: rgba(255, 255, 255, .72); transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--brand-300); }
.crumbs span[aria-current] { color: var(--brand-300); }
.crumbs .sep { opacity: .4; }

.crumbs--light { color: var(--silver); margin-bottom: 30px; }
.crumbs--light a { color: var(--steel); }
.crumbs--light a:hover { color: var(--brand-700); }
.crumbs--light span[aria-current] { color: var(--brand-700); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .3; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. STATS
   -------------------------------------------------------------------------- */
/* Transparent so the card itself floats over the hero edge */
.stats-wrap { background: none; }
.stats-wrap--overlap { margin-top: calc(-1 * clamp(48px, 6vw, 80px)); position: relative; z-index: 10; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--graphite);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  position: relative;
  isolation: isolate;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 140% at 50% 0%, rgba(77, 154, 62, .18), transparent 65%);
}
.stat {
  padding: clamp(24px, 2.6vw, 34px) clamp(18px, 2vw, 28px);
  text-align: center;
  position: relative;
  transition: background-color .35s var(--ease);
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--d-line);
}
.stat:hover { background: rgba(255, 255, 255, .035); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--brand-400);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--d-muted);
}

/* --------------------------------------------------------------------------
   9. CARDS & GRIDS
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 1.8vw, 26px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.card:hover::after { transform: scaleX(1); }

.card__media {
  position: relative;
  height: 208px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, #f4f6f2, #e9ece6);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .7s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__index {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--silver);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 4px 4px; }
.card h3 {
  font-size: 20px;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.card .link { margin-top: auto; padding-top: 18px; }

/* Plain (text-only) card variant */
.card--plain { padding: clamp(26px, 2.4vw, 34px); }
.card--plain .card__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  margin-bottom: 22px;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease-spring);
}
.card--plain .card__icon svg { width: 25px; height: 25px; }
.card--plain:hover .card__icon { background: var(--brand-600); color: #fff; transform: translateY(-2px); }

/* Empty state (photo coming soon) */
.media-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  background:
    linear-gradient(150deg, #f4f6f2, #e9ece6),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(0, 0, 0, .02) 10px 20px);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r-md);
}
.media-empty svg { width: 26px; height: 26px; opacity: .55; }

/* --------------------------------------------------------------------------
   10. SPLIT / FEATURE
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.05fr .95fr; }
.split h2 { font-size: clamp(28px, 3.3vw, 42px); margin: 16px 0 18px; }
.split p + p { margin-top: 14px; }
.split > div > p { color: var(--text-2); line-height: 1.75; }
.section--dark .split > div > p { color: var(--d-muted); }

/* Framed image plate with technical corner marks */
.plate {
  position: relative;
  background: linear-gradient(150deg, #ffffff, #f2f4f0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-md);
}
.section--dark .plate {
  background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border-color: var(--d-line);
  box-shadow: none;
}
.plate img {
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: contain;
  border-radius: var(--r-sm);
  /* Product shots are on white — multiply dissolves the seam into the plate */
  mix-blend-mode: multiply;
}
.section--dark .plate img { mix-blend-mode: normal; }
.section--dark .plate img {
  background: linear-gradient(155deg, #fafbf8, #eceee8);
  padding: 16px;
  border-radius: var(--r-md);
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid var(--brand-500);
  opacity: .55;
  pointer-events: none;
}
.section--dark .plate::before,
.section--dark .plate::after { border-color: var(--brand-400); opacity: .7; }
.plate::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.plate::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.plate--empty { display: grid; }
.plate--empty .media-empty { min-height: clamp(280px, 34vw, 430px); }
.section--dark .media-empty {
  background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   11. CHECKLIST
   -------------------------------------------------------------------------- */
.checklist { display: grid; gap: 14px; margin-top: 28px; }
.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}
.check__mark {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-200);
  flex: none;
  margin-top: 1px;
}
.section--dark .check__mark {
  background: rgba(116, 181, 103, .12);
  border-color: rgba(116, 181, 103, .30);
  color: var(--brand-400);
}
.check__mark svg { width: 13px; height: 13px; }
.check__text { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.section--dark .check__text { color: var(--d-muted); }
.check__text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}
.section--dark .check__text strong { color: var(--d-text); }

/* --------------------------------------------------------------------------
   12. PRODUCT DETAIL
   -------------------------------------------------------------------------- */
.product-hero { padding-block: clamp(44px, 5vw, 72px) var(--section-y); background: var(--white); }
.product-hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -.04em;
  margin: 16px 0 20px;
}
.product-hero > .container > .split { align-items: start; }
.product-hero .lede { max-width: 60ch; }

.product-hero .plate { position: sticky; top: calc(var(--header-h) + 28px); }
.product-hero .plate img { height: clamp(300px, 40vw, 500px); }

.specs {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.spec {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: 18px;
  padding: 14px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: background-color .28s var(--ease);
}
.spec:hover { background: var(--brand-50); }
.spec b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}
.spec span { color: var(--text-2); line-height: 1.6; }

.product-hero .hero__actions,
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --------------------------------------------------------------------------
   13. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 28px);
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 15px;
  height: 1px;
  background: var(--line);
  mask-image: linear-gradient(90deg, #000 0 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 76%, transparent 100%);
}
.section--dark .timeline::before { background: var(--d-line); }

.step { position: relative; padding-top: 42px; }
.step::before {
  content: "";
  position: absolute;
  top: 9px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand-500);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease);
}
.section--dark .step::before { background: var(--d-bg); border-color: var(--brand-400); }
.step:hover::before { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(77, 154, 62, .14); }

.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent);
}
.section--dark .step .num { color: var(--accent-on-dark); }
.step h3 { font-size: 20px; margin: 10px 0 10px; letter-spacing: -.025em; }
.step p { font-size: 14px; line-height: 1.68; color: var(--text-2); }
.section--dark .step p { color: var(--d-muted); }

/* --------------------------------------------------------------------------
   14. CTA BANNER
   -------------------------------------------------------------------------- */
.banner { padding-block: clamp(56px, 6vw, 80px); background: var(--paper); }
.banner__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--graphite);
  color: #fff;
  padding: clamp(38px, 5vw, 68px) clamp(28px, 5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  box-shadow: var(--sh-xl);
}
.banner__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 88% 20%, rgba(77, 154, 62, .34), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(116, 181, 103, .16), transparent 60%);
}
.banner__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%);
}
.banner__text { max-width: 60ch; }
.banner h2 { font-size: clamp(26px, 3.1vw, 40px); letter-spacing: -.035em; }
.banner p { margin-top: 14px; color: var(--d-muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   15. CONTACT
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-layout h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 16px 0 16px; }
.contact-layout > div > p { color: var(--text-2); line-height: 1.75; }

.contact-list { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-item {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}
.contact-item span { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

.form {
  background: var(--graphite);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.2vw, 42px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 100% 0%, rgba(77, 154, 62, .26), transparent 62%);
}
.form__head { margin-bottom: 26px; }
.form__head .eyebrow { color: var(--accent-on-dark); }
.form__head h3 {
  font-size: 24px;
  margin-top: 12px;
  letter-spacing: -.03em;
}

.field { display: block; margin-bottom: 18px; }
.field > .field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #b9c4c0;
  margin-bottom: 9px;
}
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form textarea { resize: vertical; min-height: 120px; }
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a4afb2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}
.form select option { background: var(--graphite); color: #fff; }
.form ::placeholder { color: rgba(255, 255, 255, .34); }
.form input:hover, .form textarea:hover, .form select:hover { border-color: rgba(255, 255, 255, .24); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(116, 181, 103, .18);
}
.form .btn { margin-top: 8px; }

.form-status {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 1.2em;
  color: var(--brand-300);
}
.form-status[data-state="error"] { color: #f0a5a5; }
.form-status[data-state="ok"] { color: var(--brand-300); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--d-muted);
  padding-block: clamp(52px, 6vw, 76px) 0;
  position: relative;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 12% 0%, rgba(77, 154, 62, .13), transparent 60%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer-brand img {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--r-md);
}
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 34ch;
  color: var(--d-muted);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--d-muted);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--brand-300); }

.footer-bottom {
  border-top: 1px solid var(--d-line-2);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 110;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease-spring), visibility .35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.to-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav__link { font-size: 13.5px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .nav-toggle { display: block; }
  .brand img { height: 46px; }
  .site-header.is-stuck .brand img { height: 42px; }

  .split, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 2; }
  .product-hero .plate { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--d-line); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .step { padding-top: 26px; border-top: 1px solid var(--line); }
  .section--dark .step { border-top-color: var(--d-line); }
  .step::before { top: -7px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--d-line); }
  .stats-wrap--overlap { margin-top: -32px; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .spec, .contact-item { grid-template-columns: 1fr; gap: 5px; }
  .field__row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn, .buttons .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .card__media { height: 180px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   19. MOTION & PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media { animation: none; transform: scale(1.02); }
}

@media print {
  .site-header, .topbar, .drawer, .nav-scrim, .to-top, .scroll-cue, .banner { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; background: #fff; color: #000; }
  .hero__media, .hero__wash, .hero__grid { display: none; }
  .section--dark { background: #fff; color: #000; }
}
