/* =====================================================
   EMIL BLUM — CASE STUDY PAGE
   Editorial layout: cinematic hero, flexible gallery,
   credits, next project.
   ===================================================== */

/* ── Loading state ─────────────────────────────────── */
.cs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}

.cs-spinner {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(30, 30, 40, 0.1);
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: cs-spin 0.75s linear infinite;
}

@keyframes cs-spin {
  to { transform: rotate(360deg); }
}

.cs-loading-text {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 30, 40, 0.3);
}

/* ── Not found ─────────────────────────────────────── */
.cs-not-found {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 90vh;
  gap: 20px;
  padding-top: 80px;
}

.cs-not-found.is-visible { display: flex; }

.cs-not-found-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.25s var(--spring);
}

.cs-not-found-back:hover { gap: 14px; }

/* ── Main content ─────────────────────────────────── */
.cs-content { display: none; }
.cs-content.is-visible { display: block; }

/* ── Hero entrance animation ───────────────────────── */
@keyframes cs-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cs-content.is-visible .cs-eyebrow {
  animation: cs-fade-up 0.55s cubic-bezier(0.215, 0.61, 0.355, 1) both 0.05s;
}
.cs-content.is-visible .cs-title {
  animation: cs-fade-up 0.65s cubic-bezier(0.215, 0.61, 0.355, 1) both 0.13s;
}
.cs-content.is-visible .cs-subtitle {
  animation: cs-fade-up 0.55s cubic-bezier(0.215, 0.61, 0.355, 1) both 0.22s;
}
.cs-content.is-visible .cs-hero {
  animation: cs-fade-up 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) both 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  .cs-content.is-visible .cs-eyebrow,
  .cs-content.is-visible .cs-title,
  .cs-content.is-visible .cs-subtitle,
  .cs-content.is-visible .cs-hero { animation: none; }
}

/* ── TITLE BLOCK — centred, cream bg, above hero ─── */
.cs-title-block {
  text-align: center;
  padding: 120px var(--px-desktop) 64px;
  max-width: 840px;
  margin: 0 auto;
}

.cs-eyebrow {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}

.cs-title {
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.cs-subtitle {
  font-size: clamp(15px, 1.8vw, 20px);
  color: rgba(30, 30, 40, 0.5);
  line-height: 1.55;
  font-weight: 400;
}

/* ── HERO — full-bleed image, parallax ───────────── */
.cs-hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
}

/* Extra height (120% vs 110%) ensures the parallax range (±4% pct)
   never shifts the image enough to expose the dark background at the
   bottom edge of the container. */
.cs-hero-img {
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* Mobile: lock to 16:9, disable absolute parallax positioning */
@media (max-width: 900px) {
  .cs-hero {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .cs-hero-img {
    top: 0;
    height: 100%;
    will-change: auto;
  }
}

/* ── META BAR ──────────────────────────────────────── */
.cs-meta-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 56px;
  row-gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  position: relative;
}

.cs-meta-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--px-desktop);
  right: var(--px-desktop);
  height: 1px;
  background: rgba(30, 30, 40, 0.09);
}

.cs-meta-pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-meta-key {
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 30, 40, 0.35);
}

.cs-meta-val {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(30, 30, 40, 0.75);
  font-weight: 500;
}

.cs-meta-divider {
  display: none;
}

/* Solutions (tags) now rendered as plain comma-separated meta-val text */

/* ── LEAD TEXT ─────────────────────────────────────── */
.cs-lead {
  padding-top: 80px;
  padding-bottom: 80px;
}

.cs-lead-text {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: rgba(30, 30, 40, 0.82);
  max-width: 700px;
}

/* ── INFO ACCORDION ────────────────────────────────── */
.cs-info-accordion {
  position: relative;
}

.cs-info-accordion::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--px-mobile);
  right: var(--px-mobile);
  height: 1px;
  background: rgba(30, 30, 40, 0.09);
}

@media (min-width: 768px) {
  .cs-info-accordion::before {
    left: var(--px-desktop);
    right: var(--px-desktop);
  }
}

.cs-info-accordion::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--px-mobile);
  right: var(--px-mobile);
  height: 1px;
  background: rgba(30, 30, 40, 0.09);
}

@media (min-width: 768px) {
  .cs-info-accordion::after {
    left: var(--px-desktop);
    right: var(--px-desktop);
  }
}

