/* Paavani Properties — case study overrides and additions */

/* === Upgraded Hero === */
.cs-hero--paavani {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cs-hero-content {
  position: relative;
  z-index: 4;
}

.cs-hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #C41E3A);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.cs-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.cs-hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #B3B3B3;
}

.cs-hero-visual {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.cs-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* === Overview block (Role/Scope etc) === */
.cs-overview.cs-overview--block {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* === Result — large stat treatment === */
.cs-result {
  padding: 3.5rem 0;
  border-top: 1px solid #2A2A2A;
  border-bottom: 1px solid #2A2A2A;
  margin-bottom: 2rem;
  text-align: center;
}

.cs-result-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cs-result-number {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 500;
  color: var(--accent, #C41E3A);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cs-result-unit {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #F5F5F5;
  font-weight: 400;
  align-self: flex-end;
  padding-bottom: 0.35em;
}

.cs-result-detail {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #B3B3B3;
  max-width: 55ch;
  margin: 0 auto;
}

/* === Interactive Embed === */
.cs-interactive {
  margin-bottom: 2rem;
}

.cs-interactive-embed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(540px, 68vh, 900px);
  min-height: 540px;
  overflow: hidden;
  background: #111;
  margin-top: 1.5rem;
}

.cs-interactive-embed iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.cs-interactive-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #B3B3B3;
  background: #111;
}

.cs-interactive-loading[hidden] {
  display: none;
}

.cs-interactive-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #C41E3A;
  border-radius: 50%;
  animation: csSpin 0.8s linear infinite;
}

@keyframes csSpin {
  to { transform: rotate(360deg); }
}

.cs-interactive-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
}

.cs-interactive-note a {
  color: #B3B3B3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-interactive-note a:hover {
  color: #C41E3A;
  border-bottom-color: #C41E3A;
}

/* === Applied Everywhere Grid === */
.cs-applied {
  margin-bottom: 2rem;
}

.cs-applied-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-applied-grid > div {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.cs-applied-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Hero parallax === */
.cs-hero-visual--parallax img {
  transform: scale(1.12);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero-visual--parallax img {
    transform: none;
    will-change: auto;
  }
}

/* === Stats strip === */
.cs-stats {
  padding: 0 0 1.5rem;
}

.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid #2A2A2A;
  border-bottom: 1px solid #2A2A2A;
  padding: 1.75rem 0;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1rem;
  border-left: 1px solid #2A2A2A;
}

.cs-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.cs-stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #F5F5F5;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.cs-stat-label {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #B3B3B3;
}

/* === Process — stage diagram === */
.cs-process {
  margin: 0 0 2rem;
}

.cs-process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1.5rem;
}

.cs-process-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cs-process-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.cs-process-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: #C41E3A;
  line-height: 1;
  letter-spacing: -0.01em;
}

.cs-process-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #F5F5F5;
}

.cs-process-media {
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.cs-process-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-process-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #B3B3B3;
}

/* === Next project arrow === */
.cs-next-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-next-link:hover .cs-next-arrow {
  transform: translateX(5px);
}

/* === Reading progress rail === */
.cs-progress {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cs-progress-track {
  position: relative;
  width: 2px;
  height: min(40vh, 320px);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.cs-progress-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #C41E3A;
  transition: height 0.1s linear;
}

.cs-progress-dots {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-progress-dots a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.cs-progress-dots a span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}

.cs-progress-dots a:hover span {
  transform: scale(1.3);
}

.cs-progress-dots a.active span {
  background: #C41E3A;
}

@media (max-width: 1279px) {
  .cs-progress {
    display: none;
  }
}

/* === Mobile === */
@media (max-width: 900px) {
  .cs-process-steps {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .cs-hero--paavani {
    gap: 1.5rem;
  }

  .cs-applied-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cs-result {
    padding: 3rem 0;
  }

  .cs-interactive-embed {
    height: 62vh;
    min-height: 460px;
  }
}

@media (max-width: 700px) {
  .cs-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    padding: 1.5rem 0;
  }

  .cs-stat {
    border-left: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .cs-process-steps {
    gap: 2rem;
  }

  .cs-applied-grid {
    gap: 0.5rem;
  }
}
