/* ==========================================================================
   MODULOX — DESIGN TWO: TACTICAL INDUSTRIAL & HIGH-PERFORMANCE ENGINEERING
   Identity: Matte Carbon #141618 · KTM Orange #ff6600 · Oswald / Space Grotesk / Inter
   Features: 3D Perspective Tilt, CAD Blueprint Flip, GSAP Before/After, Horizontal Corridor
   ========================================================================== */

:root {
  --ktm-orange: #ff6600;
  --ktm-orange-hover: #e25800;
  --carbon-bg: #141618;
  --carbon-elevated: #1c1f23;
  --carbon-card: #22262b;
  --white: #ffffff;
  --offwhite: #f4f5f6;
  --ink-dark: #141618;
  --ink-body: #50575e;
  --ink-muted: #7b848e;
  --ink-light: #ffffff;
  --ink-light-soft: rgba(255, 255, 255, 0.78);
  --ink-light-muted: rgba(255, 255, 255, 0.52);
  --grid-line-dark: rgba(255, 255, 255, 0.055);
  --grid-line-light: rgba(20, 22, 24, 0.06);
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-light: #e2e5e9;
  --font-display: "Oswald", "Space Grotesk", sans-serif;
  --font-sub: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--carbon-bg);
  color: var(--ink-dark);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Offset for sticky navigation bar across all sections */
section[id],
div[id] {
  scroll-margin-top: 68px;
}

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

button,
input,
select {
  font-family: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Vertical Motorsport Hairline Grid Overlay */
.grid-stage {
  position: relative;
  overflow: hidden;
}

.grid-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-color, var(--grid-line-dark)) 1px, transparent 1px),
    linear-gradient(to right, var(--line-color, var(--grid-line-dark)) 1px, transparent 1px);
  background-size: 25% 100%, 50% 100%;
}

.grid-stage.light-grid {
  --line-color: var(--grid-line-light);
}

.grid-stage > * {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography & Atomic Utilities
   ========================================================================== */
.eyebrow {
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.race-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.orange-text {
  color: var(--ktm-orange);
}

.btn-race {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ktm-orange);
  color: var(--white);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.btn-race:hover {
  background: var(--ktm-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--carbon-bg);
  color: var(--white);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--border-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-dark-outline:hover {
  background: var(--ktm-orange);
  border-color: var(--ktm-orange);
}

.btn-magnetic {
  will-change: transform;
}

/* ==========================================================================
   1. TOP HEADER BAR (REMAINS IN PLACE WITH REFINED TYPOGRAPHY)
   ========================================================================== */
.top-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-dark);
  border-bottom: 3px solid var(--ktm-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 58px;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ktm-orange);
  color: var(--white);
  padding: 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.brand-block:hover {
  background: var(--ktm-orange-hover);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-sub);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu a {
  padding: 18px 0;
  border-bottom: 3px solid transparent;
  color: var(--ink-dark);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ktm-orange);
  border-bottom-color: var(--ktm-orange);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--carbon-bg);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  min-height: 40px;
  align-self: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--ktm-orange);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--carbon-bg);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  align-self: center;
}

.mobile-menu-btn:hover {
  background: #1e2226;
  border-color: var(--ktm-orange);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--ktm-orange);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--ktm-orange);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: #111315;
  border-bottom: 3px solid var(--ktm-orange);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 18px 20px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

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

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid transparent;
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 102, 0, 0.12);
  border-left-color: var(--ktm-orange);
  color: var(--ktm-orange);
}

