/**
 * Keystone Chapters Stylesheet — High-End Architectural Edition
 * Concept: "From Blueprint to Keys" (من المخطط إلى المفتاح)
 * Cairo Typography, Rich Imagery, Glassmorphism & Smooth Micro-Interactions
 */

/* Base Chapter Rule */
.ks-chapter {
  position: relative;
  scroll-margin-top: calc(var(--ks-header-h, 72px) + 20px);
}

/* 1. Architectural Floor Elevator Navigator */
.ks-floor-indicator {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 9999px;
  padding-block: 14px;
  padding-inline: 7px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  transition: all var(--ks-duration-ui) var(--ks-ease);
}

.ks-spire-tip {
  width: 2px;
  height: 10px;
  background-color: var(--ks-accent);
  border-radius: 2px;
  margin-bottom: 6px;
}

.ks-floors-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-floor-level {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.ks-floor-cell {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ks-line);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s var(--ks-ease);
}

.ks-floor-num {
  font-family: var(--ks-font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--ks-muted);
  line-height: 1;
}

.ks-floor-level.is-active .ks-floor-cell {
  background-color: var(--ks-accent);
  border-color: var(--ks-accent);
  box-shadow: 0 0 12px var(--ks-accent-glow);
  transform: scale(1.15);
}

.ks-floor-level.is-active .ks-floor-num {
  color: #FFFFFF;
}

.ks-floor-tooltip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: var(--ks-dark);
  color: #FFFFFF;
  font-family: var(--ks-font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--ks-radius-subtle);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--ks-shadow-popover);
  transition: all 0.2s var(--ks-ease);
}

.ks-floor-level:hover .ks-floor-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.ks-footing-base {
  width: 14px;
  height: 3px;
  background-color: var(--ks-ink);
  border-radius: 2px;
  margin-top: 6px;
}

/* Mobile Progress Bar */
.ks-mobile-progress {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  height: 4px;
  background-color: var(--ks-line);
  z-index: 1000;
}

.ks-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--ks-accent);
  transition: width 0.1s linear;
}

@media (max-width: 1400px) {
  .ks-floor-indicator { display: none !important; }
  .ks-mobile-progress { display: block; }
}

/* ==========================================================================
   01. Chapter 1: The Plan — Cinema Swiper (Decluttered Luxury Editorial)
   ========================================================================== */
.ks-hero-cinema-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #070B12;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.ks-hero-cinema-slider {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ks-hero-cinema-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.ks-hero-cinema-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Cinematic Background with Ken Burns Zoom */
.ks-hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.0);
  transition: transform 8s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

.ks-hero-cinema-slide.is-active .ks-hero-bg-layer {
  transform: scale(1.06);
}

/* Deep Architectural Scrim Overlay */
.ks-hero-scrim-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(90deg, rgba(7, 11, 18, 0.95) 0%, rgba(7, 11, 18, 0.82) 42%, rgba(7, 11, 18, 0.35) 75%, rgba(7, 11, 18, 0.15) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.85) 0%, transparent 35%, rgba(7, 11, 18, 0.95) 100%);
}

html[dir="ltr"] .ks-hero-scrim-layer {
  background: 
    linear-gradient(270deg, rgba(7, 11, 18, 0.95) 0%, rgba(7, 11, 18, 0.82) 42%, rgba(7, 11, 18, 0.35) 75%, rgba(7, 11, 18, 0.15) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.85) 0%, transparent 35%, rgba(7, 11, 18, 0.95) 100%);
}

.ks-hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(var(--ks-header-h) + 2.5rem);
  padding-bottom: 4rem;
}

.ks-hero-editorial-box {
  max-width: 840px;
  text-align: start;
}

/* 1. Meta / Dossier Badge */
.ks-hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(200, 90, 43, 0.16);
  border: 1px solid rgba(200, 90, 43, 0.45);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ks-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ks-accent);
  box-shadow: 0 0 10px var(--ks-accent), 0 0 20px var(--ks-accent);
  animation: ks-pulse-glow 2s infinite ease-in-out;
}

@keyframes ks-pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ks-meta-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFC5A6;
}

/* 2. Monumental Arabic Headline — Strictly 2 Balanced Lines */
.ks-hero-monument-title {
  font-family: var(--ks-font-heading);
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  font-weight: 800;
  line-height: 1.38;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  letter-spacing: -0.01em;
}

.ks-monument-line {
  display: block;
  white-space: nowrap;
}

/* 3. Refined Editorial Description */
.ks-hero-editorial-desc {
  font-family: var(--ks-font-heading);
  font-size: clamp(0.88rem, 1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.6rem 0;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* 4. Action Row (Sleek, Compact Buttons) */
.ks-hero-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.ks-hero-btn-primary {
  background: var(--ks-accent);
  color: #FFFFFF;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 700;
  font-size: 13.5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px -2px var(--ks-accent-glow);
  transition: all 0.25s var(--ks-ease);
  text-decoration: none;
  min-height: 40px;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

.ks-hero-btn-primary span {
  white-space: nowrap !important;
  display: inline-block;
}

.ks-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px var(--ks-accent-glow);
  background: #B64719;
  color: #FFFFFF;
}

.ks-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 600;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ks-ease);
  text-decoration: none;
  min-height: 40px;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

.ks-hero-btn-secondary span {
  white-space: nowrap !important;
  display: inline-block;
}

.ks-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.ks-ghost-arrow {
  transition: transform 0.25s ease;
}

.ks-hero-btn-secondary:hover .ks-ghost-arrow {
  transform: translateY(3px);
}

/* Smooth Sequential Entry Animations for Active Slide Content */
.ks-hero-cinema-slide .ks-hero-meta-badge,
.ks-hero-cinema-slide .ks-hero-monument-title,
.ks-hero-cinema-slide .ks-hero-editorial-desc,
.ks-hero-cinema-slide .ks-hero-action-row,
.ks-hero-cinema-slide .ks-hero-telemetry-row {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.ks-hero-cinema-slide.is-active .ks-hero-meta-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.ks-hero-cinema-slide.is-active .ks-hero-monument-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.ks-hero-cinema-slide.is-active .ks-hero-editorial-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.ks-hero-cinema-slide.is-active .ks-hero-action-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

/* Robotic Construction LiDAR Survey Laser Beam Sweep Effect */
.ks-laser-scan-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
}

.ks-hero-cinema-slide.is-active .ks-laser-scan-sweep {
  animation: ksLaserScanSweep 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ksLaserScanSweep {
  0% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.ks-laser-beam-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: linear-gradient(180deg, transparent 0%, #FF8438 25%, #FFE072 50%, #FF8438 75%, transparent 100%);
  box-shadow: 0 0 20px 6px rgba(255, 132, 56, 0.8), 0 0 50px 12px rgba(232, 185, 35, 0.4);
  inset-inline-start: 0;
  animation: ksLaserBeamMove 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ksLaserBeamMove {
  0% { inset-inline-start: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { inset-inline-start: 100%; opacity: 0; }
}

.ks-laser-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 132, 56, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 132, 56, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Minimalist Technical Coordinate Tag */
.ks-hero-coord-tag {
  position: absolute;
  bottom: 24px;
  inset-inline-start: clamp(1rem, 2.5vw, 3rem);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  z-index: 5;
  pointer-events: none;
  background: rgba(10, 15, 25, 0.55);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* Minimalist Architectural Hero Navigation (Replacing heavy controller bar) */
.ks-hero-minimal-nav {
  position: absolute;
  bottom: 24px;
  inset-inline-end: clamp(1rem, 2.5vw, 3rem);
  z-index: 10;
}

.ks-hero-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ks-hero-dashes-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-hero-dash-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
}

.ks-dash-track {
  width: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: width 0.3s ease;
}

.ks-dash-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 0%;
  background: var(--ks-accent);
  transition: width 0.08s linear;
}

.ks-hero-dash-item.is-active .ks-dash-track {
  width: 44px;
  background: rgba(255, 255, 255, 0.35);
}

.ks-hero-dash-item.is-active {
  color: #FFFFFF;
}

.ks-dash-num {
  font-size: 11px;
  font-weight: 700;
}

.ks-hero-arrow-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-hero-arrow-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.ks-hero-arrow-mini:hover {
  background: var(--ks-accent);
  border-color: var(--ks-accent);
  transform: scale(1.08);
}

/* Continuous Full-Width Golden Laser Timing Beam at Bottom Border */
.ks-hero-laser-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
  overflow: hidden;
}

.ks-hero-laser-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--ks-accent), #FFE072);
  box-shadow: 0 0 10px var(--ks-accent);
  transition: width 0.08s linear;
}

/* Engineering Ground Leveling Datum Horizon (Scroll Transition to Section 2) */
.ks-ground-datum-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 18, 0.85) 100%);
  padding: 8px clamp(1rem, 2.5vw, 3rem) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 132, 56, 0.4);
}

