/* ==========================================================================
   GenCom Compression Services — redevelopment prototype 2026
   Palette: Plant Navy / Safety Orange / Steel / Mist / Gauge Blue
   Type:    Barlow Condensed (display) · Barlow (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --navy-950: #060D1F;
  --navy-900: #0A1630;
  --navy-800: #10224A;
  --orange-600: #F25822;
  --orange-500: #FE5A0E;
  --steel-300: #B9C4D6;
  --mist-100: #F2F5F9;
  --white: #FFFFFF;
  --blue-500: #3F80C2;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: min(1180px, 92vw);
  --scene-pad: clamp(4.5rem, 10vh, 8rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--steel-300);
  background: var(--navy-900);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- type roles ---------- */
.display-1, .display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.display-1 { font-size: clamp(3rem, 8.5vw, 7rem); }
.display-2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 1.4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--orange-600); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34em; margin-top: 1.4rem; }
.body-max { max-width: 44em; }

/* word-reveal targets */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > i { display: inline-block; font-style: normal; transform: translateY(110%); }
.no-motion .split .w > i { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.btn-orange { background: var(--orange-500); color: var(--white); }
.btn-orange:hover { background: var(--orange-600); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); }
.btn-big { font-size: 1.25rem; padding: 1.05rem 2.6rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 2.2rem;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.solid { background: rgba(6, 13, 31, 0.92); box-shadow: 0 1px 0 rgba(63,128,194,0.25); backdrop-filter: blur(8px); }
/* theme inversion while the light Parts scene runs under the nav */
.nav.nav-light { background: rgba(242,245,249,0.94); box-shadow: 0 1px 0 rgba(10,22,48,0.12); }
.nav.nav-light .nav-links a { color: #45536A; }
.nav.nav-light .nav-links a:hover, .nav.nav-light .nav-links a:focus-visible { color: var(--navy-900); }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--steel-300);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
/* header phone — one-tap calling for shutdown/emergency callers */
.nav-tel {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.nav-tel svg { width: 17px; height: 17px; color: var(--orange-500); flex: none; }
.nav-tel:hover { color: var(--orange-500); }
.nav-tel:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.nav.nav-light .nav-tel { color: var(--navy-900); }

/* ---------- signature gauge ---------- */
.gauge {
  position: fixed; right: clamp(0.9rem, 2.5vw, 2rem); bottom: clamp(0.9rem, 2.5vw, 2rem);
  z-index: 55; width: 92px; text-align: center; pointer-events: none;
}
.gauge svg { width: 92px; height: 92px; display: block; }
.gauge-ring { fill: rgba(6,13,31,0.72); stroke: var(--blue-500); stroke-width: 1.4; }
.gauge-ticks line { stroke: var(--steel-300); stroke-width: 1; }
.gauge-ticks line.major { stroke: var(--blue-500); stroke-width: 1.6; }
.gauge-needle { stroke: var(--orange-500); stroke-width: 2.4; stroke-linecap: round; }
.gauge-hub { fill: var(--orange-500); }
.gauge-plate {
  margin-top: 0.35rem; font-family: var(--font-mono);
  background: rgba(6,13,31,0.72); border: 1px solid rgba(63,128,194,0.4);
  padding: 0.2rem 0.3rem; line-height: 1.3;
}
.gauge-plate #gaugeNum { display: block; color: var(--orange-500); font-size: 0.8rem; font-weight: 500; }
.gauge-plate #gaugeLabel { display: block; color: var(--steel-300); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- scenes ---------- */
.scene { position: relative; padding: var(--scene-pad) 0; scroll-margin-top: 78px; }
.hero { scroll-margin-top: 0; }

/* Scene 1 · hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
/* Layer split: the wrapper takes the GSAP scroll parallax (y + dolly scale),
   the img keeps the time-based Ken Burns — CSS animations override inline
   transforms, so they must live on different elements. */
.hero-layer { position: absolute; inset: 0; will-change: transform; }
.hero-img {
  width: 100%; height: 115%; object-fit: cover; object-position: center 35%;
  transform: scale(1.08);
  animation: kenburns 26s ease-in-out infinite alternate;
}
/* seam mask: fade moving layers into the next scene, no hard clip edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to top, var(--navy-900), transparent);
  z-index: 3; pointer-events: none;
}
@keyframes kenburns {
  from { transform: scale(1.08) translateY(0); }
  to   { transform: scale(1.16) translateY(-2%); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,31,0.55) 0%, rgba(6,13,31,0.25) 40%, rgba(6,13,31,0.88) 100%),
    linear-gradient(100deg, rgba(6,13,31,0.82) 0%, rgba(6,13,31,0.2) 65%);
}
/* padding-bottom balances padding-top so the flex centring is true; without it the
   block sits low and the enlarged OEM plates run into the scroll cue. */
.hero-content { position: relative; z-index: 2; width: var(--wrap); margin-inline: auto; padding-top: 6rem; padding-bottom: 7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--steel-300);
}
.scroll-cue i {
  display: block; width: 1px; height: 44px; margin: 0.5rem auto 0;
  background: linear-gradient(var(--orange-500), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Scene 2 · statement */
.statement { background: var(--navy-900); }
.spec-plate {
  position: relative; margin-top: 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border: 1px solid rgba(63,128,194,0.45);
  background: linear-gradient(180deg, rgba(16,34,74,0.5), rgba(6,13,31,0.5));
  padding: 2rem 1.5rem;
}
.rivet {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #DDE6F2, #5A6B85 70%);
}
.r-tl { top: 7px; left: 7px; } .r-tr { top: 7px; right: 7px; }
.r-bl { bottom: 7px; left: 7px; } .r-br { bottom: 7px; right: 7px; }
.spec-item { text-align: center; }
.spec-num, .spec-unit {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem); color: var(--white);
}
.spec-unit { color: var(--orange-500); font-size: clamp(1.2rem, 2.4vw, 2rem); }
.spec-cap {
  display: block; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel-300);
}

/* hero authorization chips */
.hero-auth {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 1.6rem;
}
.hero-auth-label {
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white); margin-right: 0.7rem;
}
.auth-chip {
  display: flex; align-items: center; justify-content: center;
  height: 148px; min-width: 208px; padding: 0 2.1rem;
  /* solid white: the logo files carry their own white ground, so any alpha here
     shows as a grey frame around the mark */
  background: #FFFFFF; border-radius: 2px;
  transition: transform 0.25s ease;
}
.auth-chip:hover { transform: translateY(-2px); }
.auth-chip:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.auth-chip img { height: 100px; width: auto; max-width: 330px; object-fit: contain; }
/* laptops are short, not narrow — step the plates down by height, not by width */
@media (max-height: 820px) and (min-width: 861px) {
  .auth-chip { height: 112px; min-width: 158px; padding: 0 1.5rem; }
  .auth-chip img { height: 74px; max-width: 250px; }
  .hero-auth-label { font-size: 0.92rem; }
}

