/* ==========================================================================
   Case Study Page — Elite Architectural Layout
   ========================================================================== */

.case-study-page {
  background-color: var(--color-white);
}

/* ---- Hero Section ---- */

.cs-hero {
  padding-top: 180px; /* Elegant spacing below desktop header, matching other heroes */
  padding-bottom: 160px;
  background: #0f172a; /* Dark base for image background */
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Default text to white for dark hero */
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Soft blend with background */
  filter: grayscale(100%) brightness(0.8); /* Premium monochrome feel */
  transition: transform 10s ease-out;
}

.cs-hero:hover .cs-hero__bg img {
  transform: scale(1.1);
}

.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
              rgba(15, 23, 42, 0.8) 0%, 
              rgba(15, 23, 42, 0.4) 50%, 
              rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.cs-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cs-hero__kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #087fff;
  margin-bottom: 16px;
}

.cs-hero__title {
  font-family: var(--font-family-heading);
  font-size: clamp(4rem, 12vw, 10rem); /* Even larger for hero presence */
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #ffffff; /* White text for visibility over image */
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cs-hero__category {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #087fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-hero__category::before {
  content: "";
  width: 40px;
  height: 2px;
  background: currentColor;
  opacity: 0.3;
}

/* ---- Content Matrix ---- */

.cs-content {
  padding-block: 160px; /* Massive spacing for premium feel */
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 120px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .cs-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cs-intro-block {
  grid-column: 1 / -1;
  max-width: 800px;
}

.cs-intro-text {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 500;
}

.cs-block {
  position: relative;
}

.cs-block__label {
  display: block;
  font-family: "JetBrains Mono", monospace; /* Monospace for technical feel if available, else fallback */
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 32px;
}

.cs-block__title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-bottom: 32px;
  line-height: 1;
}

.cs-block__body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
}

.cs-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.cs-block__list-item {
  position: relative;
  padding-left: 32px;
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.5;
}

.cs-block__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 2px;
  background: #087fff;
}

/* ---- Visual Components ---- */

.cs-visual-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .cs-visual-row {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.cs-image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.cs-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.cs-image-container:hover .cs-image {
  transform: scale(1.05);
}

.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cs-metric-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(8, 127, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.cs-metric-card:hover {
  border-color: #087fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(8, 127, 255, 0.1);
}

.cs-metric-value {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #087fff;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

/* Quote Block */
.cs-quote {
  grid-column: 1 / -1;
  padding: 80px;
  background: #f8fafc;
  border-radius: 40px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(8, 127, 255, 0.05);
  margin-block: 40px;
}

.cs-quote::before {
  content: "“";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  font-family: var(--font-family-heading);
  color: rgba(8, 127, 255, 0.1);
  line-height: 1;
}

.cs-quote__text {
  font-size: 2rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cs-quote__author {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Campaign Showcase (Slide Deck) ---- */

.cs-showcase {
  background: #060d1c;
  padding-block: 160px;
  color: #ffffff;
  position: relative;
}

.cs-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(8, 127, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(8, 127, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.4;
}

.cs-showcase__header {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cs-showcase__title {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 0.9;
  color: #ffffff; /* Explicitly set to white */
}

.cs-showcase__sub {
  color: rgba(255, 255, 255, 0.7); /* Increased opacity for better legibility */
  font-size: 1.125rem;
}

.cs-deck-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1;
}

/* Browser Frame Decoration */
.cs-deck-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.cs-deck-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cs-deck-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cs-deck-placeholder__icon {
  width: 80px;
  height: 80px;
  color: #087fff;
  opacity: 0.8;
}

/* ---- Actions ---- */

.cs-actions {
  padding-block: 100px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .cs-hero {
    padding-top: 130px; /* Elegant spacing below mobile header, matching other heroes */
  }
  .cs-hero__title {
    font-size: 4rem;
  }
  .cs-showcase {
    padding-block: 80px;
  }
  .cs-deck-container {
    border-radius: 16px;
  }
}