.ks-datum-laser-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ks-accent) 25%, #FFE072 50%, var(--ks-accent) 75%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 132, 56, 0.7);
  animation: ksLaserPulse 2.5s infinite ease-in-out;
}

@keyframes ksLaserPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.ks-datum-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.ks-datum-pill {
  color: #FFE072;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ks-datum-spec {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .ks-hero-cinema-slider {
    min-height: 80vh;
  }
  .ks-hero-minimal-nav {
    bottom: 16px;
    inset-inline-end: 16px;
  }
  .ks-ground-datum-horizon {
    display: none;
  }
}

@media (max-width: 600px) {
  .ks-hero-content-wrap {
    padding-top: calc(var(--ks-header-h) + 1.25rem);
    padding-bottom: 3.5rem;
  }
  .ks-hero-monument-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .ks-monument-line {
    white-space: normal;
  }
  .ks-hero-editorial-desc {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
  }
  .ks-hero-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .ks-hero-btn-primary, .ks-hero-btn-secondary {
    flex: 0 0 auto;
    white-space: nowrap !important;
    justify-content: center;
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-height: 38px;
  }
  .ks-hero-btn-primary span, .ks-hero-btn-secondary span {
    white-space: nowrap !important;
    display: inline-block;
  }
  .ks-hero-coord-tag {
    display: none;
  }
}

/* Architectural Section Divider: Blueprint Measurement Ruler Tape */
.ks-divider-ruler {
  position: relative;
  z-index: 6;
  width: 100%;
  height: 38px;
  background: #E8B923;
  color: #11161F;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 30px;
  font-family: var(--ks-font-mono);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.ks-ruler-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF3B30;
  box-shadow: 0 0 10px #FF3B30, 0 0 20px #FF3B30;
  animation: ks-laser-pulse 2s infinite alternate;
}

@keyframes ks-laser-pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.ks-ruler-track {
  display: flex;
  gap: clamp(2rem, 8vw, 8rem);
  letter-spacing: 0.08em;
}

.ks-ruler-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #11161F;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ks-ruler-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF3B30;
  animation: ks-pulse 1.5s infinite;
}

/* 3. Chapter 2: The Foundation (Verified Metrics & Capacity) */
.ks-chapter-2 {
  background-color: #FFFFFF;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ks-line);
  border-bottom: 1px solid var(--ks-line);
}

.ks-section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 760px;
}

.ks-text-center {
  margin-inline: auto;
  text-align: center;
}

.ks-chapter-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ks-accent);
  letter-spacing: 1px;
  margin-bottom: var(--ks-space-2);
}

.ks-section-title {
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  font-weight: 800;
  color: var(--ks-ink);
  margin-bottom: var(--ks-space-2);
  padding-bottom: 4px;
  line-height: 1.35;
  letter-spacing: normal;
}

.ks-section-subhead {
  font-size: var(--ks-text-body);
  color: var(--ks-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   2. Chapter 2: The Foundation (Minimalist Luxury Showcase)
   ========================================================================== */
.ks-chapter-2 {
  background-color: #F8FAFC;
  position: relative;
  border-top: 1px solid var(--ks-line);
  padding: clamp(2.5rem, 5vh, 4rem) 0 !important;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .ks-chapter-2 {
    min-height: auto;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(2.5rem, 4.5vh, 4rem) 0 !important;
  }

  .ks-chapter-2 .ks-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.1rem, 2.2vh, 1.6rem);
  }
}

/* Section Badge Pill */
.ks-badge-pill {
  display: inline-block;
  padding: 4px 13px;
  background-color: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #8C6D3B;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.ks-chapter-2 .ks-section-header {
  margin-bottom: 0;
}

.ks-chapter-2 .ks-section-title {
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  margin-bottom: 5px;
  line-height: 1.35;
}

.ks-chapter-2 .ks-section-subhead {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ks-muted);
  max-width: 660px;
  margin: 0 auto;
}

/* 4 Grand Metric Cards Grid */
.ks-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 1.3vw, 1.25rem);
  margin: 0;
}

.ks-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 13px;
  padding: clamp(1.2rem, 1.9vh, 1.6rem) clamp(1rem, 1.25vw, 1.35rem);
  min-height: clamp(130px, 16vh, 155px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 14px -2px rgba(15, 23, 42, 0.03), 0 1px 4px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.ks-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 168, 128, 0.45);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.07), 0 2px 8px -1px rgba(197, 168, 128, 0.12);
}

/* Number & Unit */
.ks-stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ks-stat-number {
  font-size: clamp(1.75rem, 2.25vw, 2.35rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.5px;
}

.ks-stat-unit {
  font-size: 12.5px;
  font-weight: 700;
  color: #C5A880;
}

/* Stat Label & Description */
.ks-stat-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.ks-stat-desc {
  font-size: 11px;
  color: var(--ks-muted);
  line-height: 1.45;
  margin: 0;
}

/* Unified Trust Bar */
.ks-trust-bar {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 11px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
  margin: 0;
}

.ks-trust-classification {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ks-trust-seal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E2CFAB 0%, #C5A880 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.25);
}

.ks-trust-seal-icon svg {
  width: 19px;
  height: 19px;
}

.ks-trust-class-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ks-trust-grade {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
}

.ks-trust-body {
  font-size: 11px;
  color: var(--ks-muted);
}

/* Trust Badges */
.ks-trust-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ks-trust-pill {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.2px;
}

/* Trust Action Button */
.ks-btn-trust-dossier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(197, 168, 128, 0.45);
  background: rgba(197, 168, 128, 0.06);
  color: #8C6D3B;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ks-btn-trust-dossier:hover {
  background: #C5A880;
  color: #FFFFFF;
  border-color: #C5A880;
}

/* Responsive */
@media (max-width: 1024px) {
  .ks-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ks-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .ks-btn-trust-dossier {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .ks-metrics-row {
    grid-template-columns: 1fr;
  }
}

/* 4. Chapter 3: The Structure (Services & Sectors — Dark Luxury Architecture) */
.ks-dark-chapter {
  background-color: #0A0F16;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 4.5vw, 4rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}

.ks-ch3-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 18% 22%, rgba(197, 168, 128, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(30, 58, 138, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  opacity: 0.85;
}

.ks-dark-chapter .ks-section-title,
.ks-text-white {
  color: #FFFFFF !important;
}

.ks-dark-chapter .ks-section-subhead,
.ks-text-dim {
  color: #94A3B8 !important;
  max-width: 680px;
  margin: 0 auto;
}

.ks-badge-dark {
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.28);
  color: #C5A880;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Re-engineered Filter Chips — Sleek Floating Capsule Bar */
.ks-chips-wrap-outer {
  display: flex;
  justify-content: center;
  margin: var(--ks-space-5) auto 0;
  max-width: 100%;
}

.ks-chips-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ks-chips-wrap::-webkit-scrollbar {
  display: none;
}

.ks-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-family: var(--ks-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.ks-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.12);
}

.ks-chip.is-active {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.24), rgba(197, 168, 128, 0.14));
  border-color: #C5A880;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(197, 168, 128, 0.25);
}

.ks-chip.is-active .ks-chip-dot {
  background: #C5A880;
  box-shadow: 0 0 8px #C5A880;
}

/* Services Grid & 3D Mind-Blowing Staggered Elevation */
.ks-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 22px;
  perspective: 1200px;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.ks-service-floor-card {
  background: linear-gradient(160deg, rgba(22, 30, 46, 0.78) 0%, rgba(13, 18, 27, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  /* Creative 3D entrance initial state */
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(40px) scale(0.96);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background 0.35s ease;
  transition-delay: calc(var(--card-index, 0) * 0.07s);
}

.ks-service-floor-card.is-revealed {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.ks-service-floor-card:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-7px) scale(1.015);
  border-color: rgba(197, 168, 128, 0.45);
  box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.75), 0 0 24px rgba(197, 168, 128, 0.16), inset 0 1px 0 rgba(197, 168, 128, 0.3);
  background: linear-gradient(160deg, rgba(28, 38, 58, 0.88) 0%, rgba(15, 22, 34, 0.96) 100%);
}

/* Architectural Shadow-Gap Groove (فواصل ظل معمارية مضيئة) */
.ks-card-shadow-gap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ks-shadow-gap-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.6), transparent);
  transform: translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-shadow-gap-glow {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #C5A880;
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ks-service-floor-card:hover .ks-shadow-gap-line,
.ks-project-monograph-card:hover .ks-shadow-gap-line,
.ks-eq-card:hover .ks-shadow-gap-line {
  transform: translateX(100%);
}

.ks-service-floor-card:hover .ks-shadow-gap-glow,
.ks-project-monograph-card:hover .ks-shadow-gap-glow,
.ks-eq-card:hover .ks-shadow-gap-glow {
  opacity: 0.9;
}

/* Card Top Metadata & Icon */
.ks-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ks-card-lvl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #C5A880;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.ks-lvl-ping {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C5A880;
  box-shadow: 0 0 6px #C5A880;
}

