/* Shared layout for the bold case study pages (loaded after bold-shared.css) */

/* ---------- Hero ---------- */
.cs-hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
  align-items: center; column-gap: 4vw; padding: 120px var(--gutter) 110px;
}
.cs-hero-bg { position: absolute; inset: -60px; z-index: 0; }
.cs-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px); opacity: .28; }
.cs-hero-text, .cs-hero-media { position: relative; z-index: 1; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cs-title {
  font-family: var(--font-head); font-size: clamp(40px, 5.6vw, 96px);
  line-height: .95; letter-spacing: -.02em;
}
.cs-title em { font-style: normal; color: var(--magenta-hot); display: block; }
.cs-standfirst { margin-top: 26px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: rgba(246,239,243,.8); max-width: 46ch; }
.cs-credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 34px; }
.cs-credits dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-credits dd { font-size: 14px; line-height: 1.5; }
.cs-hero-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px;
  view-transition-name: case-hero;
}

.cs-wide { padding: 0 var(--gutter) 40px; }
.cs-wide img { width: 100%; border-radius: 14px; }
.cs-wide.cinema img { aspect-ratio: 16/7; object-fit: cover; }

/* ---------- Chapters: heading on the left, text on the right ---------- */
.cs-sec {
  position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid; grid-template-columns: minmax(260px, 30%) minmax(0, 1fr); column-gap: 4vw;
}
.cs-sec.alt { background: var(--ink-2); }
.cs-sec.teal { background: var(--teal); color: var(--ink); }
.cs-sec > h2 {
  font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -.02em;
  align-self: start;
}
.cs-sec .num { display: block; font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; color: var(--magenta-hot); margin-bottom: 14px; }
.cs-sec.teal .num { color: var(--magenta-deep); }
.cs-body { max-width: 680px; }
.cs-body p, .cs-body li { font-size: 18px; line-height: 1.75; color: rgba(246,239,243,.82); }
.cs-sec.teal .cs-body p, .cs-sec.teal .cs-body li { color: #2a2430; }
.cs-body p + p { margin-top: 1.1em; }
.cs-body em { font-style: italic; color: #fff; }
.cs-sec.teal .cs-body em { color: var(--ink); }
.cs-body h3 { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; margin: 48px 0 16px; color: #fff; }
.cs-sec.teal .cs-body h3 { color: var(--ink); }
.cs-full { grid-column: 1 / -1; margin-top: 56px; }
.cs-sec .after { grid-column: 2; margin-top: 56px; }
.caption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cs-sec.teal .caption { color: #3a3340; }

.cs-body .pq {
  margin: 48px 0 0; padding-left: 26px; border-left: 4px solid var(--magenta-hot);
  font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; color: #fff;
}
.cs-sec.teal .cs-body .pq { color: var(--ink); border-color: var(--magenta-deep); }
.cs-body .pq.end { font-size: clamp(28px, 3.4vw, 52px); }

/* Text with a phone (or other narrow image) beside it */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; max-width: none; }
.split img { width: 100%; border-radius: 16px; }
.split figure { margin: 0; }

/* ---------- Question -> answer rows ---------- */
.questions { list-style: none; margin-top: 36px; border-top: 1px solid rgba(246,239,243,.12); }
.questions li {
  display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1fr); gap: 6px 22px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(246,239,243,.12);
}
.questions img { width: 48px; height: 48px; }
.questions .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--ink-2); }
.cs-sec.alt .questions .ic { background: var(--ink); }
.questions q { font-family: var(--font-head); font-size: 21px; line-height: 1.3; color: #fff; quotes: "\201C" "\201D"; }
.questions span { font-size: 15px; line-height: 1.55; color: rgba(246,239,243,.72); }
.questions strong { display: block; color: var(--magenta-hot); font-weight: 700; }

/* ---------- Phone screenshots ---------- */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.screens.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screens.two { grid-template-columns: repeat(2, minmax(0, 260px)); }
.screens figure { margin: 0; }
.screens img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; border-radius: 14px; }
.screens.tall img { aspect-ratio: 390/844; border-radius: 22px; }
.screens figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-sec.teal .screens figcaption { color: #3a3340; }
.screens figcaption.long { letter-spacing: 0; text-transform: none; font-size: 14px; line-height: 1.5; }

/* ---------- Numbered notes (anatomy diagrams) ---------- */
.anatomy-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; color: var(--muted); }
.cs-sec.teal .anatomy-label { color: #2a2430; }
.notes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.notes li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 14px; }
.notes i, .num-dot {
  font-style: normal; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--magenta); color: #fff; font-size: 13px; font-weight: 700;
}
.cs-sec.teal .notes i, .cs-sec.teal .num-dot { background: var(--magenta-deep); }
.notes strong { font-family: var(--font-head); font-size: 20px; font-weight: 400; line-height: 1.2; color: #fff; }
.cs-sec.teal .notes strong { color: var(--ink); }
.notes span { grid-column: 2; font-size: 15px; line-height: 1.6; color: rgba(246,239,243,.72); }
.cs-sec.teal .notes span { color: #2a2430; }

/* ---------- Comparison table ---------- */
.vs { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 15px 16px 15px 0; border-bottom: 1px solid rgba(246,239,243,.12); }
.vs thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs thead th:last-child, .vs td:last-child, .vs tbody th { color: #fff; }
.vs tbody th { font-weight: 500; width: 34%; }
.vs td:nth-child(2) { color: rgba(246,239,243,.55); }
.vs td:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--magenta-hot); vertical-align: middle; }

/* ---------- Cards (small calls, rules) ---------- */
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calls.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calls article { padding: 26px; border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(246,239,243,.08); }
.cs-sec.alt .calls article { background: var(--ink); }
.calls h3 { font-family: var(--font-head); font-size: 22px; font-weight: 400; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.calls p { font-size: 15px; line-height: 1.65; color: rgba(246,239,243,.72); }
.calls p + p { margin-top: 0; }
.calls em { font-style: italic; color: #fff; }
.calls .wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 22px; align-items: center; }
.calls .wide img { width: 100%; border-radius: 10px; }
.cs-sec.teal .calls article { background: rgba(23,19,26,.08); border-color: rgba(23,19,26,.1); }
.cs-sec.teal .calls h3, .cs-sec.teal .calls em { color: var(--ink); }
.cs-sec.teal .calls p { color: #2a2430; }

/* ---------- Vertical step path ---------- */
.steps { list-style: none; counter-reset: st; margin: 36px 0; position: relative; }
.steps li { counter-increment: st; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 4px 18px; padding-bottom: 28px; }
.steps li::before {
  content: counter(st); grid-row: span 2; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--magenta); color: #fff; font-weight: 700; font-size: 15px; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: rgba(246,239,243,.14); }
.steps li:last-child::after { display: none; }
.steps strong { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.2; color: #fff; padding-top: 6px; }
.steps span { font-size: 16px; line-height: 1.65; color: rgba(246,239,243,.72); }
.steps li.no::before { background: transparent; border: 2px dashed rgba(246,239,243,.4); color: rgba(246,239,243,.6); }
.steps li.no strong { color: rgba(246,239,243,.6); text-decoration: line-through; text-decoration-thickness: 2px; }
.steps li.no strong::after { content: "Turned down"; margin-left: 12px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(246,239,243,.1); color: rgba(246,239,243,.7); vertical-align: middle; }

/* ---------- Next: back home, or on to the next case study (slim bar with round arrow buttons) ---------- */
.cs-next {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(56px, 7vw, 96px) var(--gutter); background: var(--ink-2);
}
.cs-next a { display: flex; flex-direction: column; gap: 14px; }
.cs-next a:hover { color: inherit; }
.cs-next small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-next strong { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; display: flex; align-items: center; gap: 18px; }
.cs-next svg {
  width: 64px; height: 64px; padding: 17px; flex: 0 0 auto; border-radius: 50%;
  background: var(--magenta); color: #fff;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.cs-next a:hover svg { background: var(--magenta-hot); }
.cs-next .back svg { transform: scaleX(-1); }
.cs-next .back:hover svg { transform: scaleX(-1) translateX(4px); }
.cs-next .fwd { text-align: right; align-items: flex-end; }
.cs-next .fwd:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .cs-hero { grid-template-columns: 1fr; row-gap: 40px; padding-top: 110px; }
  .cs-sec { grid-template-columns: 1fr; }
  .cs-sec > h2 { position: static; margin-bottom: 28px; }
  .cs-sec .after { grid-column: auto; }
  .calls, .calls.two { grid-template-columns: 1fr; }
  .calls .wide { grid-column: auto; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .c-tr .long { display: none; }
  .cs-body p, .cs-body li { font-size: 17px; }
  .questions li { grid-template-columns: 44px minmax(0, 1fr); }
  .questions span { grid-column: 2; }
  .notes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 260px; }
  .vs tbody th { width: auto; }
  .calls .wide { grid-template-columns: 1fr; }
  .cs-next { gap: 16px; }
  .cs-next strong { font-size: 19px; gap: 10px; white-space: nowrap; }
  .cs-next svg { width: 46px; height: 46px; padding: 12px; }
  .cs-wide.cinema img { aspect-ratio: 4/3; }
  .screens.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .screens.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Step path on turquoise */
.cs-sec.teal .steps li::after { background: rgba(23,19,26,.18); }
.cs-sec.teal .steps strong { color: var(--ink); }
.cs-sec.teal .steps span { color: #2a2430; }
.cs-sec.teal .steps li::before { background: var(--magenta-deep); }
.cs-sec.teal .steps li.no::before { background: transparent; border-color: rgba(23,19,26,.4); color: rgba(23,19,26,.6); }
.cs-sec.teal .steps li.no strong { color: rgba(23,19,26,.55); }
.cs-sec.teal .steps li.no strong::after { background: rgba(23,19,26,.1); color: #2a2430; }

/* A white card for diagrams and images that come with their own white background */
.frame { margin: 0; padding: clamp(14px, 2vw, 28px); border-radius: 16px; background: #fff; }
.frame img { width: 100%; display: block; }
