/* =========================================================
   GABIFLEX — style.css
   1. Tokens  2. Base  3. Buttons  4. Header  5. Hero
   6. About  7. Vision/Mission  8. Marquee  9. Products
   10. Manufacturing stats  11. Applications  12. Process
   13. USP  14. Statement  15. Quote form  16. Footer
   17. Reveal animations  18. Responsive  19. Reduced motion
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #1e87d0;
  --green: #5a9e0f;
  --green-text: #3f8f1f;
  --teal-text: #1a7fa8;
  --grad: linear-gradient(100deg, #1e87d0 0%, #3a9a64 55%, #5a9e0f 100%);
  --ink: #1a1a1a;
  --ink-soft: #6b6f73;
  --line: #d9dcde;
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --dark: #222222;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --header-h: 84px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 300ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--dark); color: #fff; padding: .6rem 1rem; z-index: 200; transition: top var(--t); }
.skip-link:focus { top: 1rem; }

.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.h3-caps { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 20ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .75rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); flex: none; }
.eyebrow-light { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.eyebrow-light::before { background: #fff; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t) var(--ease); }

/* ---------- 3. Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500; line-height: 1.2; text-align: center;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform var(--t) ease, box-shadow var(--t) ease, background-color var(--t) ease, color var(--t) ease, border-color var(--t) ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .82rem; }
.btn-block { width: 100%; min-height: 56px; font-size: 1rem; }

.btn-gradient { color: #fff; background: var(--grad); background-size: 140% 100%; background-position: 0 0; transition: transform var(--t) ease, box-shadow var(--t) ease, background-position 500ms ease; }
.btn-gradient:hover { background-position: 100% 0; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--green-text); border-color: var(--green-text); }
.btn-outline:hover { background: var(--green-text); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; margin-left: 1.25rem; font-weight: 500; font-size: .9rem; position: relative; padding-block: .6rem; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: .3rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- 4. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow var(--t) ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-full-logo { display: inline-flex; align-items: center; }
.brand-full-logo img { display: block; width: 210px; height: auto; max-width: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; color: #123a63; }
.brand-text small { font-family: var(--font-display); font-size: .56rem; font-weight: 600; margin-top: 3px; color: #123a63; }
.brand-light .brand-text strong, .brand-light .brand-text small { color: #fff; }

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { position: relative; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink); padding-block: .5rem; transition: color var(--t) ease; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink-soft); }

.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform var(--t) var(--ease), opacity var(--t) ease, top var(--t) var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 760px); display: grid; align-items: center; overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; animation: hero-img 1.4s var(--ease) both; }
@keyframes hero-img { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

.hero-inner { position: relative; display: flex; gap: clamp(1rem, 2.5vw, 2rem); padding-block: 3rem; }
.hero-side {
  writing-mode: vertical-rl; rotate: 180deg; align-self: stretch; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 0 1.4rem 0 0; border: 0; position: relative;
  animation: rise .9s var(--ease) .1s both;
}
.hero-side::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hero-copy { max-width: min(480px, 44%); display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.9vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; animation: rise .9s var(--ease) .2s both; }
.hero-text { color: var(--ink-soft); font-size: .95rem; max-width: 46ch; animation: rise .9s var(--ease) .4s both; }
.hero-copy .btn { animation: rise .9s var(--ease) .6s both; }
.hero-progress { display: flex; align-items: center; gap: .6rem; margin-top: 3rem; font-family: var(--font-display); font-weight: 600; font-size: .72rem; animation: rise .9s var(--ease) .8s both; }
.hero-progress i { display: block; width: 110px; height: 1px; background: var(--line); position: relative; }
.hero-progress b { position: absolute; left: 0; top: -1px; height: 3px; width: 33%; background: var(--green); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 6. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-collage { position: relative; aspect-ratio: 1 / 1.05; max-width: 480px; width: 100%; margin-inline: auto 0; }
.about-collage figure { position: absolute; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.about-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.about-collage figure:hover img { transform: scale(1.04); }
.collage-a { left: 0; top: 0; width: 44%; height: 50%; }
.collage-b { right: 0; top: 11%; width: 46%; height: 55%; }
.collage-c { left: 24%; top: 40%; width: 51%; height: 58%; border: 3px solid #fff; }
.about-copy { display: grid; gap: 1.1rem; max-width: 520px; }
.about-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: .95rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }

/* ---------- 7. Vision / Mission ---------- */
.vme { background: linear-gradient(95deg, #1688d2 0%, #3a9a62 55%, #569f0e 100%); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.vme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.vme-item { display: flex; gap: 1rem; align-items: flex-start; }
.vme-num { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 50%; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.vme-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; margin-bottom: .8rem; }
.vme-item p { font-size: .85rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }

/* ---------- 8. Marquee (Latest projects / transition) ---------- */
.marquee { overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { flex: none; padding-right: .6em; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 6.2rem); line-height: 1.1; letter-spacing: -0.04em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Products / Crafto stack ---------- */
/* The interaction follows Crafto's purchased stack-box implementation:
   300vh section + 100vh sticky viewport + absolutely stacked 100vh items.
   Only the active upper item's height is reduced on scroll. */
.stack-box { position: relative; z-index: 1; height: 300vh; }
.stack-box .stack-box-contain { height: 100vh; position: sticky; top: 0; overflow: hidden; }
.stack-box .stack-item { height: 100vh; width: 100%; position: absolute; top: 0; left: 0; overflow: hidden; display: flex; align-items: center; background: #fff; }
.stack-box .stack-item.stack-item-01 { z-index: 999; }
.stack-box .stack-item.stack-item-02 { z-index: 99; }
.stack-box .stack-item.stack-item-03 { z-index: 9; }
.stack-box .stack-item .stack-item-wrapper { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; height: 100vh; min-height: 100vh; background: #fff; }
.stack-box .stack-item.stack-item-02,
.stack-box .stack-item.stack-item-02 .stack-item-wrapper { background: #F6F4F3; }

.product { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 100%; }
.product-media { position: relative; overflow: hidden; min-height: 360px; background: var(--bg-soft); height: 100%; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .12)); opacity: 0; transition: opacity var(--t) ease; pointer-events: none; }
.product:hover .product-media img { transform: scale(1.03); }
.product:hover .product-media::after { opacity: 1; }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: 700px; }
.product-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: .92rem; max-width: 44ch; }
.product-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -0.04em; color: #a9a9a9; margin-bottom: clamp(1.5rem, 5vw, 4rem); }
.product-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.product-copy .btn { margin-top: .6rem; }
.product-copy .btn-dark { align-self: flex-start; }
.product-copy .link-arrow { margin-left: 0; }

@media (max-width: 1199px) {
  .stack-box { height: auto; }
  .stack-box .stack-box-contain { height: auto; position: relative; overflow: visible; }
  .stack-box .stack-item,
  .stack-box .stack-item.stack-item-02,
  .stack-box .stack-item.stack-item-03 { position: relative; height: auto; min-height: 0; width: 100%; z-index: 1; display: block; overflow: visible; }
  .stack-box .stack-item .stack-item-wrapper { position: relative; inset: auto; height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-media { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .product-copy { max-width: none; padding: 2.2rem var(--gutter) 3.2rem; }
  .product-num { margin-bottom: 1rem; }
}

/* ---------- 10. Manufacturing & coating stats ---------- */
.mfg-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 6.2vw, 5.2rem); line-height: 1.05; letter-spacing: -0.045em; text-align: center; }
.mfg-title span { display: block; }
.mfg-line2 { margin-inline: auto; padding-bottom: .12em; width: fit-content; }
.mfg-sub { color: var(--ink-soft); font-size: .88rem; max-width: 44ch; margin: 1.2rem auto 0; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2.5rem, 6vw, 5rem); }
.stat { border-left: 1px solid var(--line); padding: 1.4rem 1.2rem 0 1.4rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: .9rem; max-width: 12ch; }
.stat dd { display: flex; align-items: flex-end; gap: .2rem; }
.stat-arrow { width: 14px; height: 14px; margin-bottom: 1.1rem; flex: none; }
.count { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 11. Applications ---------- */
.apps { position: relative; color: #fff; background: #1d2a1d url("assets/apps-bg.jpg") center / cover no-repeat; padding-block: clamp(3rem, 7vw, 6rem); isolation: isolate; }
.apps > .container { max-width: 1400px; padding-inline: clamp(1rem, 2.5vw, 2.5rem); }
.apps::before { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 8, .66); z-index: -1; }
.apps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.apps-title { max-width: none; font-size: clamp(2rem, 4vw, 3rem); }
.apps-lead { font-size: .85rem; color: rgba(255, 255, 255, .92); max-width: 38ch; margin-top: 1.4rem; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.1rem); width: 100%; max-width: none; }
.app-card { position: relative; aspect-ratio: 1 / 1.13; overflow: hidden; border: 1px solid rgba(255, 255, 255, .85); transition: transform var(--t) var(--ease), box-shadow var(--t) ease; }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.app-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .72)); transition: background var(--t) ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .7); }
.app-card:hover img { transform: scale(1.04); }
.app-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1rem .9rem; }
.app-info h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.45rem); line-height: 1.15; letter-spacing: -0.01em; }
.app-info p { font-size: .72rem; margin-top: .2rem; color: rgba(255, 255, 255, .92); line-height: 1.4; }

