/* =========================================================================
   Industrial Granite Systems — shared design system
   Used by both rekhaindustries.in and tekpikindustries.com.
   Brand accent is injected per-site via --accent on :root (see build.js).
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand — overridden per site by the build */
  --accent:        #E10600;
  --accent-dark:   #B00500;
  --accent-tint:   rgba(225, 6, 0, 0.08);

  /* Neutrals — a cool graphite ramp, chosen to sit well beside granite greys */
  --ink:           #101215;
  --ink-2:         #1A1D22;
  --ink-3:         #262A31;
  --steel:         #5A626E;
  --steel-2:       #838B97;
  --line:          #E2E4E8;
  --line-dark:     rgba(255, 255, 255, 0.12);
  --paper:         #FFFFFF;
  --paper-2:       #F5F6F8;
  --paper-3:       #ECEEF1;

  /* Type */
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap:      1240px;
  --wrap-text: 760px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section:   clamp(4rem, 9vw, 7.5rem);

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 21, 0.06), 0 2px 8px rgba(16, 18, 21, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 18, 21, 0.08), 0 12px 32px rgba(16, 18, 21, 0.08);
  --shadow-lg: 0 8px 24px rgba(16, 18, 21, 0.10), 0 24px 64px rgba(16, 18, 21, 0.12);

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

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
h4 { font-size: 1.1875rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

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

/* ---------- 3. Layout primitives ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section--muted { background: var(--paper-2); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Section headings ------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.section--dark .eyebrow { color: #FF6B63; }
.section--dark .eyebrow::before { background: #FF6B63; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--steel);
}
.section--dark .lead { color: rgba(255, 255, 255, 0.74); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  --btn-bg: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.28);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--on-dark:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
  box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 6. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--accent); background: var(--accent-tint); }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-link .chev { transition: transform 0.2s var(--ease); }
.nav-item.is-open > .nav-link .chev { transform: rotate(180deg); }

/* Dropdown */
.subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.125rem;
  padding: 0.75rem;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item.is-open > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }

.subnav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.16s var(--ease);
}
.subnav a:hover { background: var(--paper-2); }
.subnav .s-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.subnav a:hover .s-title { color: var(--accent); }
.subnav .s-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--steel);
}

.header-cta { flex-shrink: 0; padding: 0.7rem 1.25rem; font-size: 0.875rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 78vh, 780px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16,18,21,0.94) 0%, rgba(16,18,21,0.72) 45%, rgba(16,18,21,0.42) 100%),
    linear-gradient(to top, rgba(16,18,21,0.85) 0%, rgba(16,18,21,0) 55%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 7rem); }