.ks-service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5A880;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-service-floor-card:hover .ks-service-icon-box {
  background: rgba(197, 168, 128, 0.2);
  border-color: #C5A880;
  color: #FFFFFF;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.3);
}

.ks-service-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ks-service-link {
  color: #F8FAFC;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ks-service-floor-card:hover .ks-service-link {
  color: #C5A880;
}

.ks-service-promise {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BIM Milestone Timeline Track */
.ks-delivery-mini-steps {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: auto;
  margin-bottom: 14px;
  position: relative;
}

.ks-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ks-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.4;
}

.ks-step-node {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.25);
  color: #C5A880;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.ks-service-floor-card:hover .ks-step-node {
  background: #C5A880;
  color: #0A0F16;
  border-color: #C5A880;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
}

.ks-step-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Service Footer & Architectural CTA */
.ks-service-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ks-service-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-service-action-btn svg {
  color: #C5A880;
  transition: transform 0.25s ease;
}

.ks-service-action-btn:hover,
.ks-service-floor-card:hover .ks-service-action-btn {
  background: rgba(197, 168, 128, 0.14);
  border-color: rgba(197, 168, 128, 0.4);
  color: #FFFFFF;
}

.ks-service-action-btn:hover svg,
.ks-service-floor-card:hover .ks-service-action-btn svg {
  transform: translateX(-4px);
}

[dir="ltr"] .ks-service-action-btn:hover svg,
[dir="ltr"] .ks-service-floor-card:hover .ks-service-action-btn svg {
  transform: translateX(4px);
}

/* 5. Chapter 4: The Execution (Curated Landmarks & Kinetic Horizontal Showcase) */
.ks-chapter-4 {
  background-color: #080C14;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  overflow: visible; /* Enables position: sticky on .ks-horizontal-sticky-wrap */
}

@media (min-width: 1024px) {
  .ks-chapter-4.ks-horizontal-section {
    height: 250vh; /* Scroll budget that drives horizontal translation */
    position: relative;
  }
}

.ks-ch4-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 75% 20%, rgba(197, 168, 128, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  opacity: 0.85;
}

.ks-horizontal-sticky-wrap {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(0.75rem, 1.5vh, 1.25rem) clamp(0.5rem, 1vh, 1rem);
  box-sizing: border-box;
}

.ks-horizontal-sticky-wrap .ks-section-header {
  margin-bottom: 0;
}

.ks-horizontal-sticky-wrap .ks-chips-wrap-outer {
  margin-top: 8px;
}

@media (max-width: 1023px) {
  .ks-horizontal-sticky-wrap {
    position: relative;
    height: auto;
    max-height: none;
    display: block;
    padding-block: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Horizontal Viewport & Track */
.ks-horizontal-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-block: 6px 10px;
  margin-block: auto;
}

@media (max-width: 1023px) {
  .ks-horizontal-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-block: var(--ks-space-6);
  }
  .ks-horizontal-viewport::-webkit-scrollbar {
    display: none;
  }
}

.ks-horizontal-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  will-change: transform;
  transition: transform 0.08s ease-out;
}

@media (max-width: 1023px) {
  .ks-horizontal-track {
    transform: none !important;
    padding-inline: 18px;
    gap: 16px;
  }
}

/* Monograph Architectural Slab Card */
.ks-project-monograph-card {
  flex: 0 0 clamp(310px, 24vw, 360px);
  height: clamp(380px, 48vh, 440px);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0E1420;
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  scroll-snap-align: center;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ks-project-monograph-card {
    flex: 0 0 88vw;
    height: 480px;
  }
}

.ks-project-monograph-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(197, 168, 128, 0.65);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 28px rgba(197, 168, 128, 0.2), inset 0 1px 0 rgba(197, 168, 128, 0.4);
}

.ks-project-monograph-card:focus-visible {
  outline: 2px solid #C5A880;
  outline-offset: 3px;
}

.ks-monograph-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ks-monograph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-project-monograph-card:hover .ks-monograph-img,
.ks-eq-card:hover .ks-monograph-img {
  transform: scale(1.08);
}

.ks-monograph-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 20, 0.35) 0%,
    rgba(8, 12, 20, 0.15) 30%,
    rgba(8, 12, 20, 0.6) 65%,
    rgba(8, 12, 20, 0.95) 90%,
    rgba(8, 12, 20, 0.99) 100%
  );
  pointer-events: none;
}

.ks-monograph-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(197, 168, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ks-project-monograph-card:hover .ks-monograph-blueprint-grid,
.ks-eq-card:hover .ks-monograph-blueprint-grid {
  opacity: 1;
}

/* Card Content (Anchored to Bottom) */
.ks-monograph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ks-monograph-sector-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ks-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #C5A880;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.2px;
}

.ks-category-tag.ks-nda-tag {
  color: #F87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.ks-monograph-city {
  font-size: 11px;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ks-monograph-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: #FFFFFF;
  transition: color 0.25s ease;
}

.ks-project-monograph-card:hover .ks-monograph-title,
.ks-eq-card:hover .ks-monograph-title {
  color: #C5A880;
}

/* Micro-Specs Grid: Hidden in Default State, Revealed ONLY on Hover */
.ks-monograph-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(197, 168, 128, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 0 10px;
  margin-top: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s ease,
              margin 0.35s ease;
  pointer-events: none;
}

.ks-project-monograph-card:hover .ks-monograph-specs,
.ks-project-monograph-card:focus-visible .ks-monograph-specs {
  opacity: 1;
  max-height: 95px;
  padding: 8px 10px;
  margin-top: 12px;
  transform: translateY(0);
  pointer-events: auto;
}

.ks-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-spec-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #94A3B8;
}

.ks-spec-val {
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sovereign NDA Card */
.ks-monograph-nda-card {
  border-color: rgba(239, 68, 68, 0.35);
}

.ks-monograph-nda-card:hover {
  border-color: rgba(197, 168, 128, 0.65);
}

.ks-nda-media {
  background: radial-gradient(circle at center, #1E1210 0%, #0A0605 100%);
}

.ks-nda-stamp-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  border: 2px dashed rgba(239, 68, 68, 0.3);
  margin: 18px;
  border-radius: 12px;
}

.ks-nda-warning {
  font-size: 10px;
  font-weight: 800;
  color: #EF4444;
  letter-spacing: 1px;
}

.ks-nda-stamp-box strong {
  font-size: 14px;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.ks-nda-code {
  font-size: 10px;
  color: #94A3B8;
}

.ks-nda-redacted-bar {
  font-family: monospace;
  letter-spacing: -2px;
  color: #EF4444;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  user-select: none;
}

.ks-nda-sub {
  font-size: 12px;
  color: #94A3B8;
  display: block;
}


/* Horizontal Exhibition HUD */
.ks-horizontal-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.ks-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-hud-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(197, 168, 128, 0.3) !important;
  color: #C5A880 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
}

.ks-hud-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #C5A880 !important;
  stroke-width: 2.5px !important;
  fill: none !important;
  display: block !important;
  pointer-events: none;
}

.ks-hud-btn:hover {
  background: rgba(197, 168, 128, 0.2);
  border-color: #C5A880;
  color: #FFFFFF;
  transform: scale(1.08);
}

.ks-hud-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 360px;
}

.ks-hud-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.ks-hud-progress-fill {
  height: 100%;
  width: 16.6%;
  background: linear-gradient(90deg, #C5A880, #F59E0B);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.ks-hud-counter {
  font-size: 11px;
  font-weight: 700;
  color: #C5A880;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ks-hud-hint {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-hint-mouse {
  color: #C5A880;
  font-size: 14px;
}

.ks-hud-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #C5A880;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
  transition: all 0.2s ease;
}

.ks-hud-archive-link:hover {
  background: #C5A880;
  color: #0A0F16;
}

@media (max-width: 1023px) {
  .ks-horizontal-hud {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }
  .ks-hud-hint {
    display: none;
  }
}

/* ==========================================================================
   6. Chapter 5: Quality Doctrine, Certified Materials & Governance
   ========================================================================== */
/* ==========================================================================
   6. Chapter 5: Quality Standards & Value Governance (Light Mode Edition)
   ========================================================================== */
