/* ==========================================================================
   MODULOX — DESIGN ONE: ARCHITECTURAL & INTERACTIVE MOTION STYLESHEET
   Features: GSAP 3D Parallax, Perspective Cards, Flip Stage, Before/After Slider
   ========================================================================== */

:root {
  --bg-page: #f4f5f6;
  --bg-white: #ffffff;
  --bg-offwhite: #f7f6f3;
  --bg-dark: #0e1413;
  --bg-dark-elevated: #16211f;
  --bg-dark-card: #182321;
  --accent: #ff5733;
  --accent-hover: #e64622;
  --ink-dark: #101414;
  --ink-body: #525c5a;
  --ink-muted: #7c8785;
  --ink-light: #ffffff;
  --ink-light-soft: rgba(255, 255, 255, 0.76);
  --ink-light-muted: rgba(255, 255, 255, 0.48);
  --border-light: #e5e8e7;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-shell: 28px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

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

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

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography & Atomic Utilities
   ========================================================================== */
.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.88);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* ==========================================================================
   Buttons & Interactive Magnetic Controls
   ========================================================================== */
.btn-coral {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 8px 8px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  will-change: transform;
}

.btn-coral:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(255, 87, 51, 0.35);
}

.btn-coral .arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.btn-coral:hover .arrow-circle {
  transform: rotate(45deg);
}

.btn-magnetic {
  display: inline-flex;
  cursor: pointer;
  will-change: transform;
}

/* ==========================================================================
   Liquid Glass Floating Sticky Navbar (Past Hero Section)
   ========================================================================== */
.liquid-glass-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  max-width: min(680px, calc(100vw - 32px));
  min-height: 48px;
  padding: 5px 8px 5px 16px;
  border-radius: 96px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(1.5px) url(#lg-filter) blur(3px) saturate(1.5) brightness(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.15) contrast(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: box-shadow 0.3s ease;
}

.liquid-glass-nav:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 16px rgba(255, 255, 255, 0.3),
    0 12px 36px rgba(0, 0, 0, 0.25);
}

.liquid-glass-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
  padding: 4px 8px;
  border-radius: 96px;
  transition: all 0.25s ease;
}

.liquid-glass-brand.active {
  color: var(--accent);
  background: rgba(255, 87, 51, 0.14);
}

.liquid-glass-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.liquid-glass-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-dark);
  padding: 5px 10px;
  border-radius: 96px;
  transition: all 0.2s ease;
}

.liquid-glass-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.liquid-glass-item:hover {
  color: var(--accent);
}

.liquid-glass-item.active {
  color: var(--accent);
  background: rgba(255, 87, 51, 0.14);
}

.liquid-glass-item.active svg {
  transform: scale(1.12);
  stroke: var(--accent);
}

.liquid-glass-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 96px;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.liquid-glass-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.liquid-glass-cta.active {
  box-shadow: 0 0 16px rgba(255, 87, 51, 0.65);
}

/* ==========================================================================
   1. Hero Canvas & Inverted-Notch Navbar
   ========================================================================== */
.hero-outer {
  padding: 16px 16px 0;
  position: relative;
}

.hero-frame {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-radius: var(--radius-shell);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(14, 20, 19, 0.16);
}

.navbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  position: relative;
  z-index: 20;
}

.brand-notch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-light);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  padding: 9px 20px 9px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.brand-notch:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-quote-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-dark);
  color: var(--ink-light);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-quote-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-arrow-btn:hover {
  transform: rotate(45deg);
  background: var(--accent-hover);
}

/* Hero Canvas & Parallax Stage */
.hero-canvas {
  position: relative;
  padding: 44px 44px 34px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.038);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
  white-space: nowrap;
  will-change: transform, opacity;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-light-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-visual-box {
  position: relative;
  border-radius: var(--radius-card);
  overflow: visible; /* allows floating badges to project */
  perspective: 1000px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  will-change: transform;
}

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

.hero-visual-card:hover img {
  transform: scale(1.04);
}

/* Floating Live Telemetry Badge */
.hero-floating-badge {
  position: absolute;
  bottom: -18px;
  left: 20px;
  background: rgba(14, 20, 19, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 5;
  will-change: transform;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

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

.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.hero-quick-links {
  display: flex;
  gap: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-light-muted);
  letter-spacing: 0.06em;
}

.hero-quick-links a:hover {
  color: var(--accent);
}

.hero-model-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-model-switch button {
  color: var(--ink-light);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 2px 8px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-model-switch button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.15);
}

/* ==========================================================================
   2. Trust Strip & Animated Metrics
   ========================================================================== */