/* ---------- brand rule: "Gen" orange + "Com" blue, as on the old site ----------
   On a light panel the two colours sit straight on the background. On dark, blue
   or orange panels the brand blue has too little contrast, so GenCom sits on a
   small white chip — the same treatment the old site used over its blue panels.
   (A white stroke was tried first and read as fuzzy at body-text size.) */
/* The brand colours never change. A solid white rectangle sits behind every
   occurrence so the orange and blue read the same on any background. */
.gc {
  white-space: nowrap;
  font-weight: 700;
  background-color: #FFFFFF;
  padding: 0.06em 0.3em;
  border-radius: 0;                 /* square corners, as specified */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.gc-gen { color: #FE5A0E; }
.gc-com { color: #3F80C2; }
/* headings are large, so the block needs less breathing room to look right */
.display-1 .gc, .display-2 .gc, h3 .gc, h4 .gc { padding: 0.02em 0.2em; }
/* small print: a tight block reads as a highlighter mark, so open it up */
.footer-bottom .gc, .eyebrow .gc, figcaption .gc, .note .gc { padding: 0.16em 0.36em; }

/* Scene 3 · authorized — the letters ARE the design */
.authorized { background: var(--navy-950); }
.cert-row {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}
.cert { background: var(--navy-800); border: 1px solid rgba(63,128,194,0.3); }
.cert-doc {
  display: block; width: 100%; position: relative; cursor: zoom-in;
  border: none; padding: 0.9rem 0.9rem 0; background: none; text-align: inherit;
}
.cert-doc img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border: 1px solid rgba(63,128,194,0.25);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  transition: transform 0.4s ease;
}
.cert-doc:hover img, .cert-doc:focus-visible img { transform: scale(1.02); }
.cert-doc:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
.cert-zoom {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--white);
  background: rgba(6,13,31,0.85); border: 1px solid rgba(63,128,194,0.5);
  padding: 0.4rem 0.8rem; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s ease;
}
.cert-doc:hover .cert-zoom, .cert-doc:focus-visible .cert-zoom { opacity: 1; }
.cert-plate { padding: 1.2rem 1.4rem 1.5rem; }
.cert-logo { height: 30px; width: auto; max-width: 130px; object-fit: contain;
  background: var(--white); padding: 4px 8px; border-radius: 2px; margin-bottom: 0.8rem; }
.cert-plate h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  text-transform: uppercase; color: var(--white); line-height: 1.05;
}
.cert-title {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange-500); margin: 0.45rem 0 0.7rem;
}
.cert-plate p:not(.cert-title) { font-size: 0.95rem; }
/* AG Equipment: written credit, no document implied */
.auth-rep-line {
  margin-top: 2rem; max-width: 62em;
  display: flex; align-items: center; gap: 1rem;
  border-left: 3px solid var(--orange-500);
  padding: 0.85rem 1.2rem;
  background: rgba(16,34,74,0.45);
  font-size: 1rem;
}
.auth-rep-line img { height: 40px; width: 40px; object-fit: contain;
  background: var(--white); padding: 5px; border-radius: 2px; flex: none; }