.cs-info-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.cs-info-label {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s ease;
}

.cs-info-trigger:hover .cs-info-label,
.cs-info-accordion.is-open .cs-info-label {
  color: var(--maroon);
}

.cs-info-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(30, 30, 40, 0.18);
  border-radius: 2px;
  color: var(--dark);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cs-info-icon svg {
  transition: transform 0.4s var(--spring);
}

.cs-info-trigger:hover .cs-info-icon {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

.cs-info-accordion.is-open .cs-info-icon {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}

.cs-info-accordion.is-open .cs-info-icon svg {
  transform: rotate(45deg);
}

.cs-info-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* max-height on open is set dynamically in JS to match actual scrollHeight */

/* ── THREE COLUMNS ─────────────────────────────────── */
.cs-three-col {
  padding-top: 32px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* border now lives on .cs-info-accordion::before */

.cs-col-label {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 16px;
}

.cs-col-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(30, 30, 40, 0.62);
}

/* ── GALLERY v2 ────────────────────────────────────── */
/* Block-based system: full | grid | scroll | video     */
/* Each block reveals on scroll + large images parallax */

.cs-gallery {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

/* Spacing between blocks */
.cs-block {
  margin-bottom: 30px;
}
.cs-block:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .cs-block { margin-bottom: 14px; }
}

/* Scroll-reveal matches Featured page animation.
   Transition stays on the base rule so it persists when
   will-animate is swapped for is-visible by the observer. */
.cs-block {
  transition:
    opacity  0.85s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.85s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.cs-block.will-animate {
  opacity: 0;
  transform: translateY(48px);
}
.cs-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Full-width block ────────────────────────────── */
.cs-block-full {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px-desktop);
  position: relative;
}

.cs-full-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ── Grid block ──────────────────────────────────── */
.cs-block-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px-desktop);
}

.cs-grid-inner {
  align-items: start;
}
.cs-grid-inner--1 { }
.cs-grid-inner--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.cs-grid-inner--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: start;
}

.cs-grid-item {
  overflow: hidden;
  border-radius: 2px;
}

.cs-grid-item img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-item-caption {
  padding-top: 9px;
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 30, 40, 0.38);
}

/* ── Scroll (horizontal carousel) block ─────────── */
.cs-block-scroll {
  overflow: hidden;
}

.cs-scroll-header {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px-desktop);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-scroll-track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* scroll-padding matches the spacer pad width */
  scroll-padding-left: max(var(--px-desktop), calc((100vw - var(--max-w)) / 2 + var(--px-desktop)));
}
.cs-scroll-track::-webkit-scrollbar { display: none; }

/* Flex spacer aligns first/last items with content margin */
.cs-scroll-pad {
  flex: 0 0 max(var(--px-desktop), calc((100vw - var(--max-w)) / 2 + var(--px-desktop)));
  min-width: var(--px-desktop);
}

.cs-scroll-item {
  flex: 0 0 auto; /* width driven by image aspect ratio at fixed height */
  height: clamp(260px, 42vh, 520px);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 2px;
}
.cs-scroll-item img {
  display: block;
  height: 100%;
  width: auto;
}

.cs-scroll-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(30, 30, 40, 0.18);
  border-radius: 2px;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cs-scroll-btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
}
.cs-scroll-btn:disabled { opacity: 0.22; cursor: default; }
.cs-scroll-btn:disabled:hover {
  background: transparent;
  border-color: rgba(30, 30, 40, 0.18);
  color: var(--dark);
}

/* ── Video block ─────────────────────────────────── */
.cs-block-video {
  /* full-width, no side padding — matches video360 */
}

.cs-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0f;
  overflow: hidden;
  cursor: pointer;
}

.cs-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.35s ease;
}
.cs-video-wrap:hover .cs-video-thumb { opacity: 0.85; }

/* Pre-play overlay — centred column, same as 360° */
.cs-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
}

.cs-video-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cs-video-play-ring {
  width: 68px;
  height: 68px;
  background: rgba(255, 251, 243, 0.12);
  border: 1px solid rgba(255, 251, 243, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: transform 0.3s var(--spring), background 0.3s ease;
}
.cs-video-wrap:hover .cs-video-play-ring {
  transform: scale(1.1);
  background: rgba(255, 251, 243, 0.2);
}

.cs-video-badge {
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 251, 243, 0.55);
  pointer-events: none;
}

