/* Panda case study. Shared pieces: case-study.css, case-contact.css. */

:root {
  --accent: #f5c842;
  --pd-green: #0f4a2c;
  --cs-ink: #141416;
  --cs-muted: #5a5852;
  --cs-faint: #8a877e;
  --cs-line: rgb(20 20 22 / 12%);
  --cs-bg: #fbfbf9;
  --cs-dark: #141a26;
  --cf-dots: rgb(15 74 44 / 14%);
  --cf-glow: rgb(245 200 66 / 28%);
  --cf-wash-a: rgb(251 251 249 / 85%);
  --cf-wash-b: rgb(251 251 249 / 40%);
  --cf-shadow: rgb(15 40 25 / 28%);
  --cf-big: #0f4a2c;
  --cf-btn: #0f4a2c;
  --cf-btn-fg: #fbfbf9;
  --cf-btn-icon-fg: #141416;
  --cf-chip-on-fg: #fbfbf9;
  --cf-sent: #0f4a2c;
  --cf-sent-fg: #f5c842;
}

a:hover { color: var(--pd-green); }
.cs-contact__facts a { border-bottom-width: 2px; }
.pd-h2 { font-weight: 600; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.06; letter-spacing: -1.8px; text-wrap: balance; }
.pd-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px 96px; align-items: end; }

/* ---------- hero ---------- */

.pd-hero { padding-block: 64px 112px; }
.pd-hero__brand { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; font-size: 13px; letter-spacing: 1px; color: var(--cs-faint); }
.pd-hero__brand img { width: auto; height: 44px; }
.pd-hero__brand span[aria-hidden] { width: 1px; height: 28px; background: rgb(20 20 22 / 18%); }
.pd-hero__title { max-width: 1250px; margin-bottom: 30px; font-weight: 600; font-size: clamp(36px, 5.4vw, 88px); line-height: 1.04; letter-spacing: -.035em; text-wrap: pretty; }
.pd-hero__lead { max-width: 1080px; font-size: clamp(19px, 1.5vw, 25px); line-height: 1.5; color: #4a4843; text-wrap: pretty; }
.pd-hero__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 40px; max-width: 1250px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--cs-line); }
.pd-hero__meta dt { margin-bottom: 8px; font-weight: 600; font-size: 12px; letter-spacing: 1px; color: var(--pd-green); }
.pd-hero__meta dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
.pd-hero__shot { margin: 56px 0 0; }
.pd-hero__shot img { width: 100%; border-radius: 24px; }

/* ---------- challenge + solution ---------- */

.pd-challenge { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }

