/* Illustrations and the picture-and-text bands. The images are static SVG files in img/scenes. */
.scene { display: block; width: 100%; height: auto; }

/* Page heads: copy on the left, illustration on the right. */
.has-scene > .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.page-head.has-scene { padding: 36px 0 28px; }
.head-copy { min-width: 0; }
.head-art { justify-self: end; max-width: 500px; }
.head-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.head-copy > :nth-child(2) { animation-delay: .06s; }
.head-copy > :nth-child(3) { animation-delay: .12s; }
.head-copy > :nth-child(n + 4) { animation-delay: .18s; }
.manifesto.has-scene { padding: clamp(40px, 6vw, 84px) 0; }
.manifesto.has-scene .manifesto-quote { font-size: clamp(2.1rem, 4.4vw, 4rem); }

/* Picture-and-text bands */
.story-band + .section:not(.section-alt) { padding-top: 0; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.story-art { max-width: 560px; justify-self: center; }
.story-flip .story-art { order: 2; }
.story-copy .section-title { margin-bottom: .7em; }
.story-copy p { max-width: 62ch; font-size: 1.05rem; }
.story-copy .tick-list { margin: 1.25rem 0 0; padding: 0; }
.story-copy .tick-list li { color: var(--heading); }

/* Home role board: references stay on one line. */
.board li a { grid-template-columns: max-content minmax(0, 1fr); gap: 0 14px; }

/* Illustrations inside cards */
.card-art { max-width: 240px; margin-bottom: 6px; }
.sector-strip .card-art { margin-bottom: 0; }
/* Services: four matching cards, two across. Picture and summary on top, what is included underneath. */
.practice-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.practice-row.practice-row { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); grid-template-areas: "art copy" "list list"; gap: 22px 28px; align-items: center; align-content: start; padding: 28px; }
.practice-row > div { grid-area: copy; }
.practice-row > .tick-list { grid-area: list; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); align-self: start; }
.practice-row > .practice-art { grid-area: art; }
.practice-row h2 { margin-bottom: .4em; }
.practice-row .practice-tag { margin-bottom: .35rem; }

/* The tabbed services: the panel's text sits level with the tab list. */
.service-panel { align-items: center; min-height: 260px; }

/* Sign-in pages: form and illustrated panel */
.auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; justify-items: center; padding-inline: clamp(20px, 4vw, 72px); }
.auth-split .auth-card { grid-column: 2; grid-row: 1; justify-self: start; }
.auth-side { grid-column: 1; grid-row: 1; justify-self: end; width: min(480px, 100%); }
.auth-art { max-width: 340px; margin-bottom: 18px; }
.auth-side h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.auth-side .tick-list { margin: 0; padding: 0; }

/* Portal dashboards */
.portal-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 24px; margin-bottom: 18px; background: linear-gradient(110deg, #0d2736, var(--surface) 70%); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.portal-banner p { margin: 0; max-width: 62ch; color: var(--heading); }
.banner-art { flex: none; width: 170px; }

/* Error page */
.error-art { max-width: 340px; margin: 0 auto 8px; }

@media (max-width: 1100px) {
  .practice-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .has-scene > .wrap, .story { grid-template-columns: minmax(0, 1fr); }
  .head-art { justify-self: start; max-width: 380px; }
  .story-flip .story-art { order: 0; }
  .story-art { max-width: 420px; justify-self: start; }
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-split .auth-card, .auth-side { grid-column: 1; grid-row: auto; justify-self: center; }
  .auth-side { width: min(520px, 100%); }
}
@media (max-width: 560px) {
  .practice-row.practice-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy" "list"; padding: 22px; }
  .practice-row > .practice-art { max-width: 220px; }
  .practice-row > .tick-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .head-art-optional { display: none; }
  .portal-banner { padding: 14px 16px; }
  .banner-art { display: none; }
}