.auth-rep-line strong { color: var(--white); font-weight: 600; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6,13,31,0.94);
  display: flex; align-items: center; justify-content: center; padding: 2.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(760px, 92vw); max-height: 92vh; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  font-size: 2.4rem; line-height: 1; color: var(--white);
  background: none; border: none; cursor: pointer; padding: 0.4rem;
}
.lightbox-close:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }

/* Scene 4 · services reel */
.services { background: var(--navy-950); overflow: hidden; }
.services-head { margin-bottom: 2.5rem; }
.reel-track {
  display: flex; gap: clamp(1rem, 2vw, 1.8rem);
  padding-left: max(calc((100vw - var(--wrap)) / 2), 1rem);
  padding-right: 4vw;
  width: max-content;
}
.card {
  width: clamp(300px, 30vw, 400px); flex: none;
  background: var(--navy-800);
  border: 1px solid rgba(63,128,194,0.25);
}
.card figure { overflow: hidden; aspect-ratio: 4 / 3; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0.6s ease; }
.card:hover figure img { transform: scale(1.12); }
.card-plate { padding: 1.3rem 1.4rem 1.6rem; }
.card-plate h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  text-transform: uppercase; color: var(--white); letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.card-plate p { font-size: 0.98rem; }

/* Scene 4 · parts (light) */
.parts { background: var(--mist-100); color: #45536A; }
.parts .display-2 { color: var(--navy-900); }
.parts-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.checks { list-style: none; margin: 1.6rem 0 2rem; }
/* default = readable on DARK scenes; navy text only on light scenes */
.checks li { padding-left: 1.7rem; position: relative; margin-bottom: 0.65rem; font-weight: 500; color: var(--white); }
.scene-light .checks li, .parts .checks li { color: var(--navy-800); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.75em; height: 0.75em; background: var(--orange-500);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 40% 70%);
}
.parts-stack { position: relative; min-height: 480px; }
.parts-stack img {
  position: absolute; object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 24px 60px rgba(10,22,48,0.28);
}
.ps-a { width: 70%; height: 58%; left: 0;   top: 0;      z-index: 1; }
.ps-b { width: 56%; height: 46%; right: 0;  bottom: 6%;  z-index: 3; }
.ps-c { width: 34%; height: 26%; left: 4%;  bottom: 0;   z-index: 2; }

