/* ============================================================
   XO8 MEDIA - case.css  (ZAMNA case study)
   ============================================================ */

/* ---------- hero ---------- */
.case-hero { padding: 170px var(--pad) 0; position: relative; z-index: 1; }
.case-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; opacity: 0; animation: xoFade 1s ease 0.1s forwards; }
.case-tag .eyebrow.dim { color: var(--dim); }

.case-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(70px, 13vw, 240px); line-height: 0.9; letter-spacing: 0.005em; color: var(--text); }

/* "rule" hero variant: red bar + subtitle */
.case-rule { display: flex; align-items: center; gap: 22px; margin-top: 30px; opacity: 0; animation: xoFade 1s ease 0.35s forwards; }
.case-rule-bar { width: 64px; height: 3px; background: var(--red); flex: 0 0 auto; }
.case-subtitle { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 38px); line-height: 1; color: var(--text); }

.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--line-2); margin-top: 56px; padding: 26px 0 0; opacity: 0; animation: xoFade 1.2s ease 0.5s forwards; }
.case-meta-key { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.26em; color: var(--dim); margin-bottom: 10px; }
.case-meta-val { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--text); }

/* ---------- hero media ---------- */
.case-hero-media { position: relative; z-index: 1; margin-top: 64px; height: 72vh; overflow: hidden; }
.case-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.case-hero-media .case-video { filter: saturate(0.85) brightness(0.9); }
.case-hero-media-veil { position: absolute; inset: 0; background: linear-gradient(rgba(12,11,10,0.3), transparent 30%, transparent 70%, rgba(12,11,10,0.55)); }
.case-media-label { position: absolute; bottom: 18px; left: var(--pad); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted-2); }

/* ---------- brief ---------- */
.case-brief { padding: 160px var(--pad); position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.case-brief .eyebrow { display: block; margin-bottom: 22px; }
.case-brief-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; color: var(--text); }
.case-brief-body p { font-size: 14.5px; font-weight: 300; line-height: 1.9; color: var(--muted); margin-bottom: 18px; }
.case-brief-body p:nth-of-type(2) { margin-bottom: 34px; }

/* ---------- stats (smaller than home) ---------- */
.stats--case .stat { padding: 64px clamp(20px, 3vw, 48px); }
.stats--case .stat-num { font-size: clamp(50px, 5.5vw, 100px); }

/* ---------- gallery ---------- */
.case-gallery { padding: 140px var(--pad); position: relative; z-index: 1; }
.case-gallery .eyebrow { display: block; margin-bottom: 50px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.case-shot { position: relative; overflow: hidden; background: var(--panel); }
.case-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05) brightness(0.85); }
.case-shot-veil { position: absolute; inset: 0; background: linear-gradient(rgba(12,11,10,0.05), rgba(12,11,10,0.4)); }
.case-shot-label { position: absolute; bottom: 16px; left: 18px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--text); }
.case-shot--wide { grid-column: 1 / -1; height: clamp(280px, 52vw, 640px); }
.case-shot--tall { aspect-ratio: 4 / 5; }

/* ---------- film ---------- */
.case-film { position: relative; z-index: 1; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; border-top: 1px solid var(--line); }
.case-film .case-video { filter: saturate(0.7) contrast(1.08) brightness(0.65); }
.case-film-veil { position: absolute; inset: 0; background: linear-gradient(rgba(12,11,10,0.55), rgba(12,11,10,0.2) 50%, rgba(12,11,10,0.85)); }
.case-film-body { position: relative; padding: 0 var(--pad) 90px; }
.case-film-body .eyebrow { display: block; margin-bottom: 26px; }
.case-film-line { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5vw, 90px); line-height: 1; color: var(--text); max-width: 1100px; text-shadow: 0 2px 50px rgba(12,11,10,0.7); }
.case-film-line span { color: var(--red); }

/* ---------- outcome ---------- */
.case-outcome { padding: 180px var(--pad); position: relative; z-index: 1; max-width: 1500px; }
.case-outcome .eyebrow { display: block; margin-bottom: 44px; }
.case-quote { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 80px); line-height: 1.08; color: var(--text); }

/* ---------- next case ---------- */
.next-case { display: block; border-top: 1px solid var(--line-2); position: relative; z-index: 1; overflow: hidden; }
.next-case-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 80px var(--pad); transition: background 0.4s ease; }
.next-case-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--dim); margin-bottom: 18px; }
.next-case-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 7vw, 130px); line-height: 0.95; color: var(--muted); transition: color 0.3s linear; }
.next-case-arrow { font-size: clamp(32px, 4vw, 64px); color: var(--red); opacity: 0.4; transform: translateX(-10px); transition: opacity 0.35s var(--expo), transform 0.35s var(--expo); }

/* ---------- footer ---------- */
.case-footer { border-top: 1px solid var(--line); padding: 20px var(--pad); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--dim); position: relative; z-index: 1; }
.case-footer a { color: var(--dim); transition: color 0.3s; }
.case-footer a:hover { color: var(--muted); }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .case-brief { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-shot--wide { grid-column: auto; }
}