.ks-chapter-5 {
  background-color: #F8FAFC;
  position: relative;
  z-index: 2;
  color: #0F172A;
  padding-block: clamp(36px, 4.5vh, 56px);
  overflow: hidden;
  scroll-margin-top: 80px;
  border-top: 1px solid rgba(197, 168, 128, 0.28);
  background-image: 
    radial-gradient(ellipse at center top, rgba(197, 168, 128, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

.ks-chapter-5 .ks-container {
  position: relative;
  z-index: 1;
}

/* Executive Centered Header Bar (Ch5) */
.ks-craft-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto clamp(26px, 4vh, 40px);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.ks-craft-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.ks-craft-eyebrow {
  display: none;
}

.ks-craft-title {
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: center;
}

.ks-craft-subtitle {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: #64748B;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-weight: 400;
}

/* Segmented Tabs Switcher (Light Mode Centered Pill) */
.ks-craft-tabs-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  padding: 5px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  margin: 4px auto 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ks-craft-top-bar {
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 24px;
  }
  .ks-craft-tabs-nav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 4px 6px;
  }
  .ks-craft-tabs-nav::-webkit-scrollbar {
    display: none;
  }
}

.ks-craft-tab-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  color: #64748B;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.ks-tab-num {
  font-size: 10.5px;
  font-weight: 800;
  color: #B5542E;
  opacity: 0.85;
}

.ks-craft-tab-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.ks-craft-tab-btn.is-active {
  color: #FFFFFF;
  background: #0F172A;
  border-color: #0F172A;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

.ks-craft-tab-btn.is-active .ks-tab-num {
  color: #C5A880;
  opacity: 1;
}

/* Panels Matrix Stage */
.ks-craft-matrix-stage {
  position: relative;
  min-height: 340px;
}

.ks-craft-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-craft-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 4-Column Grid */
.ks-craft-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .ks-craft-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .ks-craft-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Light Mode Architectural Monolith Card */
.ks-craft-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ks-craft-card:hover {
  transform: translateY(-5px);
  border-color: #C5A880;
  box-shadow: 0 16px 36px -8px rgba(197, 168, 128, 0.25), 0 0 0 1px rgba(197, 168, 128, 0.35);
}

.ks-craft-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.45;
  margin: 0 0 10px 0;
  transition: color 0.2s ease;
}

.ks-craft-card:hover .ks-craft-card-title {
  color: #B5542E;
}

.ks-craft-card-desc {
  font-size: 12.8px;
  color: #475569;
  line-height: 1.68;
  margin: 0 0 18px 0;
  flex: 1;
}

.ks-craft-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ks-craft-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #B5542E;
  background: rgba(181, 84, 46, 0.08);
  border: 1px solid rgba(181, 84, 46, 0.2);
  border-radius: 4px;
  padding: 3px 10px;
  white-space: nowrap;
}

.ks-craft-tag.ks-tag-success {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

/* Tab 3: HSE Dashboard Strip (Light Mode) */
.ks-safety-dashboard-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .ks-safety-dashboard-strip {
    grid-template-columns: 1fr;
  }
}

.ks-safety-metric-block {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.ks-safety-metric-num {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 900;
  color: #0F172A;
  line-height: 1.05;
  margin-bottom: 6px;
}

.ks-safety-metric-lbl {
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
  line-height: 1.45;
}

.ks-safety-audit-badge {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #FFFFFF 60%, rgba(16, 185, 129, 0.06) 100%);
}

.ks-audit-code {
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.ks-safety-audit-badge strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ks-audit-sub {
  font-size: 11.5px;
  color: #64748B;
}

/* HSE Dual Columns (Light Mode) */
.ks-safety-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .ks-safety-dual-grid {
    grid-template-columns: 1fr;
  }
}

.ks-safety-pillar-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ks-safety-pillar-card:hover {
  border-color: #C5A880;
  transform: translateY(-3px);
}

.ks-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(181, 84, 46, 0.08);
  border: 1px solid rgba(181, 84, 46, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #B5542E;
}

.ks-pillar-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.ks-pillar-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Whistleblower Bar (Light Mode) */
.ks-complaint-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

@media (max-width: 768px) {
  .ks-complaint-cta-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

.ks-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-cta-text strong {
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 800;
}

.ks-cta-text span {
  color: #64748B;
  font-size: 12px;
}

.ks-btn-outline-gold {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #0F172A;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ks-btn-outline-gold:hover {
  background: #B5542E;
  border-color: #B5542E;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(181, 84, 46, 0.25);
}

/* ===================================================================
   7. Chapter 6: The Capacity (Equipment Fleet & Prequalification) - Luxury Dark Mode
   =================================================================== */
.ks-chapter-6 {
  background-color: #090D15;
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 6vh, 72px);
  border-top: 1px solid rgba(197, 168, 128, 0.22);
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
  overflow: hidden;
}

.ks-ch6-ambient-glow {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 12%, rgba(197, 168, 128, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 70%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.ks-capacity-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 740px;
  margin: 0 auto 32px auto;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.16);
  position: relative;
  z-index: 2;
}

.ks-capacity-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-capacity-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.ks-capacity-subtitle {
  font-size: 14.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
}

.ks-capacity-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.ks-prequal-header-btn {
  padding: 10px 22px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.25) !important;
}

/* Fleet Telemetry Stats Strip */
.ks-fleet-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .ks-fleet-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.ks-fleet-stat-card {
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(197, 168, 128, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ks-fleet-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.65);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 22px rgba(197, 168, 128, 0.16);
}

.ks-fleet-stat-card strong {
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ks-fleet-stat-card span {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
}

/* Equipment Inventory Horizontal Architectural Reel */
.ks-equipment-reel-wrap {
  position: relative;
  margin-bottom: 28px;
  z-index: 2;
}

.ks-equipment-reel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ks-equipment-reel::-webkit-scrollbar {
  display: none;
}

/* Equipment Monograph Architectural Slab Card (Matching Chapter 4 Project Monograph Cards) */
.ks-eq-card.ks-eq-monograph-card {
  flex: 0 0 clamp(310px, 25vw, 360px);
  height: clamp(390px, 49vh, 450px);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0E1420;
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  scroll-snap-align: start;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ks-eq-card.ks-eq-monograph-card {
    flex: 0 0 86vw;
    height: 460px;
  }
}

.ks-eq-card.ks-eq-monograph-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(197, 168, 128, 0.65);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 28px rgba(197, 168, 128, 0.2), inset 0 1px 0 rgba(197, 168, 128, 0.4);
}

.ks-eq-card.ks-eq-monograph-card:focus-visible {
  outline: 2px solid #C5A880;
  outline-offset: 3px;
}

/* Equipment Card Content - Revealed ONLY on Hover */
.ks-eq-card .ks-monograph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(197, 168, 128, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

.ks-eq-card:hover .ks-monograph-content,
.ks-eq-card:focus-visible .ks-monograph-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: none), (max-width: 768px) {
  .ks-eq-card .ks-monograph-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Metadata Row inside Card Content (Category Tag & Unit Pill) */
.ks-monograph-top-floating {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.ks-eq-unit-pill {
  font-size: 11px;
  font-weight: 800;
  color: #C5A880;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(197, 168, 128, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 9px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

/* Navigation Arrow Controls */
.ks-eq-nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.ks-eq-nav-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(14, 20, 32, 0.85) !important;
  border: 1px solid rgba(197, 168, 128, 0.28) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  color: #C5A880 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0;
}

.ks-eq-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #C5A880;
  stroke-width: 2.5;
  display: block;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.ks-eq-nav-btn:hover {
  background: #C5A880 !important;
  color: #080C14 !important;
  border-color: #C5A880 !important;
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.4) !important;
  transform: scale(1.05);
}

.ks-eq-nav-btn:hover svg {
  stroke: #080C14;
}

/* Clients Infinite Marquee Ticker (Dark Mode) */
.ks-clients-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(197, 168, 128, 0.16);
  position: relative;
  z-index: 2;
  width: 100%;
}

.ks-clients-marquee-header {
  text-align: center;
}

.ks-clients-label {
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.8px;
  white-space: nowrap;
  display: inline-block;
}

.ks-clients-marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding-block: 4px;
}

.ks-clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: ksMarqueeScroll 35s linear infinite;
  will-change: transform;
}

.ks-clients-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes ksMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

[dir="rtl"] .ks-clients-marquee-track {
  animation: ksMarqueeScrollRTL 35s linear infinite;
}

[dir="rtl"] .ks-clients-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes ksMarqueeScrollRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(33.333%);
  }
}

.ks-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(197, 168, 128, 0.18);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
  white-space: nowrap;
  transition: all 0.25s ease;
  user-select: none;
}

.ks-client-badge:hover {
  color: #FFFFFF;
  border-color: #C5A880;
  background: rgba(197, 168, 128, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.18);
}

.ks-client-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C5A880;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.8);
  flex-shrink: 0;
}

/* ===================================================================
   8. Chapter 7: The Calculation (BIM BOQ Cost Simulator Studio)
   =================================================================== */
