/* ==========================================================
   LEVR Studios — case study pages (site/work/*.html)
   Loaded AFTER style.css, so it reuses the same colors, fonts
   and buttons. Only layout that case studies need lives here.
   ========================================================== */

/* ---------- Top of the page: title, intro, project facts ---------- */
.case-hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.case-hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; max-width: 900px; }
.case-lead { font-size: 20px; color: var(--text-soft); max-width: 760px; }

/* Facts: a row of label / value pairs that wraps on small screens */
.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 32px; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--border-strong);
}
.case-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 4px 0 0; font-size: 16px; }

/* ---------- Big photo ---------- */
.case-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
/* height: auto keeps the photo's real shape. Without it, the height written in
   the HTML (e.g. height="1333") stays fixed while the width shrinks, which squashes it. */
.case-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.case-figure figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Text sections: heading on the left, text on the right ---------- */
.case-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 64px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--border); }
.case-section h2 { font-size: clamp(26px, 3.4vw, 34px); }
.case-text { display: flex; flex-direction: column; gap: 16px; font-size: 18px; color: var(--text-soft); max-width: 680px; }

/* Numbered steps (the "approach" section) */
.case-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 20px; }
.case-steps li { counter-increment: step; position: relative; padding-left: 52px; }
.case-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--on-orange);
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.case-steps strong { color: var(--text); }

/* ---------- Numbers band ---------- */
.case-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; margin-top: 8px; margin-bottom: 8px;
}
.case-stats .num { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; color: var(--orange); }
.case-stats .label { margin-top: 8px; font-size: 15px; color: var(--text-soft); }

/* ---------- Photo gallery ----------
   Same card look as the home page's service cards. Two columns on wider
   screens, one on phones. Wide photos are shown at 3:2; tall photos get
   class="tall" in the HTML and keep their full 2:3 shape (no cropping). */
.case-gallery-section { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 32px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-gallery figure {
  margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.case-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.case-gallery figure.tall img { aspect-ratio: 2 / 3; }
.case-gallery figcaption { padding: 14px 18px 16px; font-size: 15px; color: var(--text-soft); }
@media (max-width: 700px) {
  .case-gallery { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Quote, credits, call to action ---------- */
.case-quote { margin: 0; padding-left: 24px; border-left: 3px solid var(--orange); }
.case-quote p { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: var(--text); }
.case-quote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.case-credits { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.case-credits strong { color: var(--text-soft); }
.case-cta { background: var(--surface-2); border-top: 1px solid var(--border); }
.case-cta-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.case-cta h2 { max-width: 640px; }

/* ---------- Video at the top of a page (uses the home page's click-to-load player) ---------- */
.case-video { display: flex; flex-direction: column; gap: 10px; }
.case-video figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Tour / timeline: one row per venue, newest at the bottom ---------- */
.case-tour { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.case-tour li {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 4px 24px;
  padding: 16px 0 16px 22px; border-bottom: 1px solid var(--border); position: relative;
}
/* Small orange dash in front of each venue, like the Clients list */
.case-tour li::before { content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 2px; background: var(--orange); }
.case-tour .when { font-size: 15px; color: var(--muted); }
.case-tour .where { color: var(--text); }
.case-tour .where span { display: block; font-size: 15px; color: var(--text-soft); }
@media (max-width: 640px) {
  .case-tour li { grid-template-columns: 1fr; }
}


/* Wide panoramic photos: span both gallery columns and keep their own shape */
.case-gallery figure.wide { grid-column: 1 / -1; }
.case-gallery figure.wide img { aspect-ratio: auto; }