/* Scene 5 · clients */
.clients { background: var(--navy-950); padding-bottom: calc(var(--scene-pad) * 0.8); }
.clients .wrap { margin-bottom: 2.6rem; }
.marquee { overflow: hidden; display: grid; gap: 1rem; }
.marquee-row { display: flex; gap: 1rem; width: max-content; }
.mr-a { animation: marq 38s linear infinite; }
.mr-b { animation: marq 46s linear infinite reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip {
  flex: none; width: 150px; height: 76px;
  background: var(--white); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; padding: 0.8rem;
}
.chip img { max-height: 100%; width: auto; object-fit: contain; }

/* Scene 6 · projects */
.projects { background: var(--navy-900); }
.collage {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
}
.tile { position: relative; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white);
  background: rgba(6,13,31,0.78); padding: 0.35rem 0.7rem;
}
.t-1 { grid-column: span 4; aspect-ratio: 16/8; }
.t-2 { grid-column: span 2; aspect-ratio: 4/5; }
.t-3 { grid-column: span 2; aspect-ratio: 4/4; }
.t-4 { grid-column: span 2; aspect-ratio: 4/4; }
.t-5 { grid-column: span 2; aspect-ratio: 4/4; }
.t-6 { grid-column: span 6; aspect-ratio: 21/7; }

/* Scene 7 · CTA */
.cta { background: var(--orange-500); color: var(--white); }
.cta .display-2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.cta-sub { font-size: 1.15rem; max-width: 30em; color: rgba(255,255,255,0.92); }
/* Plant Navy, not the brand's gauge blue: #3F80C2 on this orange band is about 1.6:1,
   which is unreadable. The navy matches the Request a quote button beside it. */
.cta-sub-strong { font-weight: 700; color: var(--navy-900); }
/* tel: button under the Call Now line — a section headed "Call Now" should be one tap
   from an actual call, especially on a phone */
.cta-tel { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.5rem; }
.cta-tel svg { width: 1.15em; height: 1.15em; flex: none; }
.cta-actions { text-align: right; }
.cta-line { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.85rem; }
.cta-line a { color: var(--white); }

/* footer */
.footer {
  background: var(--navy-950); text-align: center;
  padding: 3rem 1rem 2.4rem; font-size: 0.9rem;
}
.footer img { height: 40px; width: auto; margin: 0 auto 1rem; }
.foot-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #56637C; margin-top: 0.5rem; }

/* letterbox mask — statement headline opens like a film title */
.letterbox { clip-path: inset(50% 0% 50% 0%); }
.no-motion .letterbox { clip-path: none; }

/* entrance curtain — two navy panels part from center on load.
   Pure CSS so a JS failure can never leave the page covered. */
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: flex; flex-direction: column; }
.curtain i { flex: 1; background: var(--navy-950); }
.curtain i:first-child { animation: curtainUp 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.35s forwards; }
.curtain i:last-child { animation: curtainDown 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.35s forwards; }
@keyframes curtainUp { to { transform: translateY(-101%); } }
@keyframes curtainDown { to { transform: translateY(101%); } }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ==========================================================================
   Inner pages — shared patterns
   ========================================================================== */

/* page hero: shorter banner with the same layered parallax language */
.page-hero {
  min-height: 58vh; min-height: 58svh;
  display: flex; align-items: flex-end;
  padding: 8rem 0 3.2rem;
}
.ph-media { position: absolute; inset: 0; overflow: hidden; }
.ph-layer { position: absolute; inset: 0; will-change: transform; }
.ph-layer img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; }
.ph-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,31,0.66) 0%, rgba(6,13,31,0.38) 45%, rgba(10,22,48,0.96) 100%),
    linear-gradient(100deg, rgba(6,13,31,0.7) 0%, rgba(6,13,31,0.15) 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to top, var(--navy-900), transparent);
  z-index: 1; pointer-events: none;
}
.ph-content { position: relative; z-index: 2; }
.page-hero .display-1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
.page-hero .lede { margin-top: 1rem; }

/* scene tone variants */
.scene-darker { background: var(--navy-950); }
.scene-light { background: var(--mist-100); color: #45536A; }
.scene-light .display-2, .scene-light h3 { color: var(--navy-900); }
.scene-light .eyebrow { color: var(--orange-600); }

/* duo: alternating copy/media rows */
.duo {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 2.4rem;
}
.duo + .duo { margin-top: 3.6rem; }
.duo-flip .duo-copy { order: 2; } .duo-flip .duo-media { order: 1; }
.duo-copy h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  text-transform: uppercase; color: var(--white); margin-bottom: 0.6rem;
}
.scene-light .duo-copy h3 { color: var(--navy-900); }
.duo-media { margin: 0; }
.duo-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 18px 44px rgba(0,0,0,0.35); }