.ks-chapter-7 {
  background-color: #FFFFFF;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-block: clamp(36px, 4.5vh, 56px);
}

.ks-calc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ks-calc-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.ks-calc-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ks-calc-title {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.ks-calc-subtitle {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* 2-Wing Architectural Simulator Console */
.ks-sim-console {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}

.ks-sim-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .ks-sim-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Wing 1: Configuration Deck */
.ks-sim-deck {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ks-sim-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ks-sim-step-badge {
  font-size: 10px;
  font-weight: 900;
  color: #B5542E;
  background: rgba(181, 84, 46, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.ks-sim-group-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

/* 1. Archetype Cards Grid */
.ks-sim-archetypes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .ks-sim-archetypes {
    grid-template-columns: 1fr;
  }
}

.ks-archetype-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: #0F172A;
  transition: all 0.22s ease;
  position: relative;
  outline: none;
}

[dir="ltr"] .ks-archetype-card {
  text-align: left;
}

.ks-archetype-card:hover {
  border-color: rgba(15, 23, 42, 0.3);
  background: #F1F5F9;
  transform: translateY(-2px);
}

.ks-archetype-card.is-active {
  background: #0F172A;
  color: #FFFFFF !important;
  border-color: #0F172A;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.ks-archetype-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  color: #B5542E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.ks-archetype-card.is-active .ks-archetype-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #C5A880;
}

.ks-archetype-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ks-archetype-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: #0F172A;
}

.ks-archetype-card.is-active .ks-archetype-title {
  color: #FFFFFF !important;
}

.ks-archetype-sub {
  font-size: 11px;
  color: #64748B;
  transition: color 0.22s ease;
}

.ks-archetype-card.is-active .ks-archetype-sub {
  color: #94A3B8;
}

.ks-archetype-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.ks-archetype-card.is-active .ks-archetype-radio {
  border-color: #C5A880;
  background: #C5A880;
  box-shadow: inset 0 0 0 3px #0F172A;
}

/* 2. Finish Tier Segmented Rail */
.ks-sim-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 680px) {
  .ks-sim-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ks-tier-pill {
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  cursor: pointer;
  font-family: inherit;
  color: #0F172A;
  transition: all 0.2s ease;
  outline: none;
}

.ks-tier-pill:hover {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.25);
}

.ks-tier-pill.is-active {
  background: #0F172A;
  color: #FFFFFF !important;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ks-tier-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  color: #0F172A;
}

.ks-tier-pill.is-active .ks-tier-name {
  color: #FFFFFF !important;
}

.ks-tier-spec {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  transition: color 0.2s ease;
}

.ks-tier-pill.is-active .ks-tier-spec {
  color: #C5A880;
}

/* 3. Area Controls */
.ks-sim-area-group {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
}

.ks-sim-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ks-sim-area-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ks-sim-area-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks-stepper-btn {
  background: #F1F5F9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0F172A;
  font-weight: 800;
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ks-stepper-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.ks-stepper-display {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #F8FAFC;
  border: 1.5px solid rgba(181, 84, 46, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
}

.ks-area-num-input {
  width: 60px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
  text-align: center;
  outline: none;
}

.ks-area-unit-badge {
  font-size: 11px;
  font-weight: 700;
  color: #B5542E;
}

.ks-sim-slider-wrap {
  margin-bottom: 10px;
}

.ks-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E2E8F0;
  appearance: none;
  outline: none;
  accent-color: #B5542E;
  cursor: pointer;
}

.ks-sim-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ks-presets-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
}

.ks-presets-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ks-preset-chip {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.ks-preset-chip:hover {
  border-color: #C5A880;
  color: #0F172A;
  background: #FFFFFF;
}

.ks-preset-chip.is-active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* Wing 2: Live Computed BOQ Telemetry Slab (Left) */
.ks-sim-slab {
  background: linear-gradient(145deg, #0B0F17 0%, #111827 100%);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(11, 15, 23, 0.35);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.ks-slab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ks-slab-pill {
  font-size: 10px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks-slab-pill .ks-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

.ks-slab-year {
  font-size: 10px;
  font-weight: 800;
  color: #C5A880;
  letter-spacing: 0.5px;
}

.ks-slab-total-wrap {
  margin-bottom: 16px;
}

.ks-slab-sub-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  display: block;
  margin-bottom: 6px;
}

.ks-slab-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ks-slab-num {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.ks-slab-range-dash {
  font-size: 18px;
  color: #C5A880;
}

.ks-slab-currency {
  font-size: 13px;
  font-weight: 800;
  color: #FFC5A6;
}

.ks-slab-rate-row {
  font-size: 11.5px;
  color: #94A3B8;
}

.ks-slab-rate-row strong {
  color: #FFFFFF;
}

/* Dynamic BOQ Breakdown */
.ks-boq-breakdown {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ks-boq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ks-boq-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #C5A880;
}

.ks-boq-meta {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
}

.ks-boq-item {
  margin-bottom: 8px;
}

.ks-boq-item:last-child {
  margin-bottom: 0;
}

.ks-boq-item-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.ks-boq-name {
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-boq-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.ks-dot-structure { background: #3B82F6; }
.ks-dot-mep { background: #F59E0B; }
.ks-dot-finishes { background: #10B981; }

.ks-boq-val {
  font-weight: 800;
  color: #C5A880;
}

.ks-boq-bar-bg {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ks-boq-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ks-bar-structure { background: #3B82F6; }
.ks-bar-mep { background: #F59E0B; }
.ks-bar-finishes { background: #10B981; }

.ks-slab-disclaimer {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0 0 14px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.ks-slab-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #C5A880;
}

.ks-lock-boq-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap !important;
  font-size: 13px !important;
  padding: 12px 18px !important;
  box-shadow: 0 4px 18px rgba(181, 84, 46, 0.35);
}

/* Executive Engineering Insights & BOQ Governance Bar */
.ks-calc-insights-bar {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 18px;
}

.ks-insights-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ks-insights-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #B5542E;
  background: rgba(181, 84, 46, 0.08);
  border: 1px solid rgba(181, 84, 46, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
}

.ks-insights-heading {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.ks-insights-capsules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .ks-insights-capsules {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.ks-insight-capsule {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ks-insight-capsule:hover {
  border-color: #C5A880;
  transform: translateY(-2px);
}

.ks-insight-num {
  font-size: 12px;
  font-weight: 900;
  color: #C5A880;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-insight-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-insight-text strong {
  font-size: 12.5px;
  color: #0F172A;
  font-weight: 800;
}

.ks-insight-text p {
  font-size: 11px;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

/* Chapter 8 Imported Estimate Ribbon */
.ks-imported-estimate-ribbon {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  animation: ks-pane-fade 0.3s ease;
}

@media (max-width: 768px) {
  .ks-imported-estimate-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ks-ribbon-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ks-ribbon-badge {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ks-ribbon-summary {
  font-size: 12.5px;
  color: #E2E8F0;
}

.ks-ribbon-edit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFC5A6;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ks-ribbon-edit-btn:hover {
  background: #B5542E;
  color: #FFFFFF;
  border-color: #B5542E;
}

/* ===================================================================
   9. Chapter 8: The Key & Sovereign Private Session Lounge
   =================================================================== */
.ks-chapter-8 {
  background-color: #F8FAFC;
  position: relative;
  z-index: 2;
  padding-block: clamp(36px, 4.5vh, 56px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ks-session-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ks-session-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.ks-session-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ks-session-title {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.ks-session-subtitle {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* 2-Wing Consultation Lounge */
.ks-session-lounge {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}

.ks-session-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .ks-session-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Wing 1: Guarantees & Concierge */
.ks-session-concierge {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.ks-concierge-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-concierge-tag {
  font-size: 10px;
  font-weight: 800;
  color: #B5542E;
  letter-spacing: 0.8px;
}

.ks-concierge-heading {
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.ks-concierge-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-c-pillar {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.ks-c-pillar:hover {
  background: #FFFFFF;
  border-color: #C5A880;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ks-c-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(181, 84, 46, 0.08);
  color: #B5542E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-c-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-c-body h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}

.ks-c-body p {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.ks-vip-line-box {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 540px) {
  .ks-vip-line-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.ks-vip-line-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ks-vip-lbl {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

.ks-vip-tel {
  font-size: 14.5px;
  font-weight: 900;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.ks-vip-tel:hover {
  color: #C5A880;
}

.ks-vip-wa-btn {
  white-space: nowrap !important;
  font-size: 11.5px !important;
  padding: 8px 14px !important;
}

/* Wing 2: Booking Terminal */
.ks-session-terminal {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.ks-terminal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ks-terminal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ks-terminal-title {
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
}

.ks-terminal-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.ks-terminal-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ks-terminal-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .ks-terminal-fields {
    grid-template-columns: 1fr;
  }
}

.ks-term-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-term-span-2 {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .ks-term-span-2 {
    grid-column: span 1;
  }
}

.ks-term-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
}

.ks-term-input {
  width: 100%;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  font-size: 12.5px;
  color: #0F172A;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ks-term-input:focus {
  outline: none;
  border-color: #B5542E;
  box-shadow: 0 0 0 3px rgba(181, 84, 46, 0.12);
}

.ks-sector-radio-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .ks-sector-radio-pills {
    grid-template-columns: 1fr;
  }
}

.ks-sec-pill {
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-sec-pill input {
  position: absolute;
  opacity: 0;
}

.ks-sec-pill:hover {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.3);
}

.ks-sec-pill.is-active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}

.ks-file-upload-row {
  margin-top: 2px;
}

.ks-file-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px dashed rgba(15, 23, 42, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.ks-file-attach-btn:hover {
  border-color: #B5542E;
  color: #0F172A;
  background: rgba(181, 84, 46, 0.04);
}

.ks-hidden-file-input {
  display: none;
}

.ks-submit-session-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap !important;
  font-size: 13.5px !important;
  padding: 12px 18px !important;
  box-shadow: 0 4px 18px rgba(181, 84, 46, 0.35);
}

/* Contact Channels Strip */
.ks-contact-channels-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 860px) {
  .ks-contact-channels-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ks-contact-channels-strip {
    grid-template-columns: 1fr;
  }
}

.ks-channel-box {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ks-channel-box:hover {
  border-color: #C5A880;
  transform: translateY(-2px);
}

.ks-ch-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(181, 84, 46, 0.08);
  color: #B5542E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-ch-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  display: block;
}

.ks-ch-val {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Suppress default Astra footer elements */
.ast-footer-copyright,
.ast-small-footer,
footer#colophon:not(.ks-site-footer),
.ast-builder-footer-grid {
  display: none !important;
}

/* Skyline Silhouette */
.ks-skyline-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-top: var(--ks-space-6);
}

.ks-skyline-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.ks-skyline-building {
  background: #141B26;
  border: 1px solid #243044;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ks-ease);
}

.ks-skyline-building:hover {
  background: var(--ks-accent);
  border-color: var(--ks-accent);
  transform: translateY(-8px);
}

.ks-skyline-datum {
  width: 100%;
  height: 2px;
  background: var(--ks-accent);
}

/* ==========================================================================
   INTERACTIVE CONSTRUCTION BEFORE / AFTER STAGE TRANSFORMATION
   ========================================================================== */
.ks-stage-compare-wrap {
  margin-block: var(--ks-space-6) var(--ks-space-8);
  background: #0E141E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ks-radius-modal);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.ks-stage-compare-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ks-accent-soft) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.6;
}

.ks-compare-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--ks-space-5);
  position: relative;
  z-index: 2;
}

.ks-compare-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(200, 90, 43, 0.2);
  border: 1px solid rgba(200, 90, 43, 0.45);
  border-radius: var(--ks-radius-pill);
  color: #FFC5A6;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--ks-space-3);
}

.ks-compare-title {
  color: #FFFFFF;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.55;
  padding-bottom: 6px;
  letter-spacing: normal;
  margin-bottom: var(--ks-space-3);
}

.ks-compare-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.ks-stage-compare-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  background: #000000;
}

@media (max-width: 640px) {
  .ks-stage-compare-box {
    aspect-ratio: 4 / 3;
  }
}

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

.ks-compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ks-compare-pane.ks-pane-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
  transition: clip-path 0.05s linear;
}

.ks-compare-tag {
  position: absolute;
  top: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ks-radius-pill);
  font-family: var(--ks-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.ks-tag-before { inset-inline-start: 18px; }
.ks-tag-after { inset-inline-end: 18px; }

.ks-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ks-dot-orange { background-color: var(--ks-accent); box-shadow: 0 0 8px var(--ks-accent); }
.ks-dot-green { background-color: #22C55E; box-shadow: 0 0 8px #22C55E; }

/* Interactive Handle */
.ks-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  pointer-events: auto;
}

.ks-handle-line {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 24px var(--ks-accent);
}

.ks-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(200, 90, 43, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: ew-resize;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ks-compare-handle:hover .ks-handle-knob,
.ks-compare-handle:active .ks-handle-knob {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 0 6px var(--ks-accent);
}

.ks-handle-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--ks-accent);
}

/* Compare Pills */
.ks-compare-pills {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  gap: 8px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: var(--ks-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ks-cmp-pill {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--ks-radius-pill);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--ks-font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ks-ease);
  white-space: nowrap;
}

.ks-cmp-pill.is-active, .ks-cmp-pill:hover {
  background: var(--ks-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--ks-accent-glow);
}

/* Compare Specs Strip */
.ks-compare-specs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--ks-space-4);
  padding-top: var(--ks-space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .ks-compare-specs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ks-cmp-stat {
  display: flex;
  flex-direction: column;
}

.ks-cmp-lbl {
  font-family: var(--ks-font-heading);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.ks-cmp-val {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

/* ==========================================================================
   HEAVY EQUIPMENT FLEET UPGRADES (CHAPTER 6)
   ========================================================================== */
.ks-block-subtitle {
  font-size: 14px;
  color: var(--ks-muted);
  max-width: 60ch;
  margin-top: 4px;
  line-height: 1.6;
}

/* Legacy fleet stats rules replaced by modern dark mode */

.ks-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ks-equipment-card {
  background: #FFFFFF;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-card);
  overflow: hidden;
  box-shadow: var(--ks-shadow-card);
  transition: transform 0.3s var(--ks-ease), box-shadow 0.3s var(--ks-ease);
  display: flex;
  flex-direction: column;
}

.ks-equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.15);
  border-color: var(--ks-accent);
}

.ks-eq-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #0B0F17;
}

.ks-eq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ks-equipment-card:hover .ks-eq-img {
  transform: scale(1.06);
}

.ks-eq-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 15, 23, 0.75) 100%);
  pointer-events: none;
}

.ks-eq-status {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--ks-radius-pill);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ks-eq-status.ks-eq-available {
  background: rgba(16, 185, 129, 0.90);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ks-eq-status.ks-eq-available .ks-dot {
  background-color: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
}

.ks-eq-status.ks-eq-in_use {
  background: rgba(234, 88, 12, 0.90);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ks-eq-status.ks-eq-in_use .ks-dot {
  background-color: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
}

.ks-eq-qty-pill {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  background: rgba(11, 15, 23, 0.85);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--ks-radius-pill);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ks-eq-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ks-eq-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ks-ink);
  line-height: 1.5;
  letter-spacing: normal;
  margin-bottom: 6px;
}

.ks-eq-specs {
  font-size: 12px;
  color: var(--ks-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.ks-eq-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ks-eq-spec-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 4px;
}

/* ==========================================================================
   DYNAMIC ARCHITECTURAL SECTION DIVIDERS & TRANSITIONS
   ========================================================================== */
.ks-section-divider {
  width: 100%;
  position: relative;
  z-index: 3;
  line-height: 0;
  overflow: hidden;
}

.ks-divider-svg {
  width: 100%;
  height: clamp(32px, 4vw, 56px);
  display: block;
}

/* Angle Divider — Seamless Overlap (Zero extra gap) */
.ks-divider-angle {
  height: 32px;
  margin-top: -32px;
  margin-bottom: 0;
  position: relative;
  z-index: 4;
  pointer-events: none;
  line-height: 0;
}

.ks-divider-angle .ks-divider-svg {
  height: 32px;
  width: 100%;
  display: block;
}

/* CAD Ribbon Divider */
.ks-divider-cad {
  background: #0E141E;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 10px;
  overflow: hidden;
}

.ks-cad-ribbon-bar {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ks-cad-ribbon-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: ks-ticker 30s linear infinite;
}

@keyframes ks-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ks-cad-tick {
  color: #FFC5A6;
  font-weight: 700;
}

.ks-cad-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Chevron Divider */
.ks-divider-chevron {
  margin-top: -1px;
}

/* Skyline Divider */
.ks-divider-skyline {
  margin-top: -1px;
  margin-bottom: -1px;
}

/* ==========================================================================
   3-WAY MECHANICAL ARCHITECTURAL SLIDER & BIM LAYERS
   ========================================================================== */
.ks-compare-pane.ks-pane-turnkey {
  z-index: 1;
}

.ks-compare-pane.ks-pane-bim {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ks-ease), clip-path 0.05s linear;
}

.ks-stage-compare-box[data-stage-mode="bim"] .ks-compare-pane.ks-pane-bim {
  opacity: 1;
}

.ks-compare-pane.ks-pane-before {
  z-index: 3;
}

.ks-tag-dot.ks-dot-blue {
  background-color: #00B4D8;
  box-shadow: 0 0 10px #00B4D8;
}

.ks-tag-bim {
  inset-inline-start: 18px;
}

.ks-3way-pills {
  display: flex;
  gap: 8px;
}

.ks-pill-bullet {
  font-size: 11px;
  font-weight: 800;
  color: var(--ks-accent);
  margin-inline-end: 4px;
}

/* ==========================================================================
   CURATED WORKS HORIZONTAL MONOGRAPH GALLERY
   ========================================================================== */
.ks-monograph-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: var(--ks-space-4) var(--ks-space-6);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ks-accent) rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.ks-monograph-container:active {
  cursor: grabbing;
}

.ks-monograph-container::-webkit-scrollbar {
  height: 4px;
}

.ks-monograph-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
}

.ks-monograph-container::-webkit-scrollbar-thumb {
  background: var(--ks-accent);
  border-radius: 9999px;
}

.ks-monograph-grid {
  display: grid;
  width: 100%;
}

.ks-monograph-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-card);
  overflow: hidden;
  box-shadow: var(--ks-shadow-card);
  transition: transform 0.35s var(--ks-ease), box-shadow 0.35s var(--ks-ease), border-color 0.35s var(--ks-ease);
}

.ks-monograph-card:hover {
  transform: translateY(-6px);
  border-color: var(--ks-accent);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.18);
}

.ks-monograph-index {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--ks-accent);
  padding: 4px 10px;
  border-radius: var(--ks-radius-pill);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}



/* ==========================================================================
   CUSTOM LUXURY CURSOR & TEXT MASKING
   ========================================================================== */
.ks-custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s var(--ks-ease), height 0.25s var(--ks-ease), background-color 0.25s var(--ks-ease), border-color 0.25s var(--ks-ease);
  mix-blend-mode: difference;
}

.ks-cursor-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s var(--ks-ease);
}

.ks-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--ks-accent);
  border-radius: 50%;
}

.ks-cursor-text {
  position: absolute;
  font-family: var(--ks-font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #000000;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s var(--ks-ease);
  pointer-events: none;
  text-align: center;
}

.ks-custom-cursor.is-active {
  width: 64px;
  height: 64px;
  background-color: #FFFFFF;
  mix-blend-mode: normal;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.ks-custom-cursor.is-active .ks-cursor-ring {
  opacity: 0;
}

.ks-custom-cursor.is-active .ks-cursor-dot {
  opacity: 0;
}

.ks-custom-cursor.is-active .ks-cursor-text {
  opacity: 1;
  transform: scale(1);
}

@media (pointer: coarse), (max-width: 1024px) {
  .ks-custom-cursor {
    display: none !important;
  }
}

/* Text Masking Reveal Container */
.ks-hero-title-mask {
  overflow: hidden;
  display: block;
}

/* ==========================================================================
   14. Fullscreen Architectural Numbered Index (01 - 08)
   ========================================================================== */
.ks-index-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-subtle);
  color: var(--ks-ink);
  cursor: pointer;
  font-family: var(--ks-font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s var(--ks-ease);
}

.ks-index-toggle-btn:hover {
  background: var(--ks-surface);
  border-color: var(--ks-accent);
  color: var(--ks-accent);
}

.ks-idx-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 3px;
}

.ks-idx-grid-icon span {
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .ks-index-toggle-btn .ks-idx-label {
    display: none;
  }
  .ks-index-toggle-btn {
    padding: 0 10px;
    min-width: 38px;
  }
}

.ks-fullscreen-index-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ks-ease), visibility 0.35s var(--ks-ease);
}

.ks-fullscreen-index-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.ks-fs-index-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ks-fs-index-content {
  position: relative;
  z-index: 2;
  width: min(94vw, 1280px);
  max-height: 92vh;
  background: #141B26;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  overflow-y: auto;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.ks-fs-index-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.ks-fs-datum-mark {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ks-accent);
  margin-bottom: 6px;
}

.ks-fs-index-title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
}

.ks-fs-index-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ks-radius-pill);
  color: #FFFFFF;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.ks-fs-index-close:hover {
  background: var(--ks-accent);
  border-color: var(--ks-accent);
}

.ks-fs-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .ks-fs-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ks-fs-index-grid {
    grid-template-columns: 1fr;
  }
}