/* ---------- 12. Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: 1.6rem; align-items: start; }
.process-media img { width: 100%; aspect-ratio: 1 / 1.14; object-fit: cover; }
.process-media figcaption { margin-top: 1.1rem; font-size: .8rem; color: var(--ink-soft); max-width: 52ch; }
.steps { border-top: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); padding: 1.35rem 1rem; border-bottom: 1px solid var(--line); transition: background-color var(--t) ease, padding-left var(--t) var(--ease); }
.step:hover { background: #f7f9f6; padding-left: 1.5rem; }
.step-num { min-width: 2.2ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.1rem); background: var(--grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:nth-child(1) .step-num { background-position: 0 0; }
.step:nth-child(2) .step-num { background-position: 20% 0; }
.step:nth-child(3) .step-num { background-position: 40% 0; }
.step:nth-child(4) .step-num { background-position: 60% 0; }
.step:nth-child(5) .step-num { background-position: 80% 0; }
.step:nth-child(6) .step-num { background-position: 100% 0; }
.step-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -0.02em; }

/* ---------- 13. USP ---------- */
.usp-wrap { padding-inline: var(--gutter); }
.usp { position: relative; max-width: 1240px; margin-inline: auto; overflow: hidden; color: #fff; background: linear-gradient(100deg, #1688d2 0%, #3a9a62 55%, #569f0e 100%); padding: clamp(2.2rem, 5vw, 4.5rem); isolation: isolate; }
.usp-watermark { position: absolute; left: 6%; top: 6%; width: min(320px, 38%); opacity: .1; z-index: -1; pointer-events: none; }
.usp-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.usp-title { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.accordion { max-width: 440px; }
.acc-item { border-bottom: 1px solid rgba(255, 255, 255, .85); }
.acc-item:first-child { border-bottom: 0; }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; background: none; border: 0; color: #fff; text-align: left; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .9rem; min-height: 44px; }
.acc-icon { position: relative; width: 12px; height: 12px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: #fff; transition: transform var(--t) var(--ease); }
.acc-icon::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.acc-icon::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { font-size: .82rem; line-height: 1.8; padding: .3rem 0 1.3rem; color: rgba(255, 255, 255, .95); max-width: 38ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open { border-bottom: 1px solid rgba(255, 255, 255, .85); }
.acc-item:first-child.is-open { border-bottom: 1px solid rgba(255, 255, 255, .85); }

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: clamp(3rem, 7vw, 6rem); }
.usp-item { display: flex; flex-direction: column; }
.usp-num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; margin-bottom: .6rem; }
.usp-item p { font-size: .8rem; line-height: 1.55; max-width: 24ch; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .85); width: 82%; }
.usp-item h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 9ch; }
.usp-item:nth-child(2) h3 { max-width: 12ch; }