/* Loaded state */
.cs-video-wrap.is-playing .cs-video-thumb,
.cs-video-wrap.is-playing .cs-video-overlay { display: none; }

.cs-video-wrap iframe,
.cs-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.cs-video-wrap.is-playing iframe,
.cs-video-wrap.is-playing video { display: block; }

/* ── 360° video block ────────────────────────────── */
.cs-block-video360 {
  /* full-width, no side padding */
}

.cs-360-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0f;
  overflow: hidden;
}

.cs-360-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 0.35s ease;
}
.cs-360-inner:hover .cs-360-thumb { opacity: 0.85; }

/* Pre-play overlay */
.cs-360-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
}

.cs-360-play-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cs-360-play-btn:disabled { opacity: 0.6; cursor: wait; }

.cs-360-play-ring {
  width: 68px;
  height: 68px;
  background: rgba(255, 251, 243, 0.12);
  border: 1px solid rgba(255, 251, 243, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: transform 0.3s var(--spring), background 0.3s ease;
}
.cs-360-inner:hover .cs-360-play-ring {
  transform: scale(1.1);
  background: rgba(255, 251, 243, 0.2);
}

.cs-360-badge {
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 251, 243, 0.55);
}

/* Loading spinner (replaces play ring while scripts load) */
.cs-360-loading {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 251, 243, 0.2);
  border-top-color: rgba(255, 251, 243, 0.7);
  border-radius: 50%;
  animation: spin360 0.7s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }

/* Controls bar — auto-hides; shown via .is-visible */
.cs-360-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cs-360-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Scrubber row */
.cs-360-scrub-row {
  padding: 6px 0 8px;
}
.cs-360-scrub-track {
  position: relative;
  height: 3px;
  background: rgba(255, 251, 243, 0.25);
  border-radius: 2px;
  cursor: pointer;
}
.cs-360-scrub-track:hover { height: 4px; }
.cs-360-scrub-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--cream);
  border-radius: 2px;
  pointer-events: none;
}
.cs-360-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cs-360-scrub-track:hover .cs-360-scrub-thumb { opacity: 1; }

/* Button row */
.cs-360-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cs-360-btn-left,
.cs-360-btn-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cs-360-time {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 251, 243, 0.6);
  white-space: nowrap;
  padding: 0 4px;
  user-select: none;
}

.cs-360-hint-text {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 251, 243, 0.35);
  transition: opacity 0.6s ease;
  pointer-events: none;
  user-select: none;
}

.cs-360-icon-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 251, 243, 0.7);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.cs-360-icon-btn:hover {
  color: var(--cream);
  background: rgba(255, 251, 243, 0.1);
}
.cs-360-icon-btn.is-active {
  color: var(--cream);
  background: rgba(255, 251, 243, 0.15);
}

.cs-360-caption {
  padding: 12px var(--px-desktop) 0;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(30, 30, 40, 0.45);
  max-width: var(--max-w);
  margin-inline: auto;
  text-align: center;
}

.cs-360-caption-icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-inline: 2px;
  color: rgba(30, 30, 40, 0.6);
}

/* Desktop shows drag hint; mobile shows gyro hint */
.cs-360-caption-mobile { display: none; }

@media (max-width: 768px) {
  .cs-360-caption { padding-inline: var(--px-mobile); }
  .cs-360-caption-desktop { display: none; }
  .cs-360-caption-mobile  { display: block; }
}

/* ── Hotspot markers ─────────────────────────────── */
.cs-hotspot-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
}

.cs-hotspot-pulse {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 251, 243, 0.4);
  animation: hs-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes hs-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}

.cs-hotspot-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 2px rgba(255, 251, 243, 0.35), 0 2px 8px rgba(30,30,40,0.3);
}

.cs-hotspot-panel {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 240px;
  padding: 14px 16px;
  background: rgba(255, 251, 243, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 30, 40, 0.07);
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(30, 30, 40, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--spring);
  text-align: left;
  white-space: normal;
  color: var(--dark);
}

