/* Case Study / Portfolio Subpage styles */
body {
  margin: 0;
  background: #faf6f1;
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* ── Hero ── */
.cs-hero {
  position: relative;
  overflow: hidden;
}

.cs-hero__accent {
  display: flex;
  height: 6px;
}

.cs-hero__accent span {
  flex: 1;
  background: var(--primary-blue);
}

.cs-hero__accent span:nth-child(2) {
  background: #FF6B4A;
}

.cs-hero__accent span:nth-child(3) {
  background: var(--cta-accent);
}

.cs-hero__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #002f70;
}

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

/* ── Title Bar ── */
.cs-title {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 5vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid #e0dbd5;
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
}

.cs-title__name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin: 0;
}

.cs-title__meta {
  text-align: right;
  flex-shrink: 0;
}

.cs-title__category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 0.3rem;
}

.cs-title__date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* ── Objective ── */
.cs-objective {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
}

.cs-objective__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.1;
  margin: 0;
  font-style: italic;
}

.cs-objective__body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 1.5rem;
  max-width: 480px;
}

.cs-objective__body p:last-child {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #888;
}

/* ── Visual Gallery ── */
.cs-gallery {
  padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 1320px;
  margin: 0 auto;
}

.cs-gallery__item {
  overflow: hidden;
  background: #e8e4df;
}

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

.cs-gallery__item--wide {
  grid-column: 1 / -1;
}

.cs-gallery__item--tall {
  grid-row: span 2;
}

/* ── Typography System ── */
.cs-type {
  background: #fff;
  border-top: 1px solid #e0dbd5;
  border-bottom: 1px solid #e0dbd5;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem);
}

.cs-type > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.cs-type__header {
  margin-bottom: 2.5rem;
}

.cs-type__label {
  font-size: 0.95rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.cs-type__sublabel {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin: 0;
}

.cs-type__showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cs-type__description {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  max-width: 340px;
}

.cs-type__specimen {
  background: var(--primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  aspect-ratio: 1;
}

.cs-type__specimen--letter {
  font-size: 4.5rem;
  font-weight: 900;
}

.cs-type__specimen--number {
  font-size: 5rem;
  font-weight: 900;
}

/* ── Results / Stats ── */
.cs-results {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
  border-top: 3px solid var(--primary-blue);
  max-width: 1320px;
  margin: 0 auto;
}

.cs-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3vw, 3rem);
}

.cs-results__card {
  border-left: 3px solid var(--cta-accent);
  padding-left: 1.75rem;
}

.cs-results__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cta-accent);
  margin: 0 0 1rem;
}

.cs-results__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.cs-results__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #666;
  margin: 0 0 1.5rem;
  max-width: 280px;
}

.cs-results__stat {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--cta-accent);
  line-height: 1;
  margin: 0;
}

.cs-results__stat-unit {
  font-size: 1.5rem;
}

.cs-results__stat-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 0.5rem 0 0;
}

/* ── Back Link ── */
.cs-back {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 5rem) clamp(2rem, 3vw, 3rem);
  border-top: 1px solid #e0dbd5;
  max-width: 1320px;
  margin: 0 auto;
}

.cs-back__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-back__link:hover {
  color: var(--cta-accent);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .cs-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cs-title {
    align-items: flex-start;
  }

  .cs-title__meta {
    text-align: left;
  }

  .cs-objective {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-gallery {
    grid-template-columns: 1fr;
  }

  .cs-gallery__item--tall {
    grid-row: auto;
  }

  .cs-type__showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-type__specimen {
    aspect-ratio: 16 / 9;
    padding: 2rem;
  }

  .cs-results__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .cs-gallery {
    gap: 0.75rem;
  }

  .cs-type__specimen--letter {
    font-size: 3rem;
  }

  .cs-type__specimen--number {
    font-size: 3.5rem;
  }

  .cs-results__stat {
    font-size: 2.5rem;
  }
}
