/* =========================================================
   Extra case study components (added for the Deloitte page).
   Loaded after case.css; nothing here changes the locked
   Oracle page, which doesn't load this file.
   ========================================================= */

/* ---------- Deloitte colour theme ---------- */
.case-page--deloitte { --tint: var(--tint-deloitte); --tag: var(--tag-deloitte); }
.case-page--deloitte .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%238E1F24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .case-page--deloitte .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23FF8C8F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* A little more room for the longer Deloitte title so it stays on 3 lines (same font size as Oracle) */
@media (min-width: 961px) {
  .case-page--deloitte .cs-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ---------- Photo hero (image fills the card) ---------- */
.cs-hero__media--photo { padding: 0; }
.cs-hero__media--photo::before { display: none; }
.cs-hero__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 28% 50%; filter: none; }
.nda-note { margin: 18px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.nda-note svg { flex: none; margin-top: 2px; }

/* ---------- Goal → outcome pairs ---------- */
.goal-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.goal-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.goal-list li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--tag); background: color-mix(in srgb, var(--tag) 12%, transparent); }

/* ---------- Text link card (Figma board, personas PDF) ---------- */
.link-card {
  display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 18px 22px;
  border-radius: var(--radius-md); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--tag) 40%, transparent);
  font-size: 15.5px; line-height: 1.5; color: var(--ink); transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.link-card:hover { background: var(--tint); border-style: solid; transform: translateY(-2px); }
.link-card__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--tag); }
.link-card__arrow { margin-left: auto; flex: none; transition: transform .4s var(--ease); }
.link-card:hover .link-card__arrow { transform: translate(3px, -3px); }

/* ---------- "Before" label on previous designs ---------- */
.before-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: #141414; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Problem split (initiator / approver) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.split .card { display: grid; gap: 14px; align-content: start; }
.split .fig { margin: 0; }

/* ---------- Track band: who we're designing for next ---------- */
.track {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 28px;
  margin: clamp(40px, 6vw, 72px) 0 8px; padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg); background: var(--ink); color: var(--bg);
}
.track::after { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tag) 70%, transparent), transparent); opacity: .55; pointer-events: none; }
.track img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid color-mix(in srgb, var(--bg) 30%, transparent); }
.track small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.track strong { display: block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.track span { display: block; margin-top: 8px; font-size: 15px; opacity: .8; }

/* ---------- Scenario: problem vs solution ---------- */
.scenario { margin-top: clamp(36px, 5vw, 64px); }
.scenario__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.scenario__head .pill-tag { flex: none; }
.scenario__head h4 { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.ps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ps__item { position: relative; padding: 22px 24px; border-radius: var(--radius-md); }
.ps__item small { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ps__item p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.65 !important; }
.ps__problem { background: var(--surface); border: 1px solid var(--line); }
.ps__problem small { color: var(--muted); }
.ps__problem p { font-style: italic; color: var(--ink) !important; }
.ps__solution { background: var(--tint); border: 1px solid color-mix(in srgb, var(--tag) 22%, transparent); }
.ps__solution small { color: var(--tag); }
.ps__arrow {
  position: absolute; left: -14px; top: 50%; translate: -50% -50%; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tag); color: var(--bg);
}
.scenario .fig { margin-top: 16px; }

/* ---------- Desktop + phone pair ---------- */
.device-pair { position: relative; margin-top: 16px; padding: clamp(18px, 3vw, 36px); padding-right: clamp(90px, 16vw, 200px); border-radius: var(--radius-lg); background: var(--tint); border: 1px solid color-mix(in srgb, var(--tag) 18%, transparent); }
.device-pair .fig { margin: 0; }
.device-pair .fig--phone { position: absolute; right: clamp(14px, 3vw, 36px); bottom: clamp(14px, 3vw, 32px); width: clamp(110px, 19vw, 220px); }
.device-pair .fig--phone .fig__frame { border: 0; background: transparent; filter: drop-shadow(0 24px 30px rgba(0,0,0,.25)); }
.device-pair .fig--phone .fig__zoom { display: none; }

/* ---------- Outcome list ---------- */
.outcomes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.outcomes li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.outcomes b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.04em; color: var(--tag); line-height: 1; }
.outcomes span { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Two-up figure grid ---------- */
.fig-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fig-pair .fig { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .split, .ps, .fig-pair { grid-template-columns: 1fr; }
  .ps__arrow { left: 50%; top: -7px; translate: -50% -50%; rotate: 90deg; }
  .track { grid-template-columns: 1fr; }
  .track img { width: 64px; height: 64px; }
  .outcomes li { grid-template-columns: 1fr; gap: 6px; }
  /* Phone: desktop screen on top, phone screen centred below it */
  .device-pair { padding: 16px; display: grid; gap: 16px; justify-items: center; }
  .device-pair .fig { width: 100%; }
  .device-pair .fig--phone { position: static; width: 46%; max-width: 180px; }
  .link-card { align-items: flex-start; }
}