.mobile-drawer-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-cta {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

.mobile-contact-pill {
  text-align: center;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-light-muted);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   2. HERO STAGE & PARALLAX
   ========================================================================== */
.hero-stage {
  background:
    radial-gradient(circle at 68% 45%, rgba(255, 102, 0, 0.14), transparent 45%),
    linear-gradient(180deg, #171a1d 0%, #111315 100%);
  color: var(--white);
  padding: 56px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero-giant-code {
  position: absolute;
  right: 3%;
  top: 10px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 13.5rem);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  margin: 12px 0 18px;
}

.hero-copy {
  color: var(--ink-light-soft);
  font-size: 0.98rem;
  max-width: 440px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero-media-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-media-frame {
  position: relative;
  border-left: 4px solid var(--ktm-orange);
  background: var(--carbon-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-media-frame img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-frame:hover img {
  transform: scale(1.03);
}

/* Floating CAD Telemetry Badge */
.hero-cad-badge {
  position: absolute;
  bottom: -16px;
  left: 20px;
  background: rgba(20, 22, 24, 0.92);
  border: 1px solid var(--ktm-orange);
  padding: 8px 16px;
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  z-index: 4;
  will-change: transform;
}

.orange-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ktm-orange);
  box-shadow: 0 0 8px var(--ktm-orange);
  animation: pulseOrange 2s infinite ease-in-out;
}

@keyframes pulseOrange {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-rail-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light-soft);
  position: relative;
  z-index: 2;
}

.hero-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-jumps a:hover {
  color: var(--ktm-orange);
}

.hero-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border: 1px solid var(--border-dark);
}

.hero-switcher button {
  color: var(--ktm-orange);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 2px 6px;
  transition: transform 0.2s ease;
}

.hero-switcher button:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   3. TRUST METRICS & 3D TACTICAL USE CASE CARDS
   ========================================================================== */
.band-white {
  background: var(--white);
  color: var(--ink-dark);
  padding: 82px 0;
}

.band-offwhite {
  background: var(--offwhite);
  color: var(--ink-dark);
  padding: 82px 0;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border-light);
}

.metric-box {
  border-left: 3px solid var(--ktm-orange);
  padding-left: 16px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
}

.metric-desc {
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
}

.section-top {
  margin-bottom: 34px;
}

.section-top h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-top: 6px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tilt-stage {
  perspective: 900px;
}

.usecase-tile {
  background: var(--carbon-bg);
  color: var(--white);
  border-bottom: 3px solid var(--ktm-orange);
  overflow: hidden;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s ease;
}

.usecase-tile:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.usecase-tile img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.usecase-content {
  padding: 20px;
  transform: translateZ(20px);
}

.usecase-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.usecase-content p {
  font-size: 0.88rem;
  color: var(--ink-light-soft);
  line-height: 1.5;
}

/* ==========================================================================
   4. SHOWROOM & 3D CAD BLUEPRINT FLIP STAGE
   ========================================================================== */
.showroom-band {
  background: var(--white);
  color: var(--ink-dark);
  padding: 84px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.showroom-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.model-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-pill-btn {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--offwhite);
  color: var(--ink-dark);
  border: 1px solid var(--border-light);
  transition: all 0.18s ease;
}

.model-pill-btn.active {
  background: var(--ktm-orange);
  color: var(--white);
  border-color: var(--ktm-orange);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.showroom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
}

/* 3D Model Flip Stage */
.showroom-flip-wrap {
  perspective: 1200px;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.showroom-flip-stage {
  position: relative;
  width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  will-change: transform;
}

.showroom-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.showroom-face-front {
  transform: rotateY(0deg);
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showroom-giant-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(255, 102, 0, 0.16);
  user-select: none;
  margin-bottom: -16px;
}

.showroom-face-front img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid var(--ktm-orange);
}

.showroom-face-back {
  transform: rotateY(180deg);
  background: var(--carbon-card);
  color: var(--white);
  border: 1px solid var(--border-dark);
  border-top: 4px solid var(--ktm-orange);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cad-wireframe-box {
  background: #17191c;
  border: 1px dashed rgba(255, 102, 0, 0.4);
  padding: 14px;
  height: 180px;
  border-radius: 4px;
}

.flip-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--carbon-bg);
  color: var(--white);
  border: 1px solid var(--ktm-orange);
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  width: fit-content;
}

.flip-toggle-pill:hover {
  background: var(--ktm-orange);
}

.blueprint-panel {
  background: var(--carbon-bg);
  color: var(--white);
  padding: 28px;
  border-top: 4px solid var(--ktm-orange);
}

.blueprint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.blueprint-head h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
}

.area-badge {
  background: var(--ktm-orange);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
}

.plan-box {
  background: #1b1e22;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  padding: 12px;
  margin-bottom: 18px;
}

.spec-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.spec-grid-2 div {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}

.spec-grid-2 strong {
  display: block;
  font-family: var(--font-sub);
  color: var(--white);
  font-size: 0.92rem;
}

