/* ==========================================================================
   KHAN ENGINEERING — Design tokens
   Bold / industrial direction: near-black steel, red/white hazard accent,
   riveted nameplate motif, condensed display type.
   ========================================================================== */

:root {
  --ink: #0a0b0d;
  --panel: #15171b;
  --panel-2: #1c1f24;
  --steel: #2b2f35;
  --steel-light: #454b53;
  --paper: #ffffff;
  --paper-dim: #eceef0;
  --muted: #9aa1a9;
  --hazard: #e4231f;
  --hazard-bright: #ff3b36;
  --hazard-dim: #a3140f;
  --hazard-glow: rgba(228, 35, 31, 0.4);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Signature element: riveted nameplate eyebrow
   -------------------------------------------------------------------------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hazard);
  background: linear-gradient(180deg, #1e2126, #17191d);
  border: 1px solid var(--steel);
  padding: 8px 16px;
  border-radius: var(--radius);
  position: relative;
}
.plate::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel-light);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.6), 22px 0 0 var(--steel-light);
  flex-shrink: 0;
}
.plate {
  overflow: hidden;
  position: relative;
}
/* Line-draw animation: underline sweeps in once the plate scrolls into view */
.plate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--hazard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.reveal.in-view .plate::after,
.plate.in-view::after { transform: scaleX(1); }

/* Diagonal hazard stripe divider — used sparingly, gently animated */
.hazard-seam {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard) 0 18px,
    var(--paper) 18px 36px
  );
  background-size: 200% 200%;
  animation: seam-drift 6s linear infinite;
}
@keyframes seam-drift {
  0% { background-position: 0 0; }
  100% { background-position: 102px 0; }
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader::after {
  content: "KE";
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--hazard);
  letter-spacing: 0.1em;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--steel);
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 8px 32px;
}
.topbar a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}
.topbar a:hover { color: var(--hazard); }

.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
  transition: background 0.3s, border-color 0.3s;
}
.header.scrolled {
  background: rgba(10, 11, 13, 0.97);
  border-bottom-color: var(--hazard);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo { height: 44px; width: auto; }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--paper);
  line-height: 1;
}
.logo-wordmark span { color: var(--hazard); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > li > a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--hazard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--hazard); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn-primary {
  background: var(--hazard);
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--hazard-bright);
  box-shadow: 0 0 0 4px var(--hazard-glow);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--steel-light);
  color: var(--paper);
}
.btn-outline:hover {
  border-color: var(--hazard);
  color: var(--paper);
  background: var(--hazard);
  transform: translateY(-2px);
}

.nav-cta { margin-left: 12px; }

/* Animated hamburger -> X icon */
.menu-icon {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background-color 0.3s var(--ease), top 0.35s var(--ease);
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 10px; }
.menu-icon span:nth-child(3) { top: 20px; }
.menu-icon.is-open span { background: var(--hazard); }
.menu-icon.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-icon.is-open span:nth-child(2) { opacity: 0; }
.menu-icon.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile drop-down — smooth slide/fade with staggered links */
.drop-down {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--panel);
  border-top: 1px solid transparent;
  overflow: hidden;
  transition: grid-template-rows 0.4s var(--ease), border-color 0.4s var(--ease);
}
.drop-down > * { min-height: 0; }
.drop-down-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
}
.drop-down.open {
  grid-template-rows: 1fr;
  border-top-color: var(--steel);
}
.drop-down a {
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--steel);
  color: var(--paper);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.drop-down.open a {
  opacity: 1;
  transform: translateY(0);
}
.drop-down.open a:nth-child(1) { transition-delay: 0.05s; }
.drop-down.open a:nth-child(2) { transition-delay: 0.1s; }
.drop-down.open a:nth-child(3) { transition-delay: 0.15s; }
.drop-down.open a:nth-child(4) { transition-delay: 0.2s; }
.drop-down.open a:nth-child(5) { transition-delay: 0.25s; }
.drop-down.open a:nth-child(6) { transition-delay: 0.3s; }
.drop-down a:hover { color: var(--hazard); padding-left: 6px; }
.drop-down .btn {
  margin-top: 14px;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.drop-down.open .btn { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   Hero / Slideshow — headline overlaid directly on the image (plain text,
   no background box). The container is sized with aspect-ratio (tied to
   page WIDTH, not viewport height) so it — and the image inside it —
   scale down smoothly as the screen gets narrower, and object-fit:contain
   means the full image is always visible, never cropped.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  min-height: 260px;
  overflow: hidden;
  background: #000;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,11,13,0.9) 0%, rgba(10,11,13,0.45) 40%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 48px;
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-content .plate { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(28px, 5.4vw, 72px);
  line-height: 1.05;
  color: var(--paper);
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--hazard-dim), var(--hazard-bright), var(--hazard-dim));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 5s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--paper-dim);
  font-size: 16px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--steel-light);
  background: rgba(10,11,13,0.55);
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-nav:hover { border-color: var(--hazard); color: var(--hazard); background: rgba(10,11,13,0.8); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
@media (max-width: 560px) { .hero-nav { display: none; } }

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: var(--font-mono);
}
.hero-dots .count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  background: rgba(10,11,13,0.6);
  padding: 2px 6px;
}
.dot-track { display: flex; gap: 8px; }
.dot {
  width: 22px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}
