/* Vtronix — shared stylesheet */

:root {
  --black: #000000;
  --near-black: #060708;
  --panel: #0c0d0f;
  --white: #ffffff;
  --blue: #4a9bdc;
  --blue-bright: #6ab6f2;
  --blue-dim: #35688f;
  --blue-glow: rgba(74, 155, 220, 0.35);
  --gray-text: #a9a9a9;
  --gray-soft: #9099a1;
  --gray-line: rgba(255, 255, 255, 0.18);
  --gray-line-soft: rgba(255, 255, 255, 0.09);
  --max-width: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: "Montserrat", Arial, Helvetica, sans-serif;

  /* type scale */
  --fs-eyebrow: 13.5px;
  --fs-body: 17px;
  --fs-lead: clamp(16px, 1.15vw, 18px);
  --fs-h3: clamp(22px, 2.5vw, 28px);
  --fs-h2: clamp(26px, 3.3vw, 37px);
  --fs-h1: clamp(33px, 4.7vw, 51px);
  --fs-hero: clamp(43px, 8vw, 93px);

  /* spacing */
  --sp-1: 8px;
  --sp-2: 14px;
  --sp-3: 22px;
  --sp-4: 34px;
  --sp-5: 54px;
  --sp-6: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--blue); color: #06131d; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: #2a2d31;
  border-radius: 8px;
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-dim); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--gray-line-soft);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: inline-flex; transition: filter var(--dur) var(--ease); }
.logo:hover { filter: drop-shadow(0 0 10px var(--blue-glow)); }

.logo img {
  height: 28px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #e4e4e4;
  padding: 9px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav a.active { color: var(--white); }
.main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px var(--gutter) 30px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    border-top: 1px solid var(--gray-line-soft);
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-line-soft);
    font-size: 15px;
  }

  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--blue-bright); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--gray-line);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.btn span:first-child {
  padding: 13px 22px;
  position: relative;
}

.btn .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  border-left: 1px solid var(--gray-line);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  border-color: var(--blue);
  color: #06131d;
  box-shadow: 0 8px 26px -10px var(--blue-glow);
}

.btn:hover::before { transform: translateX(0); }
.btn:hover .arrow { border-color: rgba(6, 19, 29, 0.35); transform: translateX(4px); }