.spec-grid-2 span {
  color: var(--ink-light-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   5. ENGINEERING SPECS (CARBON DARK)
   ========================================================================== */
.band-carbon {
  background: var(--carbon-bg);
  color: var(--white);
  padding: 84px 0;
}

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

.eng-card {
  background: var(--carbon-card);
  border-top: 3px solid var(--ktm-orange);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s ease;
}

.eng-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.eng-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
}

.eng-card-body {
  padding: 22px;
  transform: translateZ(20px);
}

.eng-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eng-card-body p {
  font-size: 0.88rem;
  color: var(--ink-light-soft);
  line-height: 1.55;
}

/* ==========================================================================
   6. INTERACTIVE SPEC CUSTOMIZER
   ========================================================================== */
.custom-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.custom-visual {
  background: var(--carbon-bg);
  color: var(--white);
  border-bottom: 4px solid var(--ktm-orange);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.custom-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.custom-footer-bar {
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.option-block {
  margin-bottom: 22px;
}

.option-title {
  font-family: var(--font-sub);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.race-chip {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 15px;
  border: 1px solid #cfd5dc;
  background: var(--white);
  color: var(--ink-dark);
  transition: all 0.16s ease;
  cursor: pointer;
}

.race-chip:hover {
  border-color: var(--ktm-orange);
}

.race-chip.active {
  background: var(--carbon-bg);
  color: var(--white);
  border-color: var(--ktm-orange);
  box-shadow: inset 0 -3px 0 var(--ktm-orange);
}

/* ==========================================================================
   7. WHY MODULAR COMPARISON
   ========================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.compare-card {
  padding: 24px 20px;
  border-top: 3px solid var(--ktm-orange);
  transition: transform 0.25s ease;
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card.dark {
  background: var(--carbon-bg);
  color: var(--white);
}

.compare-card.light {
  background: var(--white);
  color: var(--ink-dark);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.compare-tag {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ktm-orange);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: 8px 0;
}

.compare-card p {
  font-size: 0.86rem;
  opacity: 0.84;
  line-height: 1.5;
}

/* ==========================================================================
   8. REAL PROJECTS & GSAP BEFORE/AFTER SLIDER
   ========================================================================== */
.projects-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.ba-frame {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  user-select: none;
  cursor: ew-resize;
  background: var(--carbon-card);
}

.ba-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-after-pane {
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 5;
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  color: var(--white);
  background: rgba(20, 22, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.ba-tag.left { left: 14px; }
.ba-tag.right { right: 14px; background: var(--ktm-orange); border-color: var(--ktm-orange); }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  z-index: 6;
  pointer-events: none;
  will-change: left;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: var(--ktm-orange);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 7;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.5);
  will-change: left;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--carbon-card);
  border-left: 3px solid var(--ktm-orange);
  padding: 10px;
  transition: transform 0.2s ease;
}

.project-row:hover {
  transform: translateX(4px);
}

.project-row img {
  width: 116px;
  height: 82px;
  object-fit: cover;
}

.project-row h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project-row span {
  font-size: 0.8rem;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   9. SIDEWAYS HORIZONTAL DEPLOYMENT CORRIDOR (PINNED SCROLL)
   ========================================================================== */
.horizontal-corridor {
  background: var(--carbon-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.corridor-pin-stage {
  display: flex;
  align-items: center;
  height: 100vh;
  width: 100%;
  padding: 0 4vw;
  gap: 44px;
  overflow: hidden;
}

.corridor-intro {
  flex-shrink: 0;
  width: 320px;
}

.corridor-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
}

.corridor-intro p {
  color: var(--ink-light-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.corridor-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.corridor-card {
  flex-shrink: 0;
  width: 420px;
  height: 500px;
  background: var(--carbon-card);
  border-top: 4px solid var(--ktm-orange);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.corridor-card img {
  width: 100%;
  height: 62%;
  object-fit: cover;
}

.corridor-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.corridor-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.corridor-card-body p {
  font-size: 0.88rem;
  color: var(--ink-light-soft);
}

.corridor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-sub);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ktm-orange);
}

.corridor-progress-wrap {
  width: 100%;
  max-width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}

.corridor-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ktm-orange);
  transition: width 0.08s linear;
}

/* ==========================================================================
   10. DELIVERY PROCESS & ABOUT THE YARD
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  border-top: 3px solid var(--ink-dark);
  padding-top: 16px;
  transition: border-top-color 0.2s ease, transform 0.2s ease;
}

.process-step:hover {
  border-top-color: var(--ktm-orange);
  transform: translateY(-3px);
}

.process-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ktm-orange);
  line-height: 1;
  margin-bottom: 10px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.5;
}

.about-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.yard-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-top: 20px;
  border-bottom: 3px solid var(--ktm-orange);
}

.faq-row {
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 0;
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  gap: 14px;
}

.faq-sign {
  color: var(--ktm-orange);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-row.open .faq-answer {
  max-height: 160px;
  padding-top: 12px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--ink-light-soft);
  line-height: 1.55;
}

/* ==========================================================================
   11. QUOTE STRIP & FOOTER
   ========================================================================== */
.quote-strip {
  background: var(--ktm-orange);
  color: var(--white);
  padding: 68px 0;
}

.quote-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  text-transform: uppercase;
  line-height: 0.96;
}

.quote-fields {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.3fr auto;
  gap: 12px;
  margin-top: 24px;
}

.field-dark {
  background: #17191b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 14px 16px;
  font-size: 0.88rem;
  outline: none;
}

.field-dark:focus {
  border-color: var(--white);
}

.footer-race {
  background: #0d0e10;
  color: var(--white);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-light-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a:hover {
  color: var(--ktm-orange);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  user-select: none;
  margin-bottom: 24px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--font-sub);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-light-muted);
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

/* ==========================================================================
   Responsive Adaptations & Mobile Perfection
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-layout,
  .showroom-grid,
  .custom-layout,
  .projects-layout,
  .about-faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid,
  .eng-grid,
  .compare-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CORRECTED SIDE SCROLL CORRIDOR ON TABLET & MOBILE */
  .corridor-pin-stage {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px;
    gap: 16px;
    overflow: hidden;
  }

  .corridor-intro {
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 4px;
  }

  .corridor-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
  }

  .corridor-intro p {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .corridor-track {
    display: flex;
    flex-direction: row !important;
    gap: 16px;
    will-change: transform;
    width: fit-content;
  }

  .corridor-card {
    flex-shrink: 0;
    width: 78vw;
    max-width: 330px;
    height: 420px;
  }

  .corridor-card img {
    height: 56%;
  }

  .corridor-card-body {
    padding: 16px;
  }

  .corridor-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .corridor-card-body p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .quote-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-backdrop {
    display: block;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 54px;
  }

  .brand-block {
    padding: 0 14px;
    font-size: 1.1rem;
    gap: 8px;
  }

  /* Hero Mobile Tweaks */
  .hero-stage {
    padding: 36px 0 28px;
  }

  .hero-giant-code {
    font-size: clamp(4.5rem, 24vw, 7.5rem);
    right: 0;
    top: 0;
    opacity: 0.035;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    margin: 8px 0 14px;
  }

  .hero-copy {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-media-frame img {
    height: 240px;
  }

  .hero-cad-badge {
    font-size: 0.65rem;
    padding: 6px 10px;
    bottom: -10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-rail-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-jumps {
    display: none;
  }

  /* 2x2 Metrics Grid on Mobile */
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .metric-num {
    font-size: 1.85rem;
  }

  .metric-desc {
    font-size: 0.68rem;
  }

  /* Grids Mobile */
  .usecase-grid,
  .eng-grid,
  .compare-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Model Selector Swiper on Mobile */
  .model-selector-bar {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .model-selector-bar::-webkit-scrollbar {
    display: none;
  }

  .showroom-flip-wrap {
    min-height: 320px;
  }

  .showroom-flip-stage {
    height: 320px;
  }

  .showroom-face-front img {
    height: 200px;
  }

  .showroom-face-front {
    padding: 18px 16px;
  }

  .showroom-face-back {
    padding: 18px 16px;
  }

  .cad-wireframe-box {
    height: 130px;
  }

  /* Before/After Mobile Touch */
  .ba-frame {
    height: 280px;
    touch-action: none;
  }

  .ba-handle {
    width: 42px;
    height: 42px;
  }

  /* Mobile Side Scroll Corridor */
  .corridor-pin-stage {
    height: 100vh;
    height: 100dvh;
    padding: 20px 16px;
  }

  .corridor-card {
    width: 82vw;
    max-width: 300px;
    height: 380px;
  }

  .corridor-card img {
    height: 52%;
  }

  .corridor-progress-wrap {
    max-width: 180px;
  }

  /* Customizer Mobile */
  .custom-visual img {
    height: 220px;
  }

  .race-chip {
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  /* Quote Form Inputs */
  .field-dark {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 48px;
  }

  /* Footer Wordmark */
  .footer-wordmark {
    font-size: clamp(3rem, 18vw, 6.5rem);
    margin-bottom: 16px;
  }
}