.ks-fs-chapter-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  min-height: 160px;
  transition: all 0.25s var(--ks-ease);
}

.ks-fs-chapter-card:hover {
  background: rgba(200, 90, 43, 0.15);
  border-color: var(--ks-accent);
  transform: translateY(-3px);
}

.ks-fs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ks-fs-card-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--ks-accent);
}

.ks-fs-card-elev {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--ks-radius-pill);
}

.ks-fs-card-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.45;
}

.ks-fs-card-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.ks-fs-card-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.ks-fs-action-arrow {
  color: var(--ks-accent);
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.ks-fs-chapter-card:hover .ks-fs-action-arrow {
  transform: translateX(-4px);
}

.ks-fs-index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.ks-fs-foot-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   15. Confidential NDA Protected Landmark Card
   ========================================================================== */
.ks-project-nda-card {
  border: 1px dashed rgba(200, 90, 43, 0.6) !important;
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  grid-column: 1 / -1 !important;
}

@media (min-width: 992px) {
  .ks-project-nda-card {
    display: grid !important;
    grid-template-columns: 360px 1fr !important;
    align-items: stretch !important;
  }
  .ks-project-nda-card .ks-nda-img-box {
    height: 100% !important;
    min-height: 240px !important;
  }
  .ks-project-nda-card .ks-project-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 28px 32px !important;
  }
}

