@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #EBE4DA;
  background: #0B1628;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: #D4A574;
  color: #0B1628;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.24s; }
.fade-in.delay-3 { transition-delay: 0.36s; }

/* ========== TOP NAV BAR ========== */
.cs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(11, 22, 40, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(235, 228, 218, 0.05);
}

.cs-nav__back {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.5);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-nav__back:hover { color: #D4A574; }

.cs-nav__back-arrow {
  font-size: 18px;
  line-height: 1;
}

.cs-nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #EBE4DA;
  letter-spacing: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cs-nav__links {
  display: flex;
  gap: 28px;
}

.cs-nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.5);
  transition: color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.cs-nav__link:hover {
  color: #D4A574;
}

/* ========== CASE STUDY HERO ========== */
.cs-hero {
  padding: 160px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cs-hero__type {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 28px;
}

.cs-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: #EBE4DA;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.cs-hero__summary {
  font-size: 17px;
  color: rgba(235, 228, 218, 0.5);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

/* ========== META STRIP ========== */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 48px 0;
  border-top: 1px solid rgba(235, 228, 218, 0.06);
}


.cs-meta__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.3);
  margin-bottom: 8px;
}

.cs-meta__value {
  font-size: 15px;
  color: #EBE4DA;
  line-height: 1.5;
}

/* ========== HERO IMAGE ========== */
.cs-hero-image {
  max-width: 1000px;
  margin: 64px auto 0;
  padding: 0 48px;
}

.cs-hero-image__placeholder {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 228, 218, 0.06);
  gap: 8px;
}

.cs-hero-image__placeholder-icon {
  font-size: 40px;
  opacity: 0.5;
}

.cs-hero-image__placeholder-text {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.3);
}

/* ========== CONTENT SECTIONS ========== */
.cs-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px;
}

.cs-section {
  margin-bottom: 72px;
}

.cs-section:last-child {
  margin-bottom: 0;
}

.cs-section__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #D4A574;
  margin-bottom: 12px;
  display: block;
}

.cs-subsection__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #EBE4DA;
  margin-bottom: 12px;
  display: block;
}
.cs-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  color: #EBE4DA;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.cs-section__text {
  font-size: 15.5px;
  color: rgba(235, 228, 218, 0.55);
  line-height: 1.85;
  margin-bottom: 16px;
}

.cs-section__text:last-child {
  margin-bottom: 0;
}

/* Inline quote / callout */
.cs-callout {
  border-left: 3px solid #D4A574;
  padding: 16px 0 16px 28px;
  margin: 32px 0;
}

.cs-callout__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: rgba(235, 228, 218, 0.7);
  line-height: 1.6;
  font-style: italic;
}

/* ========== IMAGE PLACEHOLDERS ========== */
.cs-image {
  margin: 40px 0;
}

.cs-image--wide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 48px;
}

.cs-image__placeholder {
  width: 100%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 228, 218, 0.06);
  gap: 8px;
  overflow: hidden;
}

/* For actual images later */
.cs-image__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.cs-image__placeholder--tall {
  height: 360px;
}

.cs-image__placeholder--short {
  height: 260px;
}

.cs-image__placeholder-icon {
  font-size: 32px;
  opacity: 0.4;
}

.cs-image__placeholder-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.25);
}

/* Image grid (side-by-side) */
.cs-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.cs-image-grid .cs-image__placeholder {
  height: 280px;
}

/* Image with caption */
.cs-image__caption {
  font-size: 13px;
  color: rgba(235, 228, 218, 0.3);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.3px;
}

/* ========== KEY FINDINGS / METRICS ========== */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.cs-metric {
  background: rgba(235, 228, 218, 0.03);
  border: 1px solid rgba(235, 228, 218, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.cs-metric__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-metric__label {
  font-size: 13px;
  color: rgba(235, 228, 218, 0.45);
  line-height: 1.4;
}

/* ========== TAGS IN CASE STUDY ========== */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cs-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ========== NEXT PROJECT NAV ========== */
.cs-next {
  border-top: 1px solid rgba(235, 228, 218, 0.06);
  padding: 64px 48px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cs-next__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(235, 228, 218, 0.3);
  margin-bottom: 16px;
  display: block;
}

.cs-next__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: #EBE4DA;
  line-height: 1.3;
  transition: color 0.3s ease;
  display: inline-block;
}

.cs-next__title:hover {
  color: #D4A574;
}

.cs-next__arrow {
  display: block;
  margin-top: 16px;
  font-size: 24px;
  color: #D4A574;
}

/* ========== FOOTER ========== */
.cs-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(235, 228, 218, 0.04);
}

.cs-footer__text {
  font-size: 12px;
  color: rgba(235, 228, 218, 0.25);
  letter-spacing: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .cs-nav { padding: 16px 20px; }
  .cs-nav__logo { font-size: 22px; letter-spacing: 6px; }
  .cs-nav__back span:last-of-type { display: none; }
  .cs-nav__links { gap: 14px; }
  .cs-nav__link { font-size: 11px; letter-spacing: 1px; }
  .cs-hero { padding: 130px 20px 60px; }
  .cs-meta { padding: 40px 20px 0; grid-template-columns: 1fr 1fr; }
  .cs-hero-image { padding: 0 20px; }
  .cs-hero-image__placeholder { height: 240px; }
  .cs-content { padding: 60px 20px; }
  .cs-image--wide { padding: 0 20px; }
  .cs-image-grid { grid-template-columns: 1fr; }
  .cs-image-grid .cs-image__placeholder { height: 220px; }
  .cs-next { padding: 48px 20px 60px; }
}