.hero-copy { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--accent); }
.hero-lead {
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero .btn-row { margin-bottom: 0; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-hero .hero-media img { opacity: 0.34; }
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 60ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.crumbs a { text-decoration: none; color: rgba(255, 255, 255, 0.72); }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- 8. Stats band ------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: #23262B;
  border-block: 1px solid #23262B;
}
.stat { background: var(--ink); padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.5rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.4rem;
}
.stat-value span { color: var(--accent); }
.stat-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- 9. Cards / product grid -------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-tag {
  position: absolute;
  left: 0.875rem;
  top: 0.875rem;
  padding: 0.3rem 0.65rem;
  background: rgba(16, 18, 21, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5rem;
  transition: color 0.2s var(--ease);
}
.card:hover .card-title { color: var(--accent); }
.card-text { font-size: 0.9375rem; line-height: 1.6; color: var(--steel); margin: 0 0 1.25rem; }
.card--cta {
  justify-content: center;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--ink);
  border-color: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.card--cta .card-title { color: #fff; }
.card--cta:hover .card-title { color: #fff; }
.card--cta .card-text { color: rgba(255, 255, 255, 0.66); }
.card--cta .card-more { color: #fff; }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.card:hover .card-more .arrow { transform: translateX(4px); }

/* ---------- 10. Feature list (about) ------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-media::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 42%;
  height: 42%;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 0 0 0 var(--radius-lg);
  z-index: -1;
}

.feature-list { display: grid; gap: 1.5rem; margin-top: 2rem; }

/* Full-width row of feature points, used under the home-page split */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.feature-row .feature { grid-template-columns: 1fr; gap: 0.9rem; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.feature-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  flex-shrink: 0;
}
.feature h4 { margin: 0 0 0.2rem; font-family: var(--font-body); font-size: 1rem; font-weight: 650; }
.feature p { font-size: 0.9375rem; line-height: 1.6; color: var(--steel); margin: 0; }
.section--dark .feature p { color: rgba(255, 255, 255, 0.68); }
.section--dark .feature-dot { background: rgba(255, 255, 255, 0.08); color: #FF6B63; }

/* ---------- 11. Prose (product body) ------------------------------------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose strong { font-weight: 650; color: var(--ink); }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.spec-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.spec-box {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.spec-box h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; margin-bottom: 1rem; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.product-aside { position: sticky; top: 100px; display: grid; gap: 1.5rem; }

.aside-card {
  padding: 1.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
}
.aside-card h3 { color: #fff; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 650; margin-bottom: 0.6rem; }
.aside-card p { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.25rem; }

.aside-nav { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.aside-nav li + li { border-top: 1px solid var(--line); }
.aside-nav a {
  display: block;
  padding: 0.8rem 1.1rem;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.aside-nav a:hover { background: var(--paper-2); color: var(--accent); }
.aside-nav a[aria-current="page"] {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* ---------- 12. Gallery -------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  cursor: zoom-in;
  border: 0;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 21, 0);
  transition: background 0.3s var(--ease);
}
.gallery-item:hover::after { background: rgba(16, 18, 21, 0.16); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 11, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox-nav.next { right: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox-count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 13. Client logos --------------------------------------------- */
/* Fixed column counts (6 / 3 / 2) rather than auto-fill: the client list is
   18 logos, which divides evenly by all three, so the last row is always full
   and no block of gap colour is ever exposed. Keep the logo count a multiple
   of 6 when editing content.json, or adjust these numbers to suit. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-cell {
  display: grid;
  place-items: center;
  padding: 1.75rem 1.25rem;
  background: var(--paper);
  min-height: 120px;
}
.logo-cell img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* Marquee strip on the home page */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  height: 46px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.marquee img:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 14. Certificates --------------------------------------------- */
.cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 2rem;
  justify-content: center;
}
.cert {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* Portrait scans — cap the height so they read as thumbnails that open
   full size in the lightbox, rather than dominating the page. */
.cert img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: top;
  border-radius: 2px;
}

.cert-figure { margin: 0; display: grid; gap: 0.75rem; }
.cert-figure figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel);
  text-align: center;
}

/* ---------- 15. Contact -------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.info-list { display: grid; gap: 1.75rem; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
  flex-shrink: 0;
}
.info-item h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.35rem;
}
.info-item p, .info-item address {
  margin: 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.info-item a { text-decoration: none; transition: color 0.18s var(--ease); }
.info-item a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: 0.8125rem; color: var(--steel); margin-top: 1rem; }

.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: #E7F6EC; color: #146B33; border: 1px solid #B7E4C7; }
.form-status.err { background: #FDECEC; color: #A31217; border: 1px solid #F5C2C2; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--paper-3);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 16. CTA band ------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(225, 6, 0, 0.20), transparent 68%),
    radial-gradient(560px 280px at 92% 100%, rgba(225, 6, 0, 0.12), transparent 62%);
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-inner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-copy { max-width: 54ch; }

/* ---------- 17. Footer --------------------------------------------------- */
.site-footer { background: #0B0C0E; color: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand img { width: auto; margin-bottom: 1.25rem; }
.footer-brand p { line-height: 1.7; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-contact { display: grid; gap: 0.85rem; font-style: normal; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 18. Reveal on scroll ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  /* backdrop-filter would make the header a containing block for the
     fixed-position nav panel, collapsing it — so drop it on mobile and
     paint the bar opaque instead. */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: 76px 0 0;
    margin: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 3rem;
  }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link {
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-size: 1.0625rem;
    border-radius: 0;
  }
  .nav-link:hover { background: none; }

  .subnav {
    position: static;
    translate: none;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0.75rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.is-open > .subnav { display: grid; }
  .subnav a { padding: 0.65rem 0.9rem; }
  .subnav .s-desc { display: none; }

  .hero { min-height: 0; }
  .hero-copy { max-width: none; }
  .split-media::before { display: none; }
}

@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .header-bar { min-height: 68px; }
  .brand img { height: 32px !important; }
  .nav { inset-block-start: 68px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}

/* ---------- 20. Motion & print ------------------------------------------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .lightbox { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}