.ks-nda-img-box {
  background: radial-gradient(circle at center, #1E293B 0%, #0B0F17 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.ks-nda-overlay-scrim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.ks-nda-stamp {
  border: 2px dashed rgba(200, 90, 43, 0.8);
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(200, 90, 43, 0.12);
  backdrop-filter: blur(8px);
  transform: rotate(-3deg);
}

.ks-nda-stamp span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ks-accent);
  margin-bottom: 4px;
}

.ks-nda-stamp strong {
  display: block;
  color: #FFFFFF;
  font-size: 14px;
}

.ks-dot-nda {
  background-color: var(--ks-accent);
  box-shadow: 0 0 10px var(--ks-accent);
}

.ks-nda-tag {
  background: rgba(200, 90, 43, 0.25) !important;
  color: #FFC5A6 !important;
  border-color: rgba(200, 90, 43, 0.5) !important;
}

.ks-nda-redacted {
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  font-family: monospace;
  user-select: none;
}

.ks-nda-subtitle {
  display: block;
  font-size: 15px;
  color: #FFFFFF;
  margin-top: 4px;
}

.ks-btn-nda-request {
  background: rgba(200, 90, 43, 0.15) !important;
  border-color: var(--ks-accent) !important;
  color: #FFFFFF !important;
}

.ks-btn-nda-request:hover {
  background: var(--ks-accent) !important;
}

/* ==========================================================================
   Dedicated Pages: Services Directory & Articles Archive (Dark Luxury Theme)
   ========================================================================== */
.ks-services-page,
.ks-articles-page {
  background-color: #080C14;
  color: #FFFFFF;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: calc(var(--ks-header-h, 72px) + var(--ks-space-8, 32px));
  padding-bottom: var(--ks-space-16, 64px);
}

.ks-services-page .ks-section-header,
.ks-articles-page .ks-section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto var(--ks-space-10);
}

/* Dark Architectural Breadcrumbs Navigation */
.ks-dark-breadcrumbs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--ks-space-6, 24px);
}
.ks-dark-breadcrumbs .ks-breadcrumb-list {
  background: rgba(14, 20, 32, 0.75) !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  border-radius: 999px !important;
  padding: 6px 20px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.ks-dark-breadcrumbs .ks-breadcrumb-list a {
  color: #94A3B8 !important;
  font-weight: 500 !important;
}
.ks-dark-breadcrumbs .ks-breadcrumb-list a:hover {
  color: #C5A880 !important;
}
.ks-dark-breadcrumbs .ks-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.22) !important;
  margin: 0 4px !important;
}
.ks-dark-breadcrumbs .ks-breadcrumb-list li[aria-current="page"] {
  color: #C5A880 !important;
  font-weight: 700 !important;
}

/* Standalone Services Page Grid */
.ks-services-page .ks-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  perspective: 1200px;
  margin-top: var(--ks-space-8, 32px);
  margin-bottom: var(--ks-space-12, 48px);
}
.ks-services-page .ks-service-floor-card.is-revealed {
  opacity: 1 !important;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1) !important;
}

/* Articles Archive Monograph Cards Grid */
.ks-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
  margin-top: var(--ks-space-8, 32px);
  margin-bottom: var(--ks-space-12, 48px);
}