.dot.is-active { background: var(--hazard); }

/* --------------------------------------------------------------------------
   Why choose us
   -------------------------------------------------------------------------- */
.section { padding: 110px 0; }
.section-tight { padding: 90px 0; }

.why {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.why h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 18px 0 22px;
  max-width: 14ch;
}
.why p { color: var(--muted); font-size: 16px; max-width: 56ch; }
.why .btn { margin-top: 30px; }

.stat-row {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--steel);
}
.stat {
  flex: 1;
  padding: 20px 20px 0 0;
  border-right: 1px solid var(--steel);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--hazard);
  line-height: 1;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.why-media { position: relative; }
.why-media .frame {
  position: relative;
  border: 1px solid var(--steel);
  background: var(--panel);
  padding: 18px;
  overflow: hidden;
}
.why-media img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.why-media .frame:hover img { transform: scale(1.05); }
.why-media .corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--hazard);
}
.why-media .corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.why-media .corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* --------------------------------------------------------------------------
   Featured machine
   -------------------------------------------------------------------------- */
.featured {
  background: var(--panel);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.featured-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.featured-heading { margin-bottom: 56px; text-align: center; }
.featured-heading .plate { margin-bottom: 18px; }
.featured-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--paper);
}
.featured-heading h2 .accent { color: var(--hazard); display: block; }

.featured-media {
  background: var(--panel-2);
  border: 1px solid var(--steel);
  padding: 28px;
  overflow: hidden;
}
.featured-media img { transition: transform 0.6s var(--ease); }
.featured-media:hover img { transform: scale(1.05); }

.spec-plate {
  border: 1px solid var(--steel);
  background: var(--ink);
  padding: 30px;
}
.spec-plate h3 {
  font-size: 28px;
  color: var(--paper);
  margin-bottom: 18px;
}
.spec-plate p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.spec-list { border-top: 1px solid var(--steel); margin-bottom: 26px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 13px;
}
.spec-list li span:first-child { color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.spec-list li span:last-child { color: var(--paper); }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(10,11,13,0.88) 0%, rgba(10,11,13,0.96) 100%), var(--cta-bg, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 18px, transparent 18px 36px);
}
.cta-banner h2 {
  position: relative;
  font-size: clamp(26px, 4vw, 42px);
  max-width: 20ch;
  margin: 0 auto 28px;
}
.cta-banner .btn { position: relative; }

/* --------------------------------------------------------------------------
   Video section
   -------------------------------------------------------------------------- */
.video-section {
  position: relative;
  height: clamp(340px, 62vh, 620px);
  overflow: hidden;
  background: #000;
}
.video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.55) 55%, rgba(10,11,13,0.3) 100%);
}
.video-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.video-content h1 {
  font-size: clamp(30px, 5vw, 58px);
  max-width: 14ch;
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: var(--panel); border-top: 1px solid var(--steel); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 56px;
}
.footer-brand h3 {
  font-size: 24px;
  color: var(--paper);
  max-width: 16ch;
  margin-bottom: 18px;
}
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 46ch; margin-bottom: 26px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--steel-light);
  color: var(--paper);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--hazard); color: var(--hazard); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--hazard);
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.footer-col a::before {
  content: "\2192";
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: opacity 0.25s var(--ease), left 0.25s var(--ease);
  color: var(--hazard);
}
.footer-col a:hover { color: var(--paper); padding-left: 14px; }
.footer-col a:hover::before { opacity: 1; left: 0; }