.section-light {
  padding: 96px 0;
  background: var(--bg-white);
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 38px 44px;
  background: var(--bg-page);
  border-radius: var(--radius-card);
  margin-bottom: 72px;
  border: 1px solid var(--border-light);
}

.metric-val {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* ==========================================================================
   3. 3D Tilt Cards (Use Cases & Specs)
   ========================================================================== */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tilt-wrapper {
  perspective: 900px;
  transform-style: preserve-3d;
}

.usecase-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  height: 100%;
}

.usecase-card:hover {
  border-color: rgba(255, 87, 51, 0.35);
  box-shadow: 0 20px 40px rgba(16, 20, 20, 0.12);
}

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

.usecase-body {
  padding: 22px;
  transform: translateZ(24px); /* subtle pop on 3D hover */
}

.usecase-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.usecase-body p {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.5;
}

/* ==========================================================================
   4. Model Lineup & Interactive 3D Flip Card
   ========================================================================== */
.dark-band-wrap {
  padding: 0 16px 20px;
}

.dark-showroom-card {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-radius: var(--radius-shell);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(14, 20, 19, 0.2);
}

.model-grid {
  display: grid;
  grid-template-columns: 200px 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 40px;
}

.model-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-tab-btn {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  color: var(--ink-light-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.model-tab-btn:hover {
  color: var(--ink-light);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.model-tab-btn.active {
  background: var(--accent);
  color: var(--ink-light);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(255, 87, 51, 0.35);
}

/* 3D Flip Stage for Showcase */
.model-flip-stage-wrap {
  perspective: 1200px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.model-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.model-face-front {
  transform: rotateY(0deg);
  background: var(--bg-dark-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-face-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.model-face-front:hover img {
  transform: scale(1.03);
}

.model-bg-size {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.model-face-back {
  transform: rotateY(180deg);
  background: var(--bg-dark-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cad-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 51, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
}

.cad-diagram-svg {
  width: 100%;
  height: 160px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.flip-pill-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(14, 20, 19, 0.88);
  backdrop-filter: blur(10px);
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  transition: all 0.25s ease;
}

.flip-pill-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blueprint-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blueprint-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blueprint-top h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.blueprint-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-light-soft);
}

.floorplan-svg-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
}

.model-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.model-specs-mini div {
  font-size: 0.78rem;
  color: var(--ink-light-muted);
}

.model-specs-mini strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: 2px;
}

/* ==========================================================================
   5. Engineering & Technical Specs (Inside the Build)
   ========================================================================== */
.engineering-band {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 96px 0;
}

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

.spec-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.spec-card:hover {
  border-color: rgba(255, 87, 51, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.spec-card-content {
  padding: 24px;
  transform: translateZ(24px);
}

.spec-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.spec-card-content p {
  font-size: 0.9rem;
  color: var(--ink-light-soft);
  line-height: 1.55;
}

/* ==========================================================================
   6. Customizer (Interactive Spec Builder)
   ========================================================================== */
.customizer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.customizer-preview {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.customizer-preview img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.summary-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 20, 19, 0.88);
  backdrop-filter: blur(12px);
  color: var(--ink-light);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.config-group {
  margin-bottom: 26px;
}

.config-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-chip {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dark);
  transition: all 0.2s ease;
}

.option-chip:hover {
  border-color: var(--accent);
}

.option-chip.active {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

/* ==========================================================================
   7. Commercial Bento Grid
   ========================================================================== */
.section-offwhite {
  padding: 96px 0;
  background: var(--bg-offwhite);
}

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

.bento-tile {
  padding: 36px 28px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.bento-dark {
  background: var(--bg-dark);
  color: var(--ink-light);
}

.bento-light {
  background: var(--bg-white);
  color: var(--ink-dark);
  border: 1px solid var(--border-light);
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.bento-dark .bento-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-light);
}

.bento-light .bento-tag {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-body);
}

.bento-tile h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bento-tile p {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* ==========================================================================
   8. GSAP Before / After Comparison Slider
   ========================================================================== */
.projects-band {
  margin-top: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 40px;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

.ba-badge {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 6;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.ba-badge.before {
  left: 18px;
  background: rgba(14, 20, 19, 0.85);
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-badge.after {
  right: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.4);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 7;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  will-change: left;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 87, 51, 0.5);
  z-index: 8;
  pointer-events: none;
  will-change: left;
}

.case-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-item {
  display: flex;
  gap: 16px;
  background: var(--bg-dark-card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.case-item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 87, 51, 0.4);
}

.case-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.case-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.case-item span {
  font-size: 0.82rem;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   9. Sideways / Horizontal Scroll Track Section
   ========================================================================== */
.horizontal-scroll-section {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink-light);
  overflow: hidden;
  padding: 40px 0;
}

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

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

.horizontal-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.horizontal-intro p {
  color: var(--ink-light-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.horizontal-track {
  display: flex;
  gap: 28px;
  will-change: transform;
}

.horizontal-card {
  flex-shrink: 0;
  width: 420px;
  height: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.horizontal-card:hover {
  border-color: var(--accent);
}

.horizontal-card img {
  width: 100%;
  height: 64%;
  object-fit: cover;
}

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

.horizontal-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.horizontal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

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

.showcase-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.08s linear;
}

/* ==========================================================================
   10. Yard-to-Site Process & About/FAQ
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.about-faq-card {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-radius: var(--radius-shell);
  padding: 64px 48px;
  box-shadow: 0 24px 60px rgba(14, 20, 19, 0.2);
}

.about-faq-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}

.yard-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yard-stats-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-light);
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: rgba(255, 87, 51, 0.45);
}

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-light);
  text-align: left;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

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

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--ink-light-soft);
  line-height: 1.6;
}

/* ==========================================================================
   11. Quote Strip & Footer
   ========================================================================== */
.quote-strip {
  padding: 96px 0;
  background: var(--bg-white);
}

.quote-banner-box {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-radius: var(--radius-shell);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(14, 20, 19, 0.18);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-full {
  grid-column: span 2;
}

.quote-form-grid input,
.quote-form-grid select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--ink-light);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.quote-form-grid input:focus,
.quote-form-grid select:focus {
  border-color: var(--accent);
}

.form-submit-btn {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.quote-confirm-badge {
  display: none;
  margin-top: 14px;
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-bar {
  padding: 36px 0 44px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive Adaptations & Mobile Perfection
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards-4,
  .bento-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .customizer-grid,
  .projects-grid,
  .about-faq-grid,
  .quote-banner-box {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
  /* BOTTOM FLOATING LIQUID GLASS DOCK */
  .liquid-glass-nav {
    top: auto;
    bottom: 16px;
    transform: translate(-50%, 120%);
    width: calc(100vw - 24px);
    max-width: 440px;
    min-height: 56px;
    padding: 6px 10px;
    justify-content: space-around;
    gap: 4px;
    border-radius: 96px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(2px) url(#lg-filter) blur(8px) saturate(1.6) brightness(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.8) brightness(1.15) contrast(1.05);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.35),
      inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.75),
      inset 0 0 14px rgba(255, 255, 255, 0.3),
      0 12px 36px rgba(0, 0, 0, 0.35);
  }

  .liquid-glass-brand {
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .liquid-glass-brand span {
    display: none; /* Logo icon only on mobile dock */
  }

  .liquid-glass-brand svg {
    width: 20px;
    height: 20px;
  }

  .liquid-glass-brand.active {
    background: rgba(255, 87, 51, 0.22);
    box-shadow: 0 0 14px rgba(255, 87, 51, 0.55);
    transform: scale(1.1);
  }

  .liquid-glass-brand.active svg polygon {
    stroke: var(--accent);
  }

  .liquid-glass-links {
    gap: 2px;
  }

  .liquid-glass-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 600;
  }

  .liquid-glass-item svg {
    width: 17px;
    height: 17px;
  }

  .liquid-glass-item.active {
    color: var(--accent);
    background: rgba(255, 87, 51, 0.16);
    transform: translateY(-2px);
  }

  .liquid-glass-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: 96px;
    font-size: 0.66rem;
  }

  .liquid-glass-cta span:last-child {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .cards-4,
  .cards-3,
  .bento-grid,
  .steps-grid,
  .yard-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 2x2 Metrics on Mobile */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 20px;
    margin-bottom: 40px;
  }

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

  .metric-label {
    font-size: 0.74rem;
  }

  .hero-canvas {
    padding: 28px 18px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .hero-visual-card img {
    height: 250px;
  }

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

  .hero-quick-links {
    display: none;
  }

  .dark-showroom-card,
  .about-faq-card,
  .quote-banner-box {
    padding: 32px 18px;
  }

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

  /* Model tabs swiper */
  .model-tabs {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .model-tabs::-webkit-scrollbar {
    display: none;
  }

  .model-tab-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

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

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

  /* Before/After slider touch */
  .ba-slider-container {
    height: 290px;
    touch-action: none;
  }

  /* Mobile Side Scroll Showcase */
  .horizontal-pin-box {
    height: 100vh;
    height: 100dvh;
    padding: 20px 16px;
  }

  .horizontal-card {
    width: 80vw;
    max-width: 300px;
    height: 380px;
  }

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

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

  /* Customizer Mobile */
  .customizer-preview img {
    height: 230px;
  }

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

  .form-full {
    grid-column: span 1;
  }

  .quote-form-grid input,
  .quote-form-grid select {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 48px;
  }
}