.ks-article-monograph-card {
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0E1420;
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.ks-article-monograph-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(197, 168, 128, 0.65);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 28px rgba(197, 168, 128, 0.25), inset 0 1px 0 rgba(197, 168, 128, 0.4);
}

.ks-article-monograph-card:focus-visible {
  outline: 2px solid #C5A880;
  outline-offset: 3px;
}

.ks-article-monograph-card:hover .ks-monograph-img {
  transform: scale(1.08);
}

.ks-article-monograph-card:hover .ks-monograph-blueprint-grid {
  opacity: 1;
}

.ks-article-monograph-card:hover .ks-shadow-gap-line {
  transform: translateX(100%);
}

.ks-article-monograph-card:hover .ks-shadow-gap-glow {
  opacity: 0.9;
}

.ks-article-monograph-card .ks-article-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ks-article-date-pill {
  font-size: 11px;
  color: #E2E8F0;
  background: rgba(9, 13, 21, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.ks-article-monograph-card .ks-monograph-content {
  position: relative;
  z-index: 2;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(197, 168, 128, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.3s ease;
}

.ks-article-monograph-card:hover .ks-monograph-content {
  border-color: rgba(197, 168, 128, 0.5);
  background: rgba(8, 12, 20, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.ks-article-monograph-card .ks-monograph-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.ks-article-monograph-card:hover .ks-monograph-title {
  color: #C5A880;
}

.ks-article-excerpt {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ks-article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ks-article-read-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: #C5A880;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.ks-article-read-btn svg {
  transition: transform 0.25s ease;
}

.ks-article-monograph-card:hover .ks-article-read-btn svg {
  transform: translateX(-4px);
}
[dir="ltr"] .ks-article-monograph-card:hover .ks-article-read-btn svg {
  transform: translateX(4px);
}

.ks-reading-time {
  font-size: 11px;
  color: #94A3B8;
}

/* Empty filter state */
.ks-filter-empty-state {
  text-align: center;
  color: #94A3B8;
  padding: 60px 20px;
  background: rgba(14, 20, 32, 0.7);
  border: 1px dashed rgba(197, 168, 128, 0.25);
  border-radius: 16px;
  margin: var(--ks-space-8, 32px) 0;
  display: none;
}

/* Dark Luxury Pagination */
.ks-dark-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--ks-space-8, 32px);
  margin-bottom: var(--ks-space-12, 48px);
}
.ks-dark-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(197, 168, 128, 0.2);
  color: #E2E8F0;
  font-family: var(--ks-font-mono);
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.ks-dark-pagination .page-numbers:hover {
  border-color: #C5A880;
  color: #C5A880;
  background: rgba(197, 168, 128, 0.12);
}
.ks-dark-pagination .page-numbers.current {
  background: #C5A880;
  border-color: #C5A880;
  color: #080C14;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.4);
}

.ks-dark-chapter .ks-btn-outline {
  color: #FFFFFF !important;
  border-color: rgba(197, 168, 128, 0.4) !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ks-dark-chapter .ks-btn-outline:hover {
  background: rgba(197, 168, 128, 0.2) !important;
  border-color: #C5A880 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.25);
}

@media (max-width: 640px) {
  .ks-article-monograph-card {
    height: 460px;
  }
  .ks-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page Hero Banner — Derived from Homepage Hero (Cinema Swiper Architecture)
   ========================================================================== */
.ks-page-hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #070B12;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.ks-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 7s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}
.ks-page-hero-banner:hover .ks-page-hero-bg {
  transform: scale(1.06);
}

.ks-page-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.86) 42%, rgba(7, 11, 18, 0.45) 75%, rgba(7, 11, 18, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.85) 0%, transparent 35%, rgba(8, 12, 20, 0.95) 90%, #080C14 100%);
}

html[dir="ltr"] .ks-page-hero-scrim {
  background: 
    linear-gradient(270deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.86) 42%, rgba(7, 11, 18, 0.45) 75%, rgba(7, 11, 18, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.85) 0%, transparent 35%, rgba(8, 12, 20, 0.95) 90%, #080C14 100%);
}

.ks-page-hero-banner .ks-laser-scan-sweep {
  animation: ksLaserScanSweep 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ks-page-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--ks-header-h, 72px) + 2rem);
  padding-bottom: 3.5rem;
}

.ks-page-hero-banner .ks-breadcrumbs {
  margin-bottom: 1.5rem;
  width: fit-content;
}

.ks-page-hero-content {
  max-width: 860px;
  text-align: start;
}

.ks-page-hero-title {
  font-family: var(--ks-font-heading);
  font-size: clamp(1.8rem, 2.9vw, 2.85rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.ks-page-hero-title .ks-title-highlight {
  display: block;
  color: #C5A880;
  background: linear-gradient(135deg, #FFFFFF 0%, #C5A880 50%, #E6C89C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ks-page-hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: #94A3B8;
  line-height: 1.8;
  max-width: 740px;
  margin-bottom: 1.75rem;
}

/* Telemetry Stats Strip inside Banner (Derived from Homepage Chapter 1 & 6) */
.ks-hero-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 2rem;
  padding: 12px 22px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ks-hero-telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ks-telemetry-val {
  font-family: var(--ks-font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #C5A880;
}

.ks-telemetry-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 0.2px;
}

.ks-telemetry-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .ks-hero-telemetry-row {
    width: 100%;
    justify-content: space-between;
  }
  .ks-telemetry-sep {
    display: none;
  }
}

/* Filter Strip Section Immediately Below Hero */
.ks-page-filter-strip {
  padding-top: var(--ks-space-8, 32px);
  margin-bottom: var(--ks-space-6, 24px);
  text-align: center;
}

/* ==========================================================================
   Single Service Page — Dark Luxury Architectural Masterclass
   ========================================================================== */
.ks-single-service-page {
  background-color: #080C14;
  color: #FFFFFF;
  position: relative;
  min-height: 100vh;
}

.ks-single-service-page .ks-profile-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--ks-space-8, 32px);
  margin-top: var(--ks-space-10, 40px);
  margin-bottom: var(--ks-space-12, 48px);
}

@media (max-width: 991px) {
  .ks-single-service-page .ks-profile-body-grid {
    grid-template-columns: 1fr;
  }
}

.ks-single-service-page .ks-scope-card {
  background: linear-gradient(160deg, rgba(22, 30, 46, 0.8) 0%, rgba(13, 18, 27, 0.95) 100%);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.ks-single-service-page .ks-scope-card h2 {
  font-family: var(--ks-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ks-single-service-page .ks-scope-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #C5A880;
  border-radius: 2px;
}

.ks-single-service-page .ks-entry-content {
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.85;
}

/* Service Step Milestones on Single Page */
.ks-single-service-page .ks-service-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.ks-single-service-page .ks-timeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(14, 20, 32, 0.75);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.ks-single-service-page .ks-timeline-step:hover {
  border-color: #C5A880;
  background: rgba(197, 168, 128, 0.1);
  transform: translateX(-4px);
}
html[dir="ltr"] .ks-single-service-page .ks-timeline-step:hover {
  transform: translateX(4px);
}

.ks-single-service-page .ks-timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #C5A880;
  color: #080C14;
  font-family: var(--ks-font-mono);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.4);
}

.ks-single-service-page .ks-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

/* Dark FAQ Accordion on Single Page */
.ks-single-service-page .ks-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-single-service-page .ks-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(14, 20, 32, 0.6);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ks-single-service-page .ks-faq-item.is-open {
  border-color: rgba(197, 168, 128, 0.4);
}

.ks-single-service-page .ks-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--ks-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
}

.ks-single-service-page .ks-faq-icon {
  font-size: 1.4rem;
  color: #C5A880;
  transition: transform 0.25s ease;
}

.ks-single-service-page .ks-faq-item.is-open .ks-faq-icon {
  transform: rotate(45deg);
}

.ks-single-service-page .ks-faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #94A3B8;
  line-height: 1.8;
  font-size: 0.96rem;
}

.ks-single-service-page .ks-faq-item.is-open .ks-faq-answer {
  display: block;
}

/* Sidebar Sticky CTA Card */
.ks-single-service-page .ks-sticky-project-cta {
  background: linear-gradient(160deg, rgba(22, 30, 46, 0.85) 0%, rgba(13, 18, 27, 0.95) 100%);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(197, 168, 128, 0.15);
  position: sticky;
  top: calc(var(--ks-header-h, 72px) + 24px);
}

.ks-single-service-page .ks-spc-title {
  font-family: var(--ks-font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.ks-single-service-page .ks-spc-desc {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.ks-single-service-page .ks-spc-phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-size: 0.9rem;
}

.ks-single-service-page .ks-spc-phone-box a {
  color: #C5A880;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--ks-font-mono);
}