/* info cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.card-grid.cg-2 { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: var(--navy-800); border: 1px solid rgba(63,128,194,0.25);
  display: flex; flex-direction: column;
}
.info-card figure { overflow: hidden; aspect-ratio: 16 / 9; margin: 0; }
.info-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.info-card:hover figure img { transform: scale(1.06); }
.info-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  text-transform: uppercase; color: var(--white); line-height: 1.05;
  margin: 1.1rem 1.2rem 0.45rem;
}
.info-card p { font-size: 0.96rem; margin: 0 1.2rem 1.2rem; }
.info-card .btn { margin: auto 1.2rem 1.2rem; align-self: flex-start; }
.info-card .card-meta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-500); margin: 1.1rem 1.2rem 0; }
.info-card .card-meta + h3 { margin-top: 0.35rem; }
.scene-light .info-card { background: var(--white); border-color: rgba(10,22,48,0.12); }

/* Representation scene: each OEM gets two boxes — a white logo plate and a navy
   detail plate. The logos are dark artwork on transparent, so the plate has to be
   white or they disappear against the scene. */
.rep-grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
.rep-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 1.6rem; min-height: 190px;
  /* solid white, not a tint — the logo files carry their own white background and
     any alpha here shows as a grey frame around them */
  background: #FFFFFF;
  border: 1px solid rgba(63,128,194,0.25);
}
.rep-logo img { width: 100%; max-width: 210px; height: auto; max-height: 110px; object-fit: contain; }
/* The AG card carries no button, so it would sit top-aligned in a tall row and leave a
   hole. Auto margins beat justify-content, so the two carded rows keep their button
   pinned to the bottom and only the buttonless card centres. */
.rep-detail { justify-content: center; }

/* accordion (FAQ) */
.accordion { margin-top: 2.2rem; max-width: 56em; }
.accordion details { background: var(--navy-800); border: 1px solid rgba(63,128,194,0.3); margin-bottom: 0.7rem; }
.accordion summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 600; color: var(--white); font-size: 1.02rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--orange-500);
  transition: transform 0.25s ease;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion summary:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -2px; }