/* ---------- 14. Statement ---------- */
.statement-text { margin-inline: auto; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; max-width: 32ch; }
.statement-text strong { font-weight: 700; }

/* ---------- 15. Quote form ---------- */
.quote { background: var(--bg-soft); padding-block: clamp(3.5rem, 9vw, 8rem); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quote-copy { display: grid; gap: 1rem; justify-items: start; max-width: 420px; }
.quote-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: .85rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .4rem 0; margin-top: .4rem; }
.contact-links li { display: flex; }
.contact-links li + li::before { content: ""; width: 1px; background: var(--line); margin: .3rem 1rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; color: var(--green-text); font-size: .88rem; font-weight: 500; position: relative; }
.contact-links a::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.contact-links a:hover::after { transform: scaleX(1); }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quote-items { display: contents; }
.quote-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; min-width: 0; grid-column: 1 / -1; }
.quote-item + .quote-item { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .3rem; }
.quote-item-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.quote-item-title { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
.quote-item-title::before { content: ""; width: 3px; height: 1.1rem; border-radius: 2px; background: var(--green); }
.remove-quote-item { flex: 0 0 auto; border: 0; padding: .35rem .6rem; border-radius: 4px; background: transparent; color: #a33; text-decoration: underline; cursor: pointer; font: inherit; font-size: .82rem; }
.remove-quote-item:hover { background: rgba(160, 50, 40, .08); }
.remove-quote-item[hidden] { display: none; }
.add-quote-item { justify-self: start; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field[hidden] { display: none; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 500; color: #3d4144; }
.field label.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.custom-size-values { display: flex; align-items: center; gap: .65rem; }
.custom-size-part { flex: 1 1 0; min-width: 0; }
.custom-size-separator { flex: 0 0 auto; color: var(--ink-soft); font-weight: 600; }
.control { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: border-color var(--t) ease, box-shadow var(--t) ease; }
.control:hover { border-color: #b5bbbf; }
.control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 135, 208, .18); }
.control input, .control select { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 0; background: transparent; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; border-radius: 4px; }
.control input::placeholder { color: #9aa0a4; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--green-text); border-bottom: 1.5px solid var(--green-text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.control select:invalid { color: #9aa0a4; }
.field.has-error .control { border-color: #c0392b; }
.field.has-error .control:focus-within { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.error { min-height: 0; font-size: .75rem; color: #b03226; }
.form-status { font-size: .88rem; padding: 0; color: var(--green-text); }
.form-status.is-visible { padding: .9rem 1rem; background: #eef6e8; border-left: 3px solid var(--green); }

/* ---------- 16. Footer ---------- */
.footer { position: relative; overflow: hidden; background-color: var(--dark); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; color: #fff; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr; gap: clamp(1.5rem, 3vw, 3rem); }
.footer-brand .brand img { height: auto; }
.footer-full-logo { display: inline-flex; align-items: center; }
.footer-full-logo img { width: 230px; height: auto; max-width: none; border-radius: 4px; }
.footer-tag { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 1.6rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: 3.5rem; }
.footer h4 { font-family: var(--font-display); font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8rem; }
.footer a, .footer address p { color: #9a9a9a; font-size: .82rem; line-height: 1.9; transition: color var(--t) ease; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer-col { padding-top: 5.6rem; }
.footer-col li { margin-bottom: .1rem; }
.footer-office-address { margin-top: 1.25rem; }
.footer-office-address h4 { margin-top: 0; }

/* ---------- 17. Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity 700ms ease var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms); will-change: opacity, transform; }
[data-reveal="fade-up"] { transform: translateY(26px); }
[data-reveal="fade-left"] { transform: translateX(32px); }
[data-reveal="fade-right"] { transform: translateX(-32px); }
[data-reveal="scale-in"] { transform: scale(.96); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.app-card[data-reveal].is-visible { transition: opacity 700ms ease var(--d, 0ms), transform var(--t) var(--ease), box-shadow var(--t) ease; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { padding-top: 0; }
}

@media (max-width: 1024px) {
  .hero-copy { max-width: min(480px, 50%); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .stat { min-height: 170px; padding-inline: 1rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.6rem; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none;
    transition: opacity var(--t) ease, transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--green-text); }
  .nav-cta { width: 100%; }

  /* hero stacks: image on top, copy below */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: clamp(260px, 62vw, 460px); }
  .hero-inner { padding-block: 2.2rem 2.5rem; }
  .hero-side { display: none; }
  .hero-copy { max-width: 560px; gap: 1.2rem; }
  .hero-progress { margin-top: 1.2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-collage { margin-inline: auto; max-width: 440px; }
  .about-copy { max-width: none; }

  .vme-grid { grid-template-columns: 1fr; gap: 2rem; }

  .product { grid-template-columns: 1fr; }
  .product-media { min-height: 0; aspect-ratio: 4 / 3; }
  .product-copy { max-width: none; padding: 2.2rem var(--gutter) 3.2rem; }
  .product-num { margin-bottom: 1rem; }

  .stats { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .apps-head { grid-template-columns: 1fr; gap: 1rem; }
  .apps-lead { margin-top: 0; }

  .process-grid { grid-template-columns: 1fr; }
  .process-media img { aspect-ratio: 4 / 3; }

  .usp-top { grid-template-columns: 1fr; }
  .accordion { max-width: none; }

  .quote-grid { grid-template-columns: 1fr; }
  .quote-copy { max-width: none; }
}

@media (max-width: 640px) {
  .brand-full-logo img { width: 175px; }
  .footer-full-logo img { width: 205px; }
  .btn { min-height: 52px; }
  .hero-copy .btn, .btn-row .btn { width: 100%; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .app-card { aspect-ratio: 1 / 1.2; }
  .app-info { padding: .7rem; }
  .app-info p { font-size: .68rem; }
  .mfg-line2 { margin-inline: auto; }
  .mfg-sub { margin-inline: auto; }
  .count { font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat { min-height: 140px; padding-right: .6rem; }
  .step { padding-inline: .2rem; }
  .step:hover { padding-left: .6rem; }
  .usp-grid { grid-template-columns: 1fr; row-gap: 2rem; }
  .usp-item p { width: 100%; max-width: 32ch; }
  .usp-item h3, .usp-item:nth-child(2) h3 { max-width: none; }
  .quote-form { grid-template-columns: 1fr; }
  .quote-item { grid-template-columns: minmax(0, 1fr); }
  .contact-links li + li::before { margin: .3rem .7rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { margin-top: 2rem; gap: 1.2rem 2rem; }
  .link-arrow { margin-left: 0; display: flex; }
}

@media (max-width: 380px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); min-height: 110px; }
  .stat:first-child { border-top: 0; }
  .stat dt { max-width: none; }
  .contact-links li + li::before { display: none; }
  .contact-links { gap: .2rem 1.2rem; }
}


/* ---------- Requested design refinements ---------- */
@media (min-width: 901px) {
  .hero-side { padding-right: 1.4rem; }
  .apps-grid { width: 100%; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- 20. Latest requested refinements ---------- */
/* Hero: remove the old vertical protection label and use a smooth 3-image rotation. */
.hero-media { isolation: isolate; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 50%; opacity: 0; transform: scale(1.025); transition: opacity 900ms ease, transform 1800ms var(--ease); will-change: opacity, transform; }
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-copy { max-width: min(480px, 46%); }
.hero-progress-current { min-width: 1.4em; text-align: left; }

/* Keep the gradient eyebrow/heading relationship tight and intentional. */
.eyebrow { margin-bottom: .45rem; }
.about-copy { gap: .72rem; }
.about-copy .h2 { margin-top: -.05rem; }
.product-copy { gap: .68rem; }
.product-copy .eyebrow { margin-bottom: -.1rem; }
.product-title { margin-top: -.05rem; }

/* Subtle, premium floating movement for the three About images. */
.about-collage .collage-a { animation: about-float-a 7.5s ease-in-out infinite; }
.about-collage .collage-b { animation: about-float-b 8.5s ease-in-out .5s infinite; }
.about-collage .collage-c { animation: about-float-c 9s ease-in-out 1s infinite; }
@keyframes about-float-a { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-5px,0); } }
@keyframes about-float-b { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,5px,0); } }
@keyframes about-float-c { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-4px,0); } }

/* Applications: restore a balanced amount of side breathing room without making the six cards too small. */
.apps > .container { max-width: 1320px; padding-inline: clamp(1.5rem, 4.5vw, 4.5rem); }
.apps-grid { width: min(100%, 1120px); max-width: 1120px; margin-inline: auto; }
.app-info p { font-size: .78rem; line-height: 1.45; }

/* Target-customer statement: keep the sentence to roughly three balanced lines on desktop. */
.statement-text { max-width: 43ch; }

/* Preserve the process sequence: 01, 02, 03, 04, 05, 06. */

@media (max-width: 900px) {
  .hero-copy { max-width: 560px; }
  .apps > .container { padding-inline: var(--gutter); }
  .apps-grid { width: 100%; max-width: none; }
  .statement-text { max-width: 42ch; }
}

@media (max-width: 640px) {
  .statement-text { max-width: 36ch; }
  .app-info p { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .about-collage .collage-a,
  .about-collage .collage-b,
  .about-collage .collage-c { animation: none; }
}