/* Variant for use on white/light backgrounds (e.g. shop pages) */
.btn-light { color: #222; border-color: #d5d5d5; }
.btn-light .arrow { border-left-color: #d5d5d5; }
.btn-light:hover { color: #06131d; }

.btn-solid {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 26px;
  padding: 13px 32px;
  font-weight: 600;
}

.btn-solid::before { display: none; }
.btn-solid:hover { background: var(--blue-bright); color: #06131d; box-shadow: 0 10px 30px -10px var(--blue-glow); }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  display: inline-block;
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: 0.2px;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
  line-height: 1.25;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.lead {
  color: #d6d6d6;
  font-size: var(--fs-lead);
  line-height: 1.8;
  max-width: 46em;
}

.accent-block {
  border-left: 1px solid var(--gray-line);
  padding-left: 24px;
}

/* ---------- Layout sections ---------- */

.section { padding: var(--sp-6) 0; }
.section-tight { padding: var(--sp-5) 0; }

@media (max-width: 760px) {
  .section { padding: var(--sp-5) 0; }
  .section-tight { padding: 40px 0; }
}
.section-white { background: var(--white); color: #111; }

.hero {
  padding: 40px var(--gutter) 0;
}

.hero-frame {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--gray-line);
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(20px, 6vw, 90px);
  position: relative;
  overflow: hidden;
  background: var(--near-black);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-frame {
    background:
      radial-gradient(ellipse 900px 500px at 82% 18%, rgba(74, 155, 220, 0.16), transparent 60%),
      var(--near-black);
  }
}

.hero-frame h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  text-align: right;
  margin: 0 0 44px;
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-frame .tagline {
  font-size: clamp(18px, 2.4vw, 28px);
  color: #d5d9dd;
  font-weight: 300;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
}

.split > div { padding: var(--sp-5) var(--gutter); display: flex; flex-direction: column; justify-content: center; }

.split .media-wrap { overflow: hidden; height: 100%; display: block; }

.split img.media,
.split .media { width: 100%; height: 100%; object-fit: cover; min-height: 340px; display: block; transition: transform 0.8s var(--ease); }

.split .media-wrap:hover img.media { transform: scale(1.045); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > div { padding: var(--sp-4) var(--gutter); }
  /* Stacked: image always above its text so the page alternates image, text, image, text */
  .split--alternate .media-wrap { order: -1; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.feature {
  border-top: 2px solid var(--gray-line);
  padding-top: 22px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature:hover { border-top-color: var(--blue); transform: translateY(-4px); }

.feature h3 {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 18px;
}

.feature p { color: #bdbdbd; font-size: 15.5px; }

.why-choose {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 580px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .why-choose { background-attachment: scroll; }
}

.why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.15) 68%),
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.why-card {
  position: relative;
  z-index: 1;
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  max-width: 460px;
  padding: 46px 42px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .why-card { padding: 32px 26px; }
}

.numbered-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .numbered-links { grid-template-columns: 1fr 1fr; }
}

.numbered-links > div { transition: transform var(--dur) var(--ease); }
.numbered-links > div:hover { transform: translateY(-4px); }

.numbered-links .num {
  font-size: 30px;
  font-weight: 200;
  color: #4a4e53;
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: 12px;
  margin-bottom: 12px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.numbered-links > div:hover .num { color: var(--blue-bright); border-color: var(--blue); }

.numbered-links a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  font-size: 15.5px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

.numbered-links a:hover { color: var(--blue-bright); text-decoration-color: var(--blue-bright); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--gray-line-soft);
  background:
    linear-gradient(180deg, rgba(74, 155, 220, 0.05), transparent 140px),
    var(--black);
  padding: var(--sp-5) 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* 4th column's h4 is a blank spacer that lines the "Mini Split Controls" list up
     under "Products" on wider grids — stacked to one column it's just an empty gap. */
  .footer-grid > div:nth-child(4) h4 { display: none; margin: 0; }
}

.footer-grid h4 {
  letter-spacing: 2px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0 0 18px;
}

.footer-brand { font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; font-size: 18px; }
.footer-brand .reg { color: var(--blue); }

.footer-grid p, .footer-grid a { font-size: 15px; color: #c2c2c2; margin: 0 0 10px; display: block; transition: color var(--dur) var(--ease); }
.footer-grid a { position: relative; width: fit-content; }
.footer-grid a:hover { color: var(--blue-bright); }

/* ---------- Steps (Factory) ---------- */

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--gray-line-soft);
}

.step:nth-child(even) .step-media { order: 2; }

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-media { order: 0; }
}

.step-num {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-num .n {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  background: var(--blue);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-media { overflow: hidden; border-radius: 3px; }
.step-media img { width: 100%; border: 1px solid var(--gray-line-soft); transition: transform 0.7s var(--ease); border-radius: 3px; }
.step-media:hover img { transform: scale(1.04); }

/* ---------- Products (shop pages: light theme) ---------- */

.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-top: 50px;
  padding-bottom: 90px;
}

@media (max-width: 760px) {
  .shop-layout { grid-template-columns: 1fr; }
}

.shop-categories { border-right: 1px solid #eaeaea; padding-right: 20px; position: sticky; top: 96px; align-self: start; }

@media (max-width: 760px) {
  .shop-categories { border-right: none; border-bottom: 1px solid #eaeaea; padding-right: 0; padding-bottom: 24px; margin-bottom: 10px; position: static; }
}

.shop-categories h4 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 14px;
}

.shop-categories ul { list-style: none; margin: 0; padding: 0; }

.shop-categories li a {
  display: block;
  padding: 9px 0 9px 12px;
  font-size: 15px;
  color: #333;
  border-left: 2px solid transparent;
  border-bottom: 1px solid #f2f2f2;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.shop-categories li a.active { color: var(--blue-dim); font-weight: 600; border-left-color: var(--blue); background: linear-gradient(90deg, rgba(74, 155, 220, 0.08), transparent); }
.shop-categories li a:hover { color: var(--blue-dim); padding-left: 16px; }

.shop-search {
  display: flex;
  margin-bottom: 26px;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.shop-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74, 155, 220, 0.15); }

.shop-search input {
  flex: 1;
  border: 0;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}

.shop-search button {
  border: 0;
  background: #111;
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.shop-search button:hover { background: var(--blue-dim); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.25vw, 30px);
}

@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block;
  border: 1px solid #cbd3d8;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 16px 32px -20px rgba(20, 43, 59, 0.38);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.product-thumb {
  position: relative;
  aspect-ratio: 5 / 4;
  padding: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf0f2;
}

.product-thumb svg { width: 42%; height: 42%; opacity: 0.5; stroke: #5b6b78; transition: opacity var(--dur) var(--ease), stroke var(--dur) var(--ease), transform 0.5s var(--ease); }
.product-card:hover .product-thumb svg { opacity: 0.85; stroke: var(--blue-dim); transform: scale(1.06); }

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  filter: none;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
  filter: none;
}

.product-tag {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.product-tag.discontinued { background: #9a2020; }

.product-info { padding: 17px 18px 20px; }
.product-info .sku { font-weight: 600; font-size: 16.5px; line-height: 1.35; color: #111; }
.product-info .rule { height: 2px; width: 26px; background: var(--blue); margin-top: 10px; transition: width var(--dur) var(--ease); }
.product-card:hover .product-info .rule { width: 42px; }

@media (max-width: 700px) {
  .product-tag { top: 9px; left: 9px; font-size: 10.5px; padding: 5px 8px; }
  .product-info { padding: 14px 14px 16px; }
  .product-info .sku { font-size: 15.5px; }
}

/* ---------- Shared two-column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col--uneven { grid-template-columns: 1fr 1.2fr; align-items: start; }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- About page ---------- */

/* ---------- About: full-width facility photo + strengths ---------- */

.strengths-showcase {
  position: relative;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--gray-line-soft);
}

.about-facility-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: clamp(420px, 56vw, 860px);
  background: #0d1115;
}

/* Fade the bottom of the photo into the page so the heading sits on it */
.about-facility-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.62) 68%, var(--black) 100%),
    linear-gradient(120deg, rgba(74, 155, 220, 0.10), transparent 40%);
  z-index: 1;
}

/* Outer layer: scroll parallax (JS sets transform). Inner ::before: zoom. */
.about-facility-parallax {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  will-change: transform;
}

.about-facility-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/facility-exterior.jpg") center 30% / cover no-repeat;
  transform: scale(1.12);
  transition: transform 2.6s var(--ease);
}

.strengths-showcase.in-view .about-facility-parallax::before {
  transform: scale(1);
  animation: facility-drift 24s ease-in-out 2.6s infinite alternate;
}

@keyframes facility-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateX(-1%); }
}