.acc-body { padding: 0 1.25rem 1.15rem; }
.acc-body p { margin-bottom: 0.7rem; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.g-item { padding: 0; border: 1px solid rgba(63,128,194,0.25); background: none; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.4s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }

/* article prose (blog posts) */
.prose { max-width: 46em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.9rem;
  text-transform: uppercase; color: var(--white); margin: 2.4rem 0 0.8rem;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  text-transform: uppercase; color: var(--white); margin: 1.8rem 0 0.6rem;
}
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.05rem 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--orange-500); }
.prose strong { color: var(--white); }
.prose img { margin: 1.5rem 0; box-shadow: 0 18px 44px rgba(0,0,0,0.35); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-top: 2.2rem; max-width: 58em; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel-300);
}
.field input, .field select, .field textarea {
  background: rgba(6,13,31,0.55); border: 1px solid rgba(63,128,194,0.35);
  color: var(--white); padding: 0.78rem 0.95rem; font: inherit; border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--orange-500); outline-offset: 1px;
}
/* on light scenes the fields must be light too — dark boxes look broken there */
.scene-light .field input, .scene-light .field select, .scene-light .field textarea {
  background: var(--white); color: var(--navy-900); border: 1px solid rgba(10,22,48,0.28);
}
.scene-light .field label { color: #5A6B7A; }
/* submit button must not stretch to fill its grid cell */
.form-grid .btn { align-self: end; justify-self: start; }
.form-status { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.85rem; }
.form-status.ok { color: #7BD88F; }
.form-status.err { color: #FF8A65; }

/* request-a-quote wizard */
.rfq-shell { margin-top: 2.2rem; max-width: 58em; }
.rfq-steps { display: flex; gap: 0.5rem; margin-bottom: 1.8rem; }
.rfq-step {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-300); border: 1px solid rgba(63,128,194,0.3); padding: 0.6rem 0.4rem;
}
.rfq-step.active { border-color: var(--orange-500); color: var(--white); background: rgba(242,88,34,0.12); }
.rfq-step.done { border-color: rgba(123,216,143,0.5); color: #7BD88F; }
.rfq-panel[hidden] { display: none; }
.rfq-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.rfq-review { border: 1px solid rgba(63,128,194,0.3); background: rgba(6,13,31,0.4); padding: 1.2rem 1.4rem; }
.rfq-review dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-500); margin-top: 0.8rem; }
.rfq-review dd { margin: 0.15rem 0 0; color: var(--white); }

/* wizard on a light scene — same treatment as the contact form */
.scene-light .rfq-step { color: #5A6B7A; border-color: rgba(10,22,48,0.25); }
.scene-light .rfq-step.active { color: var(--navy-900); border-color: var(--orange-500); background: rgba(242,88,34,0.10); }
.scene-light .rfq-step.done { color: #1E7B34; border-color: rgba(30,123,52,0.45); }
.scene-light .rfq-review { background: var(--white); border-color: rgba(10,22,48,0.15); }
.scene-light .rfq-review dd { color: var(--navy-900); }
.scene-light .btn-ghost { border-color: rgba(10,22,48,0.45); color: var(--navy-900); }
.scene-light .btn-ghost:hover { border-color: var(--navy-900); }

/* leadership nameplates */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.leader {
  background: var(--navy-800); border: 1px solid rgba(63,128,194,0.25);
  border-top: 3px solid var(--orange-500);
  padding: 1.6rem 1.7rem 1.5rem;
}
.leader h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem;
  text-transform: uppercase; color: var(--white); line-height: 1.05;
}
.leader .role {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange-500); margin: 0.35rem 0 0.85rem;
}
.leader p:not(.role) { font-size: 0.97rem; }
.leader strong { color: var(--white); }
/* credentials read as a list, not a paragraph — tighter than the feature checklists */
.checks-tight { margin: 0.2rem 0 0; }
.checks-tight li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.checks-tight li::before { top: 0.36em; }

/* part-number index (catalogue pages) */
.pt-tools {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem;
}
.pt-search { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 320px; max-width: 460px; }
.pt-search span {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel-300);
}
.pt-search input {
  background: rgba(6,13,31,0.55); border: 1px solid rgba(63,128,194,0.35);
  color: var(--white); padding: 0.7rem 0.9rem; font: inherit;
}
.pt-search input:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 1px; }
.pt-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange-500); }
.pt-wrap {
  max-height: 62vh; overflow: auto;
  border: 1px solid rgba(63,128,194,0.3); background: rgba(6,13,31,0.35);
}
.pt-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pt-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--navy-800); color: var(--white); text-align: left;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(63,128,194,0.4);
}
.pt-table td { padding: 0.55rem 0.9rem; border-bottom: 1px solid rgba(63,128,194,0.14); vertical-align: top; }
.pt-table tbody tr:hover { background: rgba(63,128,194,0.09); }
.pt-no { font-family: var(--font-mono); color: var(--white); white-space: nowrap; }
.pt-old {
  display: block; font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--steel-300); opacity: 0.75; margin-top: 0.15rem;
}
.pt-note { margin-top: 1rem; font-size: 0.95rem; }
.pt-note a { color: var(--orange-500); }
.pt-empty { padding: 1.6rem 0.9rem; color: var(--steel-300); }

/* shared footer */
.site-footer { background: var(--navy-950); padding: 3.5rem 0 0; }
.footer-cols {
  display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1.15fr; gap: 2.2rem;
  padding-bottom: 2.5rem;
}
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(63,128,194,0.4); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-300); transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover, .footer-social a:focus-visible { color: var(--white); border-color: var(--orange-500); }
.footer-social svg { width: 17px; height: 17px; }
.footer-contact li { margin-bottom: 0.85rem; line-height: 1.45; font-size: 0.92rem; }
.footer-contact strong {
  display: block; color: var(--white); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem;
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 26em; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange-500); margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--steel-300); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(63,128,194,0.2);
  padding: 1.2rem 0; text-align: center; font-size: 0.85rem;
}
.footer-bottom .foot-note { margin-top: 0.3rem; }

/* whatsapp float (site-wide on the live site; gauge owns bottom-right) */
.wa-float {
  position: fixed; left: clamp(0.9rem, 2.5vw, 2rem); bottom: clamp(0.9rem, 2.5vw, 2rem);
  z-index: 55; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; }

/* film grain atmosphere — STATIC. The animated version repainted a
   double-viewport fixed layer every 0.7s (steps(10)/7s) and caused visible
   scroll stutter on the live site. A static tile composites once and is free. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}

/* ---------- tablet / small laptop (901–1200px) ----------
   The site previously had ONE breakpoint at 900px, so iPads and small laptops
   got the full desktop layout at a size it was never tuned for. */
