/* V25: smaller team portraits, eight readable stages and compact mobile access. */

/* The original portraits remain archived; both display editions share a studio backdrop. */
.app-showcase .app-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-benefit .text-link { min-height: 44px; margin-top: 12px; font-size: 12px; }
@media (max-width: 1100px) {
  .app-showcase .app-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .app-showcase .app-benefit-grid { grid-template-columns: minmax(0, 1fr); }
}

.about-page .team-heading { margin-bottom: 22px; }
.about-page .team-grid {
  width: 100%;
  max-width: 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-inline: auto;
}
.about-page .team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 20px 14px 8px;
  border-radius: 26px;
}
.about-page .team-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 28%, #3c4957 0%, #26313d 52%, #19232e 100%);
}
.about-page .team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.about-page .team-card:hover .team-photo img { transform: none; }
.about-page .team-card figcaption { padding: 16px 4px 12px; text-align: center; }
.about-page .team-card h3 { font-size: 20px; line-height: 1.35; }
.about-page .team-card figcaption p { font-size: 12px; line-height: 1.65; }

/* One numbered route in document order, without the old vertical connectors. */
.process[data-process-flow] {
  grid-template-columns: minmax(0, 1fr);
  gap: 27px;
  padding: 32px;
}
.process[data-process-flow] .process-intro {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  column-gap: 20px;
  align-items: start;
}
.process[data-process-flow] .process-intro > .eyebrow,
.process[data-process-flow] .process-intro > h2,
.process[data-process-flow] .process-intro > p { grid-column: 1; }
.process[data-process-flow] .process-intro > .eyebrow { margin-bottom: 12px; }
.process[data-process-flow] .process-intro h2 {
  font-size: 33px;
  line-height: 1.22;
  max-width: 760px;
}
.process[data-process-flow] .process-intro h2 br { display: none; }
.process[data-process-flow] .process-intro p {
  max-width: 740px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
}
.process[data-process-flow] .process-intro > .process-pause {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
.process #processSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  min-width: 0;
}
.process #processSteps .process-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  padding: 19px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.process #processSteps .process-step::before { content: none; display: none; }
.process #processSteps .step-number {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 11px;
}
.process #processSteps .process-step > div { min-width: 0; }
.process #processSteps .process-step h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.025em;
  margin: 13px 0 8px;
  overflow-wrap: break-word;
}
.process #processSteps .process-step p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

/* Eight stages, each with a three-second turn; retain the native pause control. */
.process[data-process-flow] #processSteps .step-number {
  animation: process-v25-stage 24s var(--ease) infinite both;
  animation-delay: calc(var(--step) * 3s);
}
.process[data-process-flow] #processSteps .process-step h3 {
  animation: process-v25-title 24s var(--ease) infinite both;
  animation-delay: calc(var(--step) * 3s);
}
.process[data-process-flow][data-paused=true] #processSteps .step-number,
.process[data-process-flow][data-paused=true] #processSteps .process-step h3 {
  animation-play-state: paused;
}
@keyframes process-v25-stage {
  0%, 12.5%, 100% {
    background: var(--surface);
    color: var(--wine);
    box-shadow: 0 0 0 0 transparent;
    transform: scale(1);
  }
  2.5%, 10% {
    background: var(--wine);
    color: var(--surface);
    box-shadow: 0 0 0 5px var(--blue-soft);
    transform: scale(1.035);
  }
}
@keyframes process-v25-title {
  0%, 12.5%, 100% { color: var(--ink); }
  2.5%, 10% { color: var(--wine); }
}

@media (max-width: 1100px) {
  .process #processSteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process #processSteps .process-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .process #processSteps .process-step h3 { margin-top: 2px; }
}

@media (max-width: 850px) {
  /* Existing social/emergency row stays intact; only the two access links shrink. */
  html:not(.header-compact) { scroll-padding-top: 211px; }
  .header-space { height: 193px; }
  html:not(.header-compact) .header-utilities {
    grid-template-rows: 36px 44px;
    gap: 4px 12px;
  }
  .site-header .header-utilities :is(.header-auto, .header-portal) {
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 8px 10px;
    font-size: 10.5px;
    line-height: 1.3;
    gap: 6px;
  }
  .site-header .header-utilities .header-auto { justify-self: end; }
  .site-header .header-utilities .header-portal { justify-self: start; }
  .site-header .header-utilities :is(.header-auto, .header-portal) .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .about-page .team-grid { max-width: 470px; grid-template-columns: 1fr; gap: 15px; }
  .about-page .team-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 10px;
    border-radius: 23px;
  }
  .about-page .team-photo { width: 112px; height: 112px; border-radius: 50%; }
  .about-page .team-card figcaption { padding: 9px 5px 9px 0; text-align: left; }
  .about-page .team-card h3 { font-size: 20px; }
  .about-page .team-card figcaption p { font-size: 12px; }

  .process[data-process-flow] { gap: 22px; padding: 24px 19px; }
  .process[data-process-flow] .process-intro { column-gap: 12px; }
  .process[data-process-flow] .process-intro h2 { font-size: 29px; }
  .process[data-process-flow] .process-intro p { font-size: 12px; }
  .process #processSteps { grid-template-columns: 1fr; gap: 11px; }
  .process #processSteps .process-step { padding: 15px; gap: 12px; border-radius: 17px; }
  .process #processSteps .process-step h3 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
  .process #processSteps .process-step p { font-size: 12px; line-height: 1.7; }

  /* 74px masthead + 113px access surface; keep spacer and menu aligned. */
  html:not(.header-compact) { scroll-padding-top: 217px; }
  .header-space { height: 199px; }
  html:not(.header-compact) .header-utilities {
    height: 113px;
    padding: 22px 12px 7px;
  }
  html:not(.header-compact) .site-header .site-nav {
    top: calc(100% + 121px);
    max-height: calc(100dvh - 217px);
  }
}

@media (max-width: 360px) {
  .about-page .team-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .about-page .team-photo { width: 96px; height: 96px; }
  .about-page .team-card h3 { font-size: 18px; }
  .site-header .header-utilities :is(.header-auto, .header-portal) {
    padding-inline: 7px;
    font-size: 10px;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process[data-process-flow] #processSteps .step-number,
  .process[data-process-flow] #processSteps .process-step h3 { animation: none; }
}
@media print {
  .about-page .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .process #processSteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process #processSteps .process-step { break-inside: avoid; }
  .process[data-process-flow] #processSteps .step-number,
  .process[data-process-flow] #processSteps .process-step h3 { animation: none; }
}

