/* SPOT case study (spot-case branch). Only what differs from case.css.
   Stat tiles copy the Tech@NYU / Clarus card style so the pages match. */

/* ---------- stat tiles, two by two ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.stat-tile {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 34px 32px 32px; border-radius: 12px;
  background: rgb(252, 252, 252); border: 1px solid var(--rule);
  font-family: "DM Sans", sans-serif;
}
:root[data-theme="dark"] .stat-tile { background: rgb(26, 26, 28); border-color: var(--rule); }
.st-num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0; }
.st-num .count {
  font-size: clamp(40px, 4.4vw, 58px); line-height: 1; font-weight: 400; letter-spacing: -.03em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.st-unit { font-size: 22px; font-weight: 400; color: var(--caption); }
.st-label { margin: 14px 0 0; font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--caption); text-wrap: pretty; }
@media (max-width: 1100px) { .stat-tile { padding: 28px 24px 26px; } .st-label { font-size: 14px; } }
@media (max-width: 760px) {
  .stat-row { gap: 10px; }
  .stat-tile { padding: 22px 18px; }
  .st-label { margin-top: 10px; }
}

/* meta on two lines (Jen, Nov 29: five across was too crammed).
   Line 1: timeline, role, event. Line 2: team (spans two columns so the
   names stay on one line), award under event. */
.case-head .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 0; }
.case-head .meta .meta-team { grid-column: span 2; }
@media (max-width: 760px) {
  .case-head .meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 24px 20px; }
}

/* the OTI line under the results */
.case-section .result-note { margin-top: 22px; }

/* the vendor quote and its source */
.case-section .quote-line { margin-top: 44px; margin-bottom: 10px; }
.case-section .src { font-size: 15px; color: var(--caption); }

/* caption under the pitch video, same as the Tech@NYU captions */
.cap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; font-size: 15px; line-height: 1.45; font-weight: 400; color: var(--caption); }
.cap .t { color: var(--head); }
.shot video { display: block; border-radius: var(--photo-radius, 12px); background: #000; }

/* ---------- solution: one flow per block ---------- */
.flow { margin-top: 56px; }
.flow:first-of-type { margin-top: 36px; }
.flow-t { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: -.015em; color: var(--head); }
.flow-b { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--body); max-width: 640px; }

/* phone screens on a soft panel, like the Clarus / Tech@NYU tiles */
.phones {
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 240px)); justify-content: center; gap: clamp(14px, 2.4vw, 32px);
  margin-top: 22px; padding: clamp(22px, 4vw, 48px) clamp(22px, 5vw, 64px);
  border-radius: 12px; background: rgb(245, 245, 247); border: 1px solid var(--rule);
}
:root[data-theme="dark"] .phones { background: rgb(26, 26, 28); }
.phones img {
  display: block; width: 100%; height: auto; border-radius: clamp(16px, 2.4vw, 30px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 12px 30px rgba(0, 0, 0, .08);
}
@media (max-width: 760px) {
  .flow-t { font-size: 18px; }
  .flow-b { font-size: 15px; }
  .phones { gap: 10px; padding: 16px; }
}

/* rollout slides: thin edge so the white slides read on a white page */
#rollout .media-row img { border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }

/* the team photos at the end: tall award shot beside the wide work shot, same height */
.team-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 28px; align-items: stretch; }
.team-row img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--photo-radius, 12px); }
/* award photo bigger (Jen, Nov 23): cropped to 3:4, trimming the banner text at the top so the four of us fill it;
   the work photo crops its sides to match the height */
.team-row img:first-child { height: auto; aspect-ratio: 3 / 4; object-position: 50% 80%; }
.team-row img:last-child { object-position: 0% 50%; }
@media (max-width: 760px) { .team-row { grid-template-columns: 1fr; } .team-row img { height: auto; } }
/* Results as prose (Jen, Nov 23): a few phrases get a SPOT-yellow marker that sweeps in once, left to right */
.res-copy { margin-top: 22px; }
.res-copy .hl {
  color: inherit; padding: 0 .12em; margin: 0 -.04em; border-radius: 3px;
  background: linear-gradient(transparent 58%, rgba(255, 232, 0, .75) 58%) no-repeat 0 0 / 0% 100%;
  transition: background-size .7s cubic-bezier(.2, .8, .2, 1);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:root[data-theme="dark"] .res-copy .hl { color: var(--ink); background-image: linear-gradient(transparent 58%, rgba(255, 232, 0, .38) 58%); }
.res-copy.is-lit .hl { background-size: 100% 100%; }
.res-copy.is-lit .hl:nth-of-type(2) { transition-delay: .18s; }
.res-copy.is-lit .hl:nth-of-type(3) { transition-delay: .36s; }
.res-copy.is-lit .hl:nth-of-type(4) { transition-delay: .54s; }
.res-copy.is-lit .hl:nth-of-type(5) { transition-delay: .72s; }
.res-fig { margin: 28px 0 0; }
.res-fig .res-fn { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .res-copy .hl { transition: none; } }
/* Results: paragraph left, award photo right (Jen, Nov 23) */
.res-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.res-text .res-copy { margin-top: 22px; }
.res-text > .eyebrow:first-child { margin-top: 0; }
.res-photo { margin: 0; }
.res-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius, 12px); }
.res-split + .shot { margin-top: 40px; }
@media (max-width: 760px) { .res-split { grid-template-columns: minmax(0, 1fr); gap: 22px; } .res-photo img { aspect-ratio: 4 / 3; } }
/* Team: just the work photo now */
.team-one { margin: 28px 0 0; }
.team-one img { display: block; width: 100%; height: auto; border-radius: var(--photo-radius, 12px); }
/* Reflection photos (Jen, Nov 29): two side by side, cropped to the same 4:3 so their tops and captions line up; stacked on phones. */
.team-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 28px 0 0; }
.team-pair .team-one { margin: 0; }
.team-pair .team-one img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
@media (max-width: 760px) { .team-pair { grid-template-columns: minmax(0, 1fr); gap: 24px; } }