.showcase-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(-260px, -16vw, -140px);
}

.showcase-head .h1 { margin-bottom: var(--sp-4); }

.strengths-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.strengths-grid li {
  position: relative;
  padding: var(--sp-4) var(--sp-3) var(--sp-4);
  background: rgba(12, 13, 15, 0.72);
  border: 1px solid var(--gray-line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

/* Blue rule across the top of each card; draws in on reveal */
.strengths-grid li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  height: 2px;
  width: calc(100% + 2px);
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}

.strengths-grid li:hover {
  border-color: var(--gray-line);
  background: rgba(18, 20, 23, 0.85);
}

.strengths-num {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
}

.strengths-grid p {
  margin: 0;
  color: #d6d6d6;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* Heading and cards fade up in sequence once the section is in view */
.showcase-head,
.strengths-grid li {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease),
    border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.strengths-showcase.in-view .showcase-head,
.strengths-showcase.in-view .strengths-grid li {
  opacity: 1;
  transform: none;
}

.strengths-showcase.in-view .strengths-grid li::before { transform: scaleX(1); }

.strengths-showcase.in-view .showcase-head { transition-delay: 0.35s; }
.strengths-showcase.in-view .strengths-grid li:nth-child(1),
.strengths-showcase.in-view .strengths-grid li:nth-child(1)::before { transition-delay: 0.55s; }
.strengths-showcase.in-view .strengths-grid li:nth-child(2),
.strengths-showcase.in-view .strengths-grid li:nth-child(2)::before { transition-delay: 0.67s; }
.strengths-showcase.in-view .strengths-grid li:nth-child(3),
.strengths-showcase.in-view .strengths-grid li:nth-child(3)::before { transition-delay: 0.79s; }
.strengths-showcase.in-view .strengths-grid li:nth-child(4),
.strengths-showcase.in-view .strengths-grid li:nth-child(4)::before { transition-delay: 0.91s; }

/* Keep hover snappy after the entrance */
.strengths-showcase.in-view .strengths-grid li:hover { transition-delay: 0s; }

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

@media (max-width: 760px) {
  .strengths-showcase { padding-bottom: var(--sp-5); }
  .about-facility-photo { height: 380px; }
  .showcase-content { margin-top: -110px; }
}

@media (max-width: 620px) {
  .about-facility-parallax {
    top: 0;
    height: 100%;
    transform: none !important;
  }

  /* Keep the building and sign in frame on narrow screens */
  .about-facility-parallax::before { background-position: 42% 40%; }
}

@media (max-width: 520px) {
  .strengths-grid { grid-template-columns: 1fr; gap: 12px; }
  .strengths-grid li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: baseline;
    padding: var(--sp-3);
  }
  .strengths-num { margin: 0; font-size: var(--fs-h3); }
}

@media (prefers-reduced-motion: reduce) {
  .strengths-showcase .about-facility-parallax::before,
  .showcase-head,
  .strengths-grid li,
  .strengths-grid li::before {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 15px;
  color: #333;
  transition: all var(--dur) var(--ease);
}

.pagination a.current { background: #111; color: #fff; border-color: #111; }
.pagination a:hover { border-color: var(--blue-dim); color: var(--blue-dim); }

/* ---------- Links page ---------- */

.link-block { padding: 74px 0; border-bottom: 1px solid var(--gray-line-soft); }
.link-block .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }

@media (max-width: 820px) {
  .link-block .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .link-block { padding: var(--sp-5) 0; }
  .shop-layout { padding-bottom: var(--sp-5); }
}

.link-list { columns: 1; }
@media (min-width: 640px) {
  .link-list { columns: 2; column-gap: 30px; }
}
.link-list a {
  display: block;
  padding: 7px 0;
  font-size: 15.5px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 4px;
  break-inside: avoid;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.link-list a:hover { color: var(--blue-bright); text-decoration-color: var(--blue-bright); transform: translateX(3px); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 74px 0;
  align-items: start;
}

.form-eyebrow { text-align: right; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 var(--sp-5); }
  .form-eyebrow { text-align: left; }
}

.contact-form {
  background: #eef0f2;
  color: #111;
  padding: 36px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .contact-form .field-row { grid-template-columns: 1fr; } }

.contact-form label { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: #444; display: block; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 12px 13px;
  font-family: var(--font);
  font-size: 15px;
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 155, 220, 0.18);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .send-btn {
  margin-top: 22px;
  background: #111;
  color: #fff;
  border: 0;
  padding: 13px 30px;
  border-radius: 22px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-form .send-btn:hover { background: var(--blue); color: #06131d; transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--blue-glow); }
.contact-form .send-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.form-note { font-size: 14px; margin-top: 14px; color: #2a7d2a; display: none; }
.form-note.show { display: block; }
.form-note.error { color: #b23b3b; }

.location-block { display: flex; flex-direction: column; gap: 46px; }
.location-block img { border: 1px solid var(--gray-line-soft); border-radius: 3px; }
.location-info p { margin: 4px 0; font-size: 16px; }
.location-info a:hover { color: var(--blue-bright); }
.location-info .eyebrow { margin-bottom: 16px; }

/* ---------- Misc ---------- */

.photo-strip { overflow: hidden; }
.photo-strip img { width: 100%; height: 340px; object-fit: cover; transition: transform 1s var(--ease); }
.photo-strip:hover img { transform: scale(1.03); }

@media (max-width: 620px) {
  .photo-strip img { height: 220px; }
}

.center { text-align: center; }

/* ---------- Product detail page ---------- */

.breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 26px;
}
.breadcrumb a { color: #888; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--blue-dim); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: #222; font-weight: 600; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding: 10px 0 90px;
  align-items: start;
}

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
}

.product-detail-media {
  border: 1.5px solid #111;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: sticky;
  top: 96px;
}

.product-detail-media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-detail-tag {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.product-detail h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  margin: 0 0 22px;
  color: #111;
}

.product-detail .section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 14px;
}

.feature-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.pdf-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pdf-links a:hover { border-color: var(--blue-dim); color: var(--blue-dim); }
.pdf-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
