/* ==========================================================================
   ARCRUX ULTRA-PREMIUM CASE STUDY DESIGN SYSTEM
   Theme: Minimalist Light Studio Showcase & Architectural Telemetry
   Design System: Core Arcrux Tokens (Geist, Inter, Monospace & Arcrux Brand #EF4023)
   ========================================================================== */

:root {
  --cs-font-heading: var(--f-display, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --cs-font-body: var(--f-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --cs-font-mono: var(--f-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);

  /* Arcrux Color Palette */
  --cs-brand: var(--c-brand, #EF4023);
  --cs-brand-hover: var(--c-brand-hover, #d63218);
  --cs-brand-subtle: rgba(239, 64, 35, 0.08);
  --cs-brand-border: rgba(239, 64, 35, 0.22);
  --cs-bg-canvas: #ffffff;
  --cs-bg-surface: #ffffff;
  --cs-bg-subtle: #f8fafc;
  --cs-border-subtle: rgba(0, 0, 0, 0.07);
  --cs-border-crisp: #e2e8f0;
  --cs-text-primary: #111111;
  --cs-text-secondary: #444444;
  --cs-text-muted: #64748b;
  --cs-text-faint: #94a3b8;

  /* Layout & Elevations */
  --cs-radius-sm: 8px;
  --cs-radius-md: 14px;
  --cs-radius-lg: 20px;
  --cs-radius-xl: 24px;
  --cs-shadow-card: 0 16px 40px -12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  --cs-shadow-frame: 0 28px 70px -16px rgba(15, 23, 42, 0.10), 0 0 1px 1px rgba(15, 23, 42, 0.04);
}

/* Base Case Study Scope */
.cs-modern-scope {
  font-family: var(--cs-font-body);
  background-color: var(--cs-bg-canvas);
  color: var(--cs-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cs-modern-scope * {
  box-sizing: border-box;
}

/* ==========================================================================
   1. HERO SECTION (Strict 100vh / 100dvh Viewport Fit)
   ========================================================================== */
.cs-modern-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #0c0d10;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  color: #ffffff;
  padding-top: calc(var(--nav-h, 72px) + 16px);
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.cs-modern-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.72) 0%, rgba(12, 13, 16, 0.42) 40%, rgba(12, 13, 16, 0.90) 100%),
              radial-gradient(ellipse at 80% 25%, rgba(239, 64, 35, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.cs-modern-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--max-w, 1200px) + (2 * var(--pad-x, 40px)));
  margin: 0 auto;
  padding: 0 var(--pad-x, 40px) clamp(20px, 3vh, 36px);
}

.cs-modern-hero-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.cs-modern-hero-copy {
  max-width: 840px;
}

.cs-modern-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cs-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(10px, 1.5vh, 16px);
}

.cs-modern-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-brand);
  box-shadow: 0 0 8px var(--cs-brand);
}

.cs-modern-hero-title {
  font-family: var(--cs-font-heading);
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 0 clamp(10px, 1.4vh, 16px);
}

.cs-modern-hero-subtitle {
  font-family: var(--cs-font-body);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 660px;
  margin: 0;
  letter-spacing: -0.01em;
}

.cs-modern-hero-actions {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.cs-modern-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: var(--cs-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: #ffffff;
  color: #0d0d0d;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cs-modern-hero-btn:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18);
}

.cs-modern-hero-btn-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.cs-modern-hero-btn:hover .cs-modern-hero-btn-arrow {
  transform: translate(2px, -2px);
}

/* Proof Strip Bottom Row */
.cs-modern-hero-proof-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: clamp(14px, 1.8vh, 20px);
  margin-top: clamp(18px, 2.5vh, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cs-modern-proof-tag-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cs-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.cs-modern-proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-brand);
  box-shadow: 0 0 8px var(--cs-brand);
  animation: cs-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.cs-modern-proof-stats-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.cs-modern-proof-stat {
  display: flex;
  flex-direction: column;
}

.cs-modern-proof-stat-val {
  font-family: var(--cs-font-heading);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cs-modern-proof-stat-lbl {
  font-family: var(--cs-font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

/* ==========================================================================
   2. CONTENT CONTAINER & TYPOGRAPHY ALIGNED TO ARCRUX
   ========================================================================== */
.cs-modern-container {
  width: 100%;
  max-width: calc(var(--max-w, 1200px) + (2 * var(--pad-x, 40px)));
  margin: 0 auto;
  padding: 0 var(--pad-x, 40px);
}

.cs-showcase-section {
  padding: 96px 0;
  position: relative;
}

.cs-showcase-section.alt-bg {
  background-color: var(--cs-bg-subtle);
  border-top: 1px solid var(--cs-border-subtle);
  border-bottom: 1px solid var(--cs-border-subtle);
}

.cs-section-header {
  max-width: 820px;
  margin-bottom: 40px;
}

.cs-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cs-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-brand);
  margin-bottom: 14px;
}

.cs-section-title {
  font-family: var(--cs-font-heading);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cs-text-primary);
  margin: 0 0 16px;
}

.cs-section-desc {
  font-family: var(--cs-font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--cs-text-secondary);
  margin: 0;
}

/* ==========================================================================
   3. ARCHITECTURAL BRIEFING SPLIT (BEAT 01)
   ========================================================================== */
.cs-overview-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 56px;
}

