/* Talowiz case study, part 2: screen panels, design rounds and the results log. */

/* ---------- screen panels ---------- */
.tw-panels { background: var(--cs-bg); }
/* One image per row, each shown whole. */
.tw-grid { display: grid; gap: 40px; max-width: 960px; margin: 56px auto 0; }
.tw-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.tw-pane { display: flex; flex-direction: column; margin: 0; border-radius: 22px; background: var(--white); border: 1px solid var(--cs-line); overflow: hidden; }
.tw-pane img { display: block; width: 100%; height: auto; object-fit: cover; }
.tw-pane figcaption { display: grid; gap: 6px; padding: 18px 22px 22px; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }
.tw-pane figcaption span { font-family: var(--tw-mono); font-size: 11.5px; color: var(--tw-uv); }
.tw-pane figcaption b { margin-right: 6px; font-weight: 600; color: var(--cs-ink); }

/* ---------- design rounds ---------- */
.tw-rounds { background: linear-gradient(180deg, var(--cs-bg), var(--tw-lilac)); }
.tw-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 64px 0 0; padding: 0; list-style: none; }
.tw-steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--tw-uv), var(--tw-lav)); }
.tw-steps li { position: relative; display: grid; align-content: start; gap: 12px; padding-top: 0; }
.tw-steps__n { position: relative; justify-self: start; margin-bottom: 18px; padding: 9px 16px; border-radius: 999px; background: var(--tw-uv); font-family: var(--tw-mono); font-size: 12.5px; color: var(--white); box-shadow: 0 0 0 6px var(--tw-lilac), 0 10px 30px -8px rgb(106 55 241 / 70%); }
.tw-steps h3 { margin: 0; font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.tw-steps p { max-width: 420px; margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--cs-muted); }

/* ---------- results: a log feed ---------- */
.tw-out { background: radial-gradient(70% 80% at 90% 10%, #2a1670, var(--tw-night) 65%); color: var(--white); }
.tw-out .cs-lead { color: rgb(255 255 255 / 70%); }
.tw-out__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 88px; align-items: center; }
.tw-log { border-radius: 22px; background: rgb(255 255 255 / 4%); border: 1px solid rgb(195 179 243 / 18%); box-shadow: 0 30px 90px -40px rgb(140 92 255 / 70%); overflow: hidden; }
.tw-log__head { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 22px; border-bottom: 1px solid rgb(195 179 243 / 14%); font-family: var(--tw-mono); font-size: 12px; color: rgb(195 179 243 / 80%); }
.tw-log__head span:last-child { color: #7ee2a4; }
.tw-log__head span:last-child::after { content: " \2713"; }
.tw-log ul { margin: 0; padding: 0; list-style: none; }
.tw-log li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 18px 22px; border-bottom: 1px solid rgb(195 179 243 / 10%); }
.tw-log li:last-child { border-bottom: 0; }
.tw-log__tag { justify-self: start; padding: 4px 10px; border-radius: 6px; background: rgb(106 55 241 / 30%); font-family: var(--tw-mono); font-size: 12px; color: var(--tw-lav); }
.tw-log p { margin: 0; font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / 68%); }
.tw-log b { font-weight: 600; color: var(--white); }

@media (max-width: 1000px) {
  .tw-out__grid { grid-template-columns: 1fr; }
  .tw-steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .tw-steps__n { margin-bottom: 8px; }
  .tw-steps::before { display: none; }
}
@media (max-width: 720px) {
  .tw-grid, .tw-row, .tw-row--rev { grid-template-columns: 1fr; gap: 16px; }
  .tw-grid { margin-top: 40px; }
  .tw-row > :nth-child(n) img { aspect-ratio: auto; }
  .tw-pane figcaption { padding: 16px 18px 20px; }
  .tw-log li { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
}

/* ---------- screens, sized to the images: each row pairs a wide 1600x893 screen with a 1200x1200 square.
   Panes grow by their image ratio (--r) from a 2px basis (the borders), so both images in a row share one height. ---------- */
.tw-panels { background: radial-gradient(50% 40% at 100% 0%, rgb(140 92 255 / 12%), transparent 70%), var(--cs-bg); }
.tw-panels .tw-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); max-width: none; margin: clamp(48px, 5vw, 72px) 0 0; }
.tw-panels .tw-row { display: flex; gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.tw-panels .tw-row--rev { flex-direction: row; }
.tw-panels .tw-pane { flex: var(--r) 1 2px; min-width: 0; transition: transform .5s var(--ease), box-shadow .5s ease; }
.tw-panels .tw-pane:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -44px rgb(106 55 241 / 45%); }
.tw-panels .tw-pane img { height: auto; object-fit: initial; }
.tw-panels .tw-pane figcaption { gap: 4px; padding: 20px 24px 24px; font-size: 15px; }
.tw-panels .tw-pane figcaption b { display: block; margin: 0; font-size: 18px; letter-spacing: -.01em; }
@media (max-width: 760px) {
  .tw-panels .tw-row, .tw-panels .tw-row--rev { flex-direction: column; gap: 20px; }
  .tw-panels .tw-pane { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .tw-panels .tw-pane { transition: none; } }

/* No dot before the small section labels on this page. */
.cs-kicker::before { display: none; }