@media (min-width: 901px) and (max-width: 1200px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem 2.4rem; }
  .nav { gap: 1.1rem; padding-inline: 1.2rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.88rem; letter-spacing: 0.05em; }
  .nav-tel span { display: none; }          /* icon only — keeps the bar on one row */
  .nav-tel svg { width: 20px; height: 20px; }
  .nav-cta { padding: 0.7rem 1.1rem; font-size: 0.9rem; }
  .duo { gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .display-1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .duo, .duo-flip { grid-template-columns: 1fr; }
  .duo-flip .duo-copy { order: 1; } .duo-flip .duo-media { order: 2; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .leader-grid { grid-template-columns: 1fr; }
  .card-grid.cg-2 { grid-template-columns: 1fr; }
  .rfq-steps { flex-wrap: wrap; }
  .rfq-step { flex: 1 1 40%; }
  /* Mobile nav — row 1: logo + quote button, row 2: links.
     Wrapping the links made a ragged two-row block, and the bar is transparent
     until you scroll, so the menu sat on top of the hero text. Fixes: keep the
     bar permanently solid on mobile, and put the links in ONE nowrap row that
     scrolls sideways, so the bar's height is predictable. */
  .nav {
    flex-wrap: wrap; gap: 0.45rem 1rem; padding: 0.65rem 1rem;
    background: rgba(6, 13, 31, 0.94);
    box-shadow: 0 1px 0 rgba(63,128,194,0.25);
    backdrop-filter: blur(8px);
  }
  .nav-logo img { height: 36px; }
  /* phone collapses to a tap-target icon so row 1 fits a 360px screen */
  .nav-tel { margin-left: auto; gap: 0; }
  .nav-tel span { display: none; }
  .nav-tel svg { width: 22px; height: 22px; }
  .nav-cta { margin-left: 0.75rem; padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .nav-links {
    order: 3; width: 100%; margin-left: 0; gap: 1.15rem;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.9rem; white-space: nowrap; }
  /* both hero types must clear the taller two-row mobile bar */
  .hero-content { padding-top: 10.5rem; }
  .page-hero { min-height: 44vh; padding: 10.5rem 0 2.6rem; }
  .parts-grid, .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { text-align: left; }
  /* absolute stack would overflow on narrow screens — go static */
  .parts-stack {
    min-height: 0; display: grid; gap: 0.8rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .parts-stack img {
    position: static; width: 100%; height: 100%; border-width: 4px;
    aspect-ratio: 4 / 3; transform: none !important;
  }
  .ps-a { grid-column: span 2; }
  .spec-plate { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0.6rem; }
  .cert-row { grid-template-columns: 1fr; }
  .cert-rep-mark { aspect-ratio: 16 / 7; }
  /* label on its own line so the three chips stay in one tidy row, and keep the
     row clear of the WhatsApp float / scroll cue at the bottom of the hero */
  .hero-auth { gap: 0.5rem; flex-wrap: wrap; }
  .hero-auth-label { width: 100%; margin: 0 0 0.15rem; }
  .auth-chip { height: 118px; min-width: 150px; padding: 0 1.2rem; }
  .auth-chip img { height: 80px; max-width: 215px; }
  .hero-auth-label { font-size: 0.95rem; }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-logo { min-height: 120px; padding: 1.1rem; }
  .rep-logo img { max-width: 170px; max-height: 80px; }
  /* the mobile bar is two rows tall, so an anchor jump lands under it at 78px */
  .scene { scroll-margin-top: 100px; }
  .scroll-cue { display: none; }
  .hero-content { padding-bottom: 4.5rem; }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .t-1, .t-6 { grid-column: span 2; }
  .t-2, .t-3, .t-4, .t-5 { grid-column: span 1; aspect-ratio: 1/1; }
  .reel-track { flex-direction: column; width: auto; padding-inline: 4vw; }
  .card { width: 100%; }
  .gauge { display: none; }
  /* gauge is hidden here, so the float moves out of the left column where the
     hero's authorization chips and CTA buttons live */
  .wa-float { left: auto; right: 1rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .scroll-cue i, .mr-a, .mr-b { animation: none; }
  .split .w > i { transform: none !important; }
}