.footer-bottom {
  border-top: 1px solid var(--steel);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom img { height: 30px; }
.footer-bottom p { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Scroll-reveal animation system
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal.stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.reveal.stagger.in-view > *:nth-child(3) { transition-delay: 0.2s; }
.reveal.stagger.in-view > *:nth-child(4) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .featured-inner { gap: 40px; }
  .why { gap: 44px; }
}

@media (max-width: 720px) {
  .hero-content { bottom: 32px; }
  .stat-row { gap: 0; }
  .video-content h1 { max-width: 100%; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero-content { bottom: 24px; padding: 0 20px; }
  .hero-sub { font-size: 15px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .btn { padding: 11px 18px; font-size: 12px; }
  .plate { font-size: 11px; padding: 7px 12px; }
  .stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--steel); padding-bottom: 16px; }
  .stat:last-child { border-bottom: none; }
  .spec-plate { padding: 22px; }
  .featured-media { padding: 16px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 30px; }
  .logo { height: 36px; }
}

/* Short / landscape viewports: cap hero & video height to what's visible */
@media (max-height: 560px) {
  .hero { max-height: 70vh; min-height: 200px; }
  .video-section { height: clamp(280px, 80vh, 420px); }
  .hero-content { bottom: 16px; }
}
@media (max-width: 980px) {
  .why { grid-template-columns: 1fr; }
  .why-media { order: -1; }
  .featured-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-icon { display: block; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .stat-row { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; padding: 56px 0 40px; }
}

/* ==========================================================================
   INTERIOR PAGES — shared components
   ========================================================================== */

/* Page header banner (About / Contact / Equipment / Gallery / Quotation / 404) */
.page-hero {
  background: var(--panel);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--steel);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,11,13,0.94) 0%, rgba(10,11,13,0.8) 55%, rgba(10,11,13,0.55) 100%);
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--paper) 14px 28px);
  opacity: 0.9;
}
.page-hero .plate { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  color: var(--paper);
  max-width: 20ch;
}
.page-hero p {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

/* Two-column content block (image + text), reusable for About / story sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media .frame {
  position: relative;
  border: 1px solid var(--steel);
  background: var(--panel);
  padding: 16px;
  overflow: hidden;
}
.split-media img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.split-media .frame:hover img { transform: scale(1.05); }
.split-text h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 16px 0 18px; max-width: 16ch; }
.split-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.split-text p:last-of-type { margin-bottom: 0; }

/* Equipment grid */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.equip-card {
  background: var(--panel);
  border: 1px solid var(--steel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.equip-card:hover { border-color: var(--hazard); transform: translateY(-4px); }
.equip-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.equip-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.equip-card:hover .equip-card-media img { transform: scale(1.08); }
.equip-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.equip-card-body h3 { font-size: 20px; color: var(--paper); margin-bottom: 10px; }
.equip-card-body h3 a:hover { color: var(--hazard); }
.equip-card-body p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 18px; }
.equip-card-body .btn { align-self: flex-start; }

/* Support / info block with accent list */
.info-block {
  background: var(--panel);
  border: 1px solid var(--steel);
  padding: 40px;
}
.info-block h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.info-block p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }

/* Gallery hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.hub-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--steel);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #000;
}
.hub-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hub-card:hover img { transform: scale(1.08); }
.hub-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.25) 55%, transparent 100%);
}
.hub-card-body { position: relative; z-index: 2; padding: 26px; }
.hub-card-body span.plate { margin-bottom: 10px; }
.hub-card-body h3 { font-size: 26px; color: var(--paper); }

/* Contact / Quotation form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.contact-info-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--steel);
  background: var(--panel);
  padding: 16px 18px;
}
.contact-info-item i { color: var(--hazard); font-size: 18px; margin-top: 3px; }
.contact-info-item h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-info-item p, .contact-info-item a { color: var(--paper); font-size: 14.5px; display: block; }
.contact-info-item a:hover { color: var(--hazard); }

.form-panel { background: var(--panel); border: 1px solid var(--steel); padding: 36px; }
.form-panel h3 { font-size: 22px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--steel-light);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hazard);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .error-txt { display: none; color: var(--hazard-bright); font-size: 12px; margin-top: 6px; }
.field.error input,
.field.error select,
.field.error textarea { border-color: var(--hazard-bright); }
.field.error .error-txt { display: block; }
.form-panel .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-panel .btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* 404 page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,11,13,0.92);
  z-index: 0;
}
.error-page .wrap { position: relative; z-index: 1; }
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 200px);
  line-height: 0.9;
  color: var(--hazard);
  opacity: 0.9;
}
.error-page h1 { margin-top: 10px; font-size: clamp(22px, 3vw, 30px); }
.error-page p { color: var(--muted); margin: 16px 0 30px; max-width: 48ch; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-panel { padding: 24px; }
  .info-block { padding: 26px; }
}

/* iOS Safari handles background-attachment: fixed poorly — disable on touch/small screens */
@media (max-width: 900px), (hover: none) {
  .cta-banner { background-attachment: scroll; }
}