.pd-challenge__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: clip;
  padding: clamp(32px, 3.6vw, 60px);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 100% 100%, #1d6b43 0%, transparent 60%), radial-gradient(80% 60% at 0% 0%, #0a3a22 0%, transparent 70%), var(--pd-green);
  color: #f4f2ec;
}
.pd-challenge__card .cs-kicker { margin-bottom: 18px; color: rgb(244 242 236 / 60%); }
.pd-challenge__title { margin-bottom: 24px; }
.pd-challenge__lead { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgb(244 242 236 / 75%); }
.pd-challenge__list { margin-top: auto; border-top: 1px solid rgb(244 242 236 / 18%); }
.pd-challenge__list li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgb(244 242 236 / 18%); font-size: 17px; line-height: 1.5; color: rgb(244 242 236 / 92%); }
.pd-challenge__list span { flex: none; min-width: 2.2ch; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--accent); }
.pd-challenge__side { display: flex; flex-direction: column; gap: 24px; }
.pd-sol { position: relative; display: flex; overflow: clip; border-radius: 28px; background: #f9cc47; }
.pd-sol__text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; width: 52%; padding: clamp(32px, 3.2vw, 52px); }
.pd-sol .cs-kicker { margin-bottom: 18px; color: rgb(20 20 22 / 60%); }
.pd-sol__title { margin-bottom: 16px; font-weight: 600; font-size: clamp(24px, 2.1vw, 40px); line-height: 1.08; letter-spacing: -1.4px; }
.pd-sol__title span,
.pd-role__title span { display: block; white-space: nowrap; }
.pd-sol__text > p:last-child { font-size: 16px; line-height: 1.6; color: rgb(20 20 22 / 78%); }
.pd-sol__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.pd-wins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.pd-win { display: flex; flex-direction: column; overflow: clip; border: 1.5px solid rgb(15 74 44 / 16%); border-radius: 24px; background: var(--white); }
.pd-win__copy { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 22px; }
.pd-win h3 { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(18px, 1.4vw, 21px); letter-spacing: -.4px; }
.pd-win h3 span { padding: 4px 10px; border-radius: 999px; background: #e6efe6; font-size: 12px; color: var(--pd-green); }
.pd-win p { font-size: 14.5px; line-height: 1.55; color: var(--cs-muted); }
.pd-win__img { position: relative; aspect-ratio: 1000 / 532; margin-top: auto; overflow: clip; }

/* ---------- context, mosaic, film ---------- */

.pd-context { display: flex; align-items: flex-end; min-height: min(92vh, 860px); overflow: clip; background: #1b1530; }
.pd-context__bg { object-position: center 40%; }
.pd-context__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(14 12 26 / 82%) 100%); }
.pd-context .cs-kicker { color: rgb(255 255 255 / 75%); }
.pd-context__title { font-weight: 600; font-size: clamp(32px, 3.8vw, 64px); line-height: 1.02; letter-spacing: -2px; text-wrap: balance; }
.pd-context__text { max-width: 560px; font-size: 17px; line-height: 1.65; color: rgb(255 255 255 / 88%); }
.pd-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15vw, 290px); gap: 16px; }
.pd-mosaic li { position: relative; border-radius: 20px; background: #e6efe6; }
.pd-mosaic img { transition-duration: 1.2s; }
.pd-mosaic li:hover img { transform: scale(1.05); }
.pd-mosaic__big { grid-column: span 2; grid-row: span 2; }
.pd-mosaic__wide { grid-column: span 2; }
.pd-film { position: relative; margin: 0 auto; overflow: hidden; border-radius: 24px; background: #0b0f0c; }
.pd-film__label { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 12px; padding: 32px var(--gutter); background: linear-gradient(0deg, rgb(11 15 12 / 75%), transparent); font-size: 13px; letter-spacing: 1px; color: rgb(255 255 255 / 85%); }
.pd-film__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- process ---------- */

.pd-process__head { margin-bottom: 56px; }
.pd-process__title { font-weight: 600; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -1.6px; }
.pd-proc { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.pd-proc > img { width: 100%; }
.pd-proc__txt { position: absolute; top: 50%; transform: translateY(-50%); }
.pd-proc__txt--r { right: 6%; left: 58%; }
.pd-proc__txt--l { top: 52%; right: 53.7%; left: 6%; }
.pd-proc__kicker { margin-bottom: 18px; font-weight: 600; font-size: 12.5px; letter-spacing: 4px; color: #8a9184; }
.pd-proc h3 { margin-bottom: 18px; font-weight: 700; font-size: clamp(22px, 2vw, 32px); line-height: 1.18; letter-spacing: -1px; }
.pd-proc__txt > p { font-size: 15.5px; line-height: 1.7; color: var(--cs-muted); }
.pd-acc { margin-top: 24px; border-top: 1px solid var(--cs-line); }
.pd-acc__item { padding: 16px 0; border-bottom: 1px solid var(--cs-line); }
.pd-acc__item h4 { font-weight: 600; font-size: 16px; }
.pd-acc__item .cs-acc__icon { width: 26px; height: 26px; font-size: 16px; background: rgb(20 20 22 / 6%); }
.pd-acc__item.is-open .cs-acc__icon { background: var(--pd-green); color: var(--accent); }
.pd-acc__item p { padding-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--cs-muted); }

/* ---------- key UX highlights ---------- */

.pd-ux { overflow: clip; background: #f2f4ef; }
.pd-ux__bg { z-index: 0; pointer-events: none; }
.pd-ux__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; align-items: start; margin-bottom: 56px; }
.pd-ux__title { font-weight: 700; font-size: clamp(34px, 4vw, 62px); line-height: 1.02; letter-spacing: -2.4px; }
.pd-ux__lead { max-width: 520px; padding-top: 10px; font-size: 19px; line-height: 1.55; color: #4a4843; text-wrap: pretty; }
.pd-ux__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.pd-ux__card { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 20px; background: var(--white); box-shadow: 0 24px 50px -34px rgb(20 30 20 / 28%); }
.pd-ux__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: #e6efe6; }
.pd-ux__card h3 { margin-bottom: 12px; font-weight: 600; font-size: 20px; color: var(--pd-green); }
.pd-ux__card p { margin-bottom: 26px; font-size: 15px; line-height: 1.55; color: #54524d; }
.pd-ux__card img { width: 100%; }

/* ---------- banner, outcome, live ---------- */

.pd-banner { margin: 0 auto; overflow: clip; border-radius: 24px; }
.pd-banner img { width: 100%; border-radius: 24px; }
.pd-outcome { color: #f4f2ec; }
.pd-outcome .cs-kicker { color: rgb(244 242 236 / 60%); }
.pd-outcome__head { max-width: 900px; margin-bottom: 56px; }
.pd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; margin: 0; padding-top: 40px; border-top: 1px solid rgb(244 242 236 / 20%); }
.pd-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.pd-stats dt { margin-top: 10px; font-size: 14px; color: rgb(240 238 232 / 62%); }
.pd-stats dt span { opacity: .55; }
.pd-stats dd { margin: 0; font-weight: 800; font-size: clamp(36px, 3.6vw, 58px); line-height: 1; letter-spacing: -2.2px; }
.pd-live { position: relative; overflow: clip; border-radius: 24px; background: var(--pd-green); }
.pd-live__img { width: 100%; }
.pd-live__copy { position: absolute; inset: 8% 46% 0 3.6%; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 76px); }
.pd-live__title { margin-bottom: clamp(16px, 2.2vw, 34px); font-weight: 700; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.08; letter-spacing: -.03em; color: var(--white); text-wrap: balance; }
.pd-live__copy p { max-width: 520px; font-size: clamp(15px, 1.25vw, 21px); line-height: 1.5; color: rgb(255 255 255 / 88%); text-wrap: pretty; }
.pd-live__copy p span { color: var(--accent); }

@media (max-width: 1000px) {
  .pd-proc__txt { position: static; max-width: none; padding: 28px var(--gutter); transform: none; }
}

@media (max-width: 900px) {
  .pd-sol { flex-direction: column; }
  .pd-sol__text { width: auto; }
  .pd-sol__art { position: relative; height: auto; aspect-ratio: 1.9 / 1; object-position: 85% center; }
  .pd-live__copy { position: static; padding: 34px 28px 40px; }
  .pd-live__img { height: 280px; object-fit: cover; object-position: 78% center; transform: scale(1.12); transform-origin: 78% 100%; }
}

@media (max-width: 800px) {
  .pd-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pd-hero { padding-block: 48px 64px; }
}
