/* Photographic role entry points, with deliberate selection and a quiet reading area. */
.role-section {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #fff 0%, #eaf2fc 22%, #eaf2fc 78%, #fff 100%);
  scroll-margin-top: 96px;
}
.role-inner { width: auto; max-width: 1280px; margin-inline: auto; }
body:has(.role-section) #approach { padding-bottom: 64px; }
.role-section + .services { padding-top: 72px; }
@media (max-width: 1400px) {
  .role-inner { max-width: none; margin-inline: 6%; }
}
.role-heading {
  margin-bottom: 40px;
}
.role-heading h2 { color: var(--ink); }
.role-heading h2 span { color: var(--blue); }
.role-gallery { display: flex; gap: 10px; height: 370px; }
.role-card {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #e7f1ff;
  text-align: left;
  color: #fff;
  transition: flex-grow 520ms cubic-bezier(.22, 1, .36, 1);
}
.role-card[aria-selected="true"] { flex-grow: 2.35; }
.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgb(65 88 115 / .70) 0%,
    rgb(65 88 115 / .58) 14%,
    rgb(65 88 115 / .43) 30%,
    rgb(65 88 115 / .28) 47%,
    rgb(65 88 115 / .14) 65%,
    rgb(65 88 115 / .04) 83%,
    rgb(65 88 115 / 0) 100%);
  pointer-events: none;
}
.role-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1), filter 400ms;
}
.role-card[aria-selected="true"] .role-image { filter: none; }
.role-card[aria-controls="role-panel-contractor"] .role-image { object-position: 50% 25%; }
.role-card[aria-controls="role-panel-agency"] .role-image { object-position: 50% 30%; }
.role-card[aria-controls="role-panel-design"] .role-image { object-position: 50% 28%; }
.role-card[aria-controls="role-panel-developer"] .role-image { object-position: 52% 25%; }
.role-card[aria-controls="role-panel-public"] .role-image { object-position: 50% 25%; }
.role-card-caption { position: absolute; left: 22px; right: 18px; bottom: 22px; }
.role-name { display: block; font-size: 23px; line-height: 1.5; letter-spacing: .005em; white-space: nowrap; }
.role-card-line {
  display: block;
  max-height: 0;
  opacity: 0;
  font-size: 13px;
  line-height: 1.8;
  white-space: nowrap;
  color: rgb(255 255 255 / .94);
  transform: translateY(5px);
  transition: opacity 230ms, transform 350ms, max-height 350ms;
}
.role-card[aria-selected="true"] .role-card-line { max-height: 30px; opacity: 1; transform: translateY(0); }
.role-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: auto;
  left: auto;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .7);
  background: rgb(255 255 255 / .86);
  color: var(--blue);
  transition: color 300ms, background 300ms;
}
.role-indicator .lucide { width: 16px; height: 16px; transition: transform 400ms; }
.role-card[aria-selected="true"] .role-indicator { background: var(--blue); border-color: var(--blue); color: #fff; }
.role-card[aria-selected="true"] .role-indicator .lucide { transform: rotate(135deg); }
.role-card:focus-visible { outline: 3px solid #1760ef; outline-offset: 5px; }
@media (hover: hover) {
  .role-card:hover .role-image { transform: scale(1.035); }
  .role-card:hover .role-indicator { background: var(--blue); border-color: var(--blue); color: #fff; }
}
.role-gallery-guide { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.role-nav { display: flex; gap: 8px; margin-left: auto; }
.role-step {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #c5dcfc;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  padding: 0;
  transition: border-color 200ms, background 200ms;
}
.role-step .lucide { width: 15px; height: 15px; }
.role-step:hover { background: #dcecff; border-color: #97bff7; }
.role-reading { border-top: 1px solid #d4e5fc; }
.role-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7%;
  padding: 31px 0 10px;
  min-height: 160px;
  outline: none;
}
.role-panel[hidden] { display: none; }
.role-panel:focus-visible { outline: 2px solid #91b5dd; outline-offset: 7px; }
.role-cues { display: flex; flex-wrap: wrap; list-style: none; gap: 6px 0; padding: 0; margin: 20px 0 0; color: #6d7e92; }
.role-cues li + li::before { content: "·"; padding: 0 10px; color: #9aaabb; }
.role-problem-title { color: #17418a; }
.role-understanding-copy { color: var(--ink); text-wrap: pretty; }
.role-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 23px; }
.role-consult, .role-related { display: inline-flex; align-items: center; gap: 9px; font-size: var(--pill-type-size); }
.role-consult { color: var(--blue); }
.role-related { color: var(--blue); }
.role-actions .lucide { flex: none; width: 17px; height: 17px; transition: transform 200ms; }
.role-actions a:hover .lucide { transform: translate(2px, -2px); }
.role-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 721px) and (max-width: 1000px) {
  .role-gallery { height: 330px; gap: 8px; }
  .role-name { font-size: 18px; }
  .role-card-caption { left: 14px; right: 10px; }
  .role-indicator { left: auto; right: 14px; }
  .role-card[aria-selected="true"] { flex-grow: 1.9; }
  .role-card-line { font-size: 11px; }
  .role-cues li + li::before { padding: 0 6px; }
  .role-actions { gap: 14px 18px; }
}
@media (max-width: 720px) {
  .role-section { padding: 48px 0 40px; scroll-margin-top: 62px; }
  .role-inner { width: auto; margin-inline: 7%; }
  body:has(.role-section) #approach { padding-bottom: 48px; }
  .role-section + .services { padding-top: 56px; }
  .role-heading { margin-bottom: 28px; }
  .role-gallery {
    width: 100vw;
    margin-left: -7vw;
    height: 264px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-left: 7vw;
    scrollbar-width: none;
    padding: 0 7vw 5px;
    overscroll-behavior-x: contain;
  }
  .role-gallery::-webkit-scrollbar { display: none; }
  .role-card, .role-card[aria-selected="true"] { flex: 0 0 56vw; max-width: 270px; border-radius: 13px; scroll-snap-align: start; transition: none; }
  .role-card[aria-selected="true"] { box-shadow: inset 0 -3px var(--blue); }
  .role-card[aria-selected="true"]::before { content: ""; position: absolute; z-index: 1; inset: auto 18px 10px; height: 2px; background: var(--blue); border-radius: 2px; }
  .role-card:focus-visible { outline: 2px solid var(--blue); outline-offset: -5px; }
  .role-name { font-size: 22px; }
  .role-card-caption { bottom: 22px; left: 18px; right: 14px; }
  .role-card-line { font-size: 11px; }
  .role-indicator { left: auto; right: 14px; top: 14px; bottom: auto; width: 28px; height: 28px; }
  .role-indicator .lucide { width: 14px; height: 14px; }
  .role-gallery-guide { gap: 12px; padding: 16px 0 18px; }
  .role-step { width: 31px; height: 31px; }
  .role-nav { gap: 6px; }
  .role-panel { grid-template-columns: 1fr; gap: 22px; padding-top: 27px; min-height: 280px; }
  .role-cues { margin-top: 15px; }
  .role-cues li + li::before { padding: 0 7px; }
  .role-actions { margin-top: 21px; gap: 17px 22px; }
}
@media (max-width: 360px) {
  .role-name { font-size: 20px; }
  .role-card-caption { left: 14px; }
  .role-card-line { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .role-card, .role-image, .role-card-line, .role-indicator, .role-indicator .lucide, .role-actions .lucide { transition: none; }
  .role-card:hover .role-image { transform: none; }
  .role-gallery { scroll-behavior: auto; }
}
