/* ── PROJECT / CASE STUDY STYLES ── */

.nav-back {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }

/* ─── 1. FULL SCREEN HERO ─── */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cs-hero-bg img,
.cs-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 70%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.cs-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 64px 88px;
  max-width: 1000px;
}
.cs-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cs-hero-brand::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.cs-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 136px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.cs-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey6);
}
.cs-hero-meta-dot {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── 2. BRIEF ─── */
.cs-brief {
  background: var(--grey1);
  padding: 80px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cs-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}
.cs-section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.cs-section-label span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.cs-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.cs-brief-item {
  background: var(--grey2);
  padding: 36px 32px;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.cs-brief-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.cs-brief-value {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.85;
}

/* ─── 3. THE WORK ─── */
.cs-work {
  background: var(--black);
  padding: 80px 64px;
}
.cs-work-body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.9;
  max-width: 640px;
  margin: 6px 0 0;
  letter-spacing: 0.01em;
}
.cs-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--grey2);
  margin: 48px 0 4px;
  overflow: hidden;
  position: relative;
}
.cs-video-wrap iframe,
.cs-video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Portrait (9:16) video — crop to fill 16:9 frame */
.cs-video-wrap.portrait video {
  object-fit: cover;
}

/* Mute toggle button */
.video-mute-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.video-mute-btn:hover {
  background: rgba(201,168,76,0.25);
  border-color: rgba(201,168,76,0.6);
}
.video-mute-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cs-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey4);
}
.cs-stills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.cs-stills.count-4 { grid-template-columns: repeat(4, 1fr); }
.cs-stills.count-6 { grid-template-columns: repeat(3, 1fr); }
.cs-stills-item {
  aspect-ratio: 16/9;
  background: var(--grey2);
  overflow: hidden;
  position: relative;
}
.cs-stills-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.cs-stills-item:hover img { transform: scale(1.05); }
.cs-stills-item:empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grey2);
}

/* ─── 4. RESULTS ─── */
.cs-results {
  background: var(--grey1);
  padding: 80px 64px;
}
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.cs-result-item {
  background: var(--grey2);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.cs-result-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
}
.cs-result-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.cs-result-number span { color: var(--gold); }
.cs-result-label {
  font-size: 12px;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.55;
}

/* ─── 5. NEXT PROJECT ─── */
.cs-next {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  height: 40vh;
  min-height: 300px;
}
.cs-next-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cs-next-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
  filter: brightness(0.35);
}
.cs-next:hover .cs-next-bg img {
  transform: scale(1.05);
  filter: brightness(0.45);
}
.cs-next-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.cs-next-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-next-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.cs-next-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  color: var(--white);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.cs-next-arrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  color: var(--gold);
  transition: transform 0.35s ease;
  line-height: 1;
}
.cs-next:hover .cs-next-arrow { transform: translateX(14px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cs-hero-content  { padding: 0 40px 72px; }
  .cs-brief         { padding: 64px 40px; }
  .cs-work          { padding: 64px 40px; }
  .cs-work-body     { font-size: 14px; }
  .cs-results       { padding: 64px 40px; }
  .cs-next-content  { padding: 0 40px; }
}
@media (max-width: 768px) {
  .cs-hero-content  { padding: 0 24px 56px; }
  .cs-brief         { padding: 56px 24px; }
  .cs-brief-grid    { grid-template-columns: 1fr; }
  .cs-work          { padding: 56px 24px; }
  .cs-stills        { grid-template-columns: 1fr 1fr; }
  .cs-stills.count-4 { grid-template-columns: 1fr 1fr; }
  .cs-stills.count-6 { grid-template-columns: 1fr 1fr; }
  .cs-results       { padding: 56px 24px; }
  .cs-results-grid  { grid-template-columns: 1fr; }
  .cs-next-content  { padding: 0 24px; flex-direction: column; justify-content: center; gap: 16px; }
  .cs-next-arrow    { align-self: flex-end; }
}
@media (max-width: 480px) {
  .cs-hero-title { font-size: clamp(32px, 12vw, 60px); }
  .cs-stills     { grid-template-columns: 1fr; }
}

/* ── Project page mobile ── */
@media (max-width: 640px) {
  .cs-hero { min-height: 100svh; }
  .cs-hero-title { font-size: clamp(36px, 13vw, 80px); }
  .cs-hero-content { padding: 0 20px 56px; }

  .cs-brief { padding: 48px 20px; }
  .cs-brief-grid { grid-template-columns: 1fr; gap: 2px; }

  .cs-work { padding: 48px 20px; }
  .cs-video-wrap {
    margin: 32px -20px 4px;
    width: calc(100% + 40px);
  }
  .cs-video-wrap video {
    object-fit: cover;
  }
  .cs-stills,
  .cs-stills.count-4,
  .cs-stills.count-6 {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .cs-results { padding: 48px 20px; }
  .cs-results-grid { grid-template-columns: 1fr; gap: 2px; }

  .cs-next-content { padding: 0 20px; }
  .cs-next-title { font-size: clamp(32px, 9vw, 56px); }
}

/* ── Touch targets on project pages ── */
@media (pointer: coarse) {
  .cs-next { min-height: 260px; }
  .nav-back { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── Gold line draw on project pages ── */
.cs-section-label::before {
  width: 0;
  transition: width 0.6s ease 0.1s;
}
.cs-section-label.line-drawn::before { width: 28px; }