.cs-specs-card {
  background: var(--cs-bg-surface);
  border: 1px solid var(--cs-border-crisp);
  border-radius: var(--cs-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--cs-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cs-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cs-border-subtle);
}

.cs-spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cs-spec-label {
  font-family: var(--cs-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
}

.cs-spec-value {
  font-family: var(--cs-font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cs-text-primary);
  text-align: right;
}

.cs-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--cs-bg-surface);
  border: 1px solid var(--cs-border-crisp);
  border-radius: var(--cs-radius-lg);
  padding: 28px 32px;
  box-shadow: var(--cs-shadow-card);
}

/* ==========================================================================
   4. MOCKUP FRAMES & FEATURE SPLITS
   ========================================================================== */
.cs-mockup-frame {
  position: relative;
  border-radius: var(--cs-radius-xl);
  overflow: hidden;
  background: var(--cs-bg-surface);
  border: 1px solid var(--cs-border-crisp);
  box-shadow: var(--cs-shadow-frame);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.cs-mockup-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 80px -16px rgba(15, 23, 42, 0.14), 0 0 1px 1px rgba(15, 23, 42, 0.06);
}

.cs-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-mockup-frame:hover .cs-mockup-img {
  transform: scale(1.012);
}

/* Split Showcase Feature Layout */
.cs-feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.cs-feature-split.reverse {
  direction: rtl;
}

.cs-feature-split.reverse > * {
  direction: ltr;
}

.cs-feature-content {
  display: flex;
  flex-direction: column;
}

.cs-feature-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cs-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--cs-border-crisp);
  font-family: var(--cs-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--cs-text-secondary);
}

.cs-pill-badge.accent {
  background: var(--cs-brand-subtle);
  border-color: var(--cs-brand-border);
  color: var(--cs-brand);
  font-weight: 600;
}

/* ==========================================================================
   5. VERIFIED ROI SCORECARD (BEAT 06)
   ========================================================================== */
.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.cs-impact-card {
  background: var(--cs-bg-surface);
  border: 1px solid var(--cs-border-crisp);
  border-radius: var(--cs-radius-lg);
  padding: 32px 24px;
  box-shadow: var(--cs-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cs-impact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.10);
}

.cs-impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cs-brand), #ff7a59);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cs-impact-card:hover::before {
  opacity: 1;
}

.cs-impact-num {
  font-family: var(--cs-font-heading);
  font-size: clamp(38px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cs-brand);
  margin-bottom: 10px;
}

.cs-impact-title {
  font-family: var(--cs-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--cs-text-primary);
  margin-bottom: 6px;
}

.cs-impact-desc {
  font-family: var(--cs-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cs-text-muted);
  margin: 0;
}

/* Executive Endorsement Quote Card */
.cs-quote-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--cs-border-crisp);
  border-radius: var(--cs-radius-xl);
  padding: 40px 48px;
  box-shadow: var(--cs-shadow-frame);
  position: relative;
}

.cs-quote-text {
  font-family: var(--cs-font-heading);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--cs-text-primary);
  margin: 0 0 20px;
}

.cs-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-quote-avatar-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cs-brand-subtle);
  color: var(--cs-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cs-font-mono);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--cs-brand-border);
}

.cs-quote-meta {
  display: flex;
  flex-direction: column;
}

.cs-quote-name {
  font-family: var(--cs-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-text-primary);
}

.cs-quote-role {
  font-family: var(--cs-font-body);
  font-size: 12.5px;
  color: var(--cs-text-muted);
}

/* ==========================================================================
   6. PROJECT PAGINATION BAR
   ========================================================================== */
.cs-project-nav-bar {
  padding: 56px 0 72px;
  background: var(--cs-bg-canvas);
  border-top: 1px solid var(--cs-border-crisp);
}

.cs-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cs-nav-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease;
  max-width: 45%;
}

.cs-nav-item:hover {
  transform: translateY(-2px);
}

.cs-nav-item.next {
  text-align: right;
  align-items: flex-end;
}

.cs-nav-sub {
  font-family: var(--cs-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  margin-bottom: 6px;
}

.cs-nav-heading {
  font-family: var(--cs-font-heading);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  color: var(--cs-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-nav-item:hover .cs-nav-heading {
  color: var(--cs-brand);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .cs-overview-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cs-specs-grid,
  .cs-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-feature-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cs-modern-hero-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cs-modern-hero {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 110px 0 32px;
  }

  .cs-modern-proof-stats-right {
    gap: 20px;
  }

  .cs-specs-grid,
  .cs-impact-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cs-quote-card {
    padding: 28px 20px;
  }

  .cs-nav-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cs-nav-item,
  .cs-nav-item.next {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
  }
}