/* Flip panel below when too close to top */
.cs-hotspot-btn.panel-below .cs-hotspot-panel {
  bottom: auto;
  top: calc(100% + 4px);
  transform: translateX(-50%) translateY(-8px);
}
.cs-hotspot-btn.panel-below:hover .cs-hotspot-panel,
.cs-hotspot-btn.panel-below.is-open .cs-hotspot-panel {
  transform: translateX(-50%) translateY(0);
}

.cs-hotspot-btn:hover .cs-hotspot-panel,
.cs-hotspot-btn.is-open .cs-hotspot-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cs-hotspot-hl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(30, 30, 40, 0.08);
}
.cs-hotspot-label {
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
}
.cs-hotspot-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
}
.cs-hotspot-body {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(30, 30, 40, 0.58);
  margin: 0;
}

/* ── CREDITS & AWARDS ──────────────────────────────── */
.cs-footer {
  padding-top: 72px;
  padding-bottom: 88px;
  position: relative;
}

.cs-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--px-desktop);
  right: var(--px-desktop);
  height: 1px;
  background: rgba(30, 30, 40, 0.09);
}

.cs-footer-left {
  display: flex;
  gap: 52px;
  width: 30%;
}

.cs-credits-col {
  flex: 1 1 0;
  min-width: 0;
}

.cs-credits-inner {
  width: 100%;
}

.cs-section-label {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 20px;
}

.cs-credit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 30, 40, 0.06);
}

.cs-credit-role {
  font-size: 12px;
  color: rgba(30, 30, 40, 0.38);
  width: 150px;
  flex: 0 0 150px;
  line-height: 1.4;
}

.cs-credit-name {
  font-size: 13px;
  color: rgba(30, 30, 40, 0.75);
  font-weight: 500;
  line-height: 1.4;
}

.cs-credit-name span { display: block; }

.cs-award-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 30, 40, 0.06);
  font-size: 13px;
  color: rgba(30, 30, 40, 0.7);
  line-height: 1.5;
}


/* ── NEXT PROJECT ──────────────────────────────────── */
.cs-next {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: var(--dark);
  text-decoration: none;
}

.cs-next .container {
  position: relative;
  z-index: 1;
}

.cs-next-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.cs-next-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.cs-next:hover .cs-next-bg { opacity: 1; }

.cs-next-label {
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 251, 243, 0.35);
  margin-bottom: 10px;
}

.cs-next-title {
  display: block;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .cs-footer-left { width: 50%; }
}

@media (max-width: 640px) {
  .cs-footer-left { width: 100%; }
}

@media (max-width: 900px) {
  .cs-three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .cs-block-full  { padding-inline: var(--px-mobile); }
  .cs-block-grid  { padding-inline: var(--px-mobile); }
  .cs-scroll-header { padding-inline: var(--px-mobile); }
  /* Mobile: natural proportions — fixed width, auto height */
  .cs-scroll-pad {
    flex: 0 0 var(--px-mobile);
    min-width: var(--px-mobile);
  }

  /* Dividers follow mobile padding */
  .cs-meta-bar::after,
  .cs-three-col::before,
  .cs-footer::before {
    left: var(--px-mobile);
    right: var(--px-mobile);
  }

  /* 2-col grids stack */
  .cs-grid-inner--2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  /* 3-col becomes 2-col */
  .cs-grid-inner--3 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Fixed width on mobile so images show at natural proportions */
  .cs-scroll-item {
    flex: 0 0 min(320px, 82vw);
    height: auto;
  }
  .cs-scroll-item img {
    height: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* Hero height is already locked to 16:9 by the ≤900px rule — no override needed */

  .cs-title-block {
    padding: 120px var(--px-mobile) 48px;
  }

  .cs-three-col { grid-template-columns: 1fr; gap: 36px; }

  /* 3-col stacks to 1 on small phones */
  .cs-grid-inner--3 { grid-template-columns: 1fr; }

  .cs-footer-left { flex-direction: column; gap: 40px; width: 100%; }
  .cs-credits-col { flex: 1 1 100%; }
  .cs-credit-item { flex-direction: column; gap: 4px; }
  .cs-credit-role { flex: 0 0 auto; width: auto; min-width: 0; }
  /* Meta bar: stack vertically on small screens */
  .cs-meta-bar {
    flex-direction: column;
    gap: 16px;
  }

  /* Carousel captions are clipped by overflow:hidden on desktop;
     on mobile height:auto exposes them — hide until copy is finalised */
  .cs-item-caption { display: none; }
}
