/* Company process. The steps read as an accordion beside one stage that
   pictures the open step; a narrow screen shows the picture under the open
   step instead. Each picture is drawn on a 40 × 30em canvas, so it scales
   with the stage. */
.company-process {
  --cp-ink: #111318;
  --cp-red: #ed1c24;
  --cp-ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  /* How long an open step waits before the next one opens on its own. */
  --cp-step-duration: 6s;
}

.company-process .cp-header {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.company-process .cp-header > :is(h2, p) {
  max-width: 56rem;
}

/* The inquiry sits under the summary, or beside it on a wide screen, level
   with its last line. */
.company-process .cp-actions {
  display: flex;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .company-process .cp-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 48px;
    align-items: end;
  }

  .company-process .cp-header > :is(h2, p) {
    grid-column: 1;
  }

  .company-process .cp-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

.company-process .cp-steps {
  display: grid;
  gap: 12px;
}

/* A narrow screen lays the steps and the stage out as one sequence, so the
   stage can follow whichever step is open. */
.company-process .cp-step-list {
  display: contents;
}

/* Each step is a soft tray around a card that turns white while it is open. */
.company-process .cp-step {
  order: var(--cp-order, 0);
  min-width: 0;
  padding: 8px;
  border-radius: 32px;
  background: #f4f4f5;
  box-shadow: inset 0 1px 0 #e4e4e7;
}

.company-process .cp-step-card {
  border: 1px solid transparent;
  border-radius: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.company-process .cp-step.is-open .cp-step-card {
  border-color: #ececee;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.company-process .cp-step-heading {
  margin: 0;
}

.company-process .cp-step-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  border: 0;
  border-radius: 24px;
  background: none;
  color: var(--cp-ink);
  text-align: left;
  cursor: pointer;
}

.company-process .cp-step-toggle:focus-visible {
  outline: 2px solid var(--cp-ink);
  outline-offset: 2px;
}

.company-process .cp-step-number {
  flex: none;
  padding: 2px 7px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.company-process .cp-step-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: var(--company-weight-strong, 600);
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.company-process .cp-step-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #71717a;
  transition: transform 0.35s var(--cp-ease), background-color 0.3s ease;
}

/* Open, the chevron turns to point at the picture. */
.company-process .cp-step.is-open .cp-step-chevron {
  background: var(--cp-ink);
  transform: rotate(-90deg);
}

.company-process .cp-step-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The details fold to nothing; vertical spacing lives inside the clipped box. */
.company-process .cp-step-body {
  display: grid;
  grid-template-rows: 1fr;
}

.company-process .cp-step-inner {
  min-height: 0;
  overflow: hidden;
  padding-inline: 20px;
}

/* The bar keeps one place at the foot of every step. Its gap below is padding
   rather than a margin, so it counts toward the height all open steps share,
   and the bar settles at the bottom however many points a step lists. */
.company-process .cp-step-detail {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.company-process .cp-step-lead {
  margin: 0;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.company-process .cp-points {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.company-process .cp-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.company-process .cp-points svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--cp-red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fills while the open step waits for the next one; it shows only when the
   steps take turns on their own. */
.company-process .cp-step-progress {
  display: block;
  width: 40px;
  height: 8px;
  flex: none;
  margin: auto 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e4e7;
  visibility: hidden;
}

.company-process[data-process-auto] .cp-step-progress {
  visibility: visible;
}

/* The fill slides in rather than widening, so it never needs layout. */
.company-process .cp-step-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cp-red);
  transform: translateX(-100%);
}

/* A step pictured by a demo fills its bar from script as the demo plays;
   any other fills it over its own length. */
.company-process[data-process-auto] .cp-step.is-open:not([data-process-demo]) [data-process-progress] {
  animation: cp-progress var(--cp-step-duration) linear both;
}

/* It keeps its time while a reader holds the steps, as a demo plays on, and
   rests only while the steps are away or the page is hidden. */
.company-process[data-process-paused] .cp-step.is-open:not([data-process-demo]) [data-process-progress] {
  animation-play-state: paused;
}

/* The stage pictures the open step. Its pictures sit out of flow, so on a
   wide screen the steps alone set its height. */
.company-process .cp-stage {
  position: relative;
  /* Script moves the stage after the open step. */
  order: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 88% 0%, rgba(237, 28, 36, 0.16), rgba(237, 28, 36, 0) 55%), #121316;
}

/* A picture that is not shown skips rendering altogether once it has faded,
   so changing steps only ever styles the pictures coming and going. */
.company-process .cp-visual {
  position: absolute;
  inset: clamp(12px, 1.4vw, 20px);
  display: grid;
  place-items: center;
  container-type: size;
  content-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s, content-visibility 0s 0.3s allow-discrete;
}

.company-process .cp-visual.is-current {
  content-visibility: visible;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* A demo fills the stage edge to edge: its frames carry the stage's own
   background, so it needs no inset. While another step is open it stays
   rendered, paused on its first frame, only transparent: a video the page
   skips has its player suspended, and waking it delays the start. */
.company-process .cp-visual--demo {
  inset: 0;
  content-visibility: visible;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.company-process .cp-demo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #121316;
}

/* Script folds every step but the open one; without it all of them read. */
.company-process[data-process-ready] .cp-step:not(.is-open) .cp-step-body {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.company-process[data-process-ready] .cp-step:not(.is-open) .cp-step-inner {
  opacity: 0;
}

@media (max-width: 767px) {
  .company-process .cp-step {
    border-radius: 26px;
  }

  .company-process .cp-step-card,
  .company-process .cp-step-toggle {
    border-radius: 18px;
  }

  .company-process .cp-step-toggle {
    gap: 10px;
    padding: 14px 14px 14px 16px;
  }

  .company-process .cp-step-inner {
    padding-inline: 16px;
  }

  /* A phone draws the picture a little larger on a narrower canvas. */
  .company-process .cpv {
    font-size: calc(min(100cqw, 100cqh * 4 / 3) / 36);
  }

  

  

  

  

  
}

/* A wide screen sets the stage beside the steps. Script gives it the steps'
   height at rest, and every open step the same height, so the stage never
   follows the steps as they fold: that would redraw all five pictures on
   every frame. */
@media (min-width: 1024px) {
  .company-process .cp-steps {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
    align-items: start;
  }

  .company-process .cp-step-list {
    display: grid;
    gap: 12px;
  }

  .company-process .cp-stage {
    border-radius: 32px;
  }
}

/* ---------------------------------------------------------------- canvas */

.company-process .cpv {
  position: relative;
  width: min(100cqw, 100cqh * 4 / 3);
  aspect-ratio: 4 / 3;
  color: var(--cp-ink);
  font-size: calc(min(100cqw, 100cqh * 4 / 3) / 40);
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.company-process .cpv > * {
  position: absolute;
}

.company-process .cpv img {
  max-width: none;
}

.company-process .cpv-card {
  border-radius: 1.1em;
  background: #fff;
  box-shadow: 0 1.8em 3.4em -1.6em rgba(0, 0, 0, 0.8), 0 0.15em 0.5em rgba(0, 0, 0, 0.22);
}

.company-process .cpv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
}

.company-process .cpv-card-title {
  font-size: 1.05em;
  font-weight: var(--company-weight-strong, 600);
  letter-spacing: -0.035em;
}

.company-process .cpv-check {
  display: inline-grid;
  width: 1.5em;
  height: 1.5em;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--cp-red);
}

.company-process .cpv-check svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-process .cpv-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--cp-red);
  font-size: 0.7em;
  font-weight: var(--company-weight-strong, 600);
  letter-spacing: 0.04em;
}

.company-process .cpv-live > span {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: currentColor;
}

.company-process .cpv-emoji {
  z-index: 3;
  width: 7em;
  height: 7em;
}

/* The shadow belongs to the picture that floats. On the box around it, every
   frame of the float would repaint the shadow on the main thread; here it is
   drawn once and moves with the picture on the compositor. */
.company-process .cpv-emoji img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1.1em 1.3em rgba(0, 0, 0, 0.5));
}

/* 2 · Schools */
.company-process .cpv-map {
  left: 1em;
  right: 1em;
  top: 2.4em;
  aspect-ratio: 1000 / 620;
}

.company-process .cpv-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.company-process .cpv-pin {
  position: absolute;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  translate: -50% -50%;
}

.company-process .cpv-pin--selected {
  z-index: 1;
  width: 0.95em;
  height: 0.95em;
  background: var(--cp-red);
  box-shadow: 0 0 0 0.22em rgba(237, 28, 36, 0.28);
}

.company-process .cpv-pin--selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cp-red);
  opacity: 0;
}

.company-process .cpv-callout {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
}

.company-process .cpv-callout-stem {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
}

.company-process .cpv-callout-stem--y {
  width: 1px;
  translate: -0.5px 0;
}

.company-process .cpv-callout-stem--x {
  height: 1px;
  translate: 0 -0.5px;
}

.company-process .cpv-callout-box {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.3em;
  padding: 0 0.75em 0 0.3em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.9em 1.8em -0.7em rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

.company-process .cpv-callout-box > img {
  width: 1.7em;
  height: 1.7em;
  flex: none;
  padding: 0.14em;
  border: 1px solid #eceef1;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.company-process .cpv-callout-name {
  max-width: 11em;
  overflow: hidden;
  color: var(--cp-ink);
  font-size: 0.78em;
  font-weight: var(--company-weight-strong, 600);
  text-overflow: ellipsis;
}

.company-process .cpv-legend {
  left: 1.2em;
  bottom: 1.2em;
  display: flex;
  gap: 1.1em;
  padding: 0.55em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9cbd0;
  font-size: 0.74em;
  font-weight: var(--company-weight-strong, 600);
}

.company-process .cpv-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.company-process .cpv-legend strong {
  color: #fff;
  font-weight: var(--company-weight-figure, 700);
}

.company-process .cpv-legend-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.company-process .cpv-legend-dot--selected {
  background: var(--cp-red);
  box-shadow: 0 0 0 0.2em rgba(237, 28, 36, 0.28);
}

/* A small canvas keeps each school's logo at its pin and drops the name. */
@container (max-width: 520px) {
  .company-process .cpv-callout-name {
    display: none;
  }

  .company-process .cpv-callout-box {
    padding-right: 0.3em;
  }

  /* Without its name a label above or below is small enough to centre on its
     pin, wherever the canvas edge placed the full label. */
  .company-process .cpv-callout-box--y {
    right: auto !important;
    left: 0 !important;
    translate: -50% 0;
  }
}

.company-process .cpv-emoji--schools {
  left: 24.4em;
  top: 0.2em;
  width: 6.4em;
  height: 6.4em;
}

/* 4 · Event */
.company-process .cpv-photos {
  inset: 0;
}

.company-process .cpv-photo {
  position: absolute;
  width: 15em;
  padding: 0.4em;
  border-radius: 0.7em;
  background: #fff;
  box-shadow: 0 1.6em 3em -1.4em rgba(0, 0, 0, 0.85);
  transform: rotate(var(--r, 0deg));
}

.company-process .cpv-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.4em;
  object-fit: cover;
}

.company-process .cpv-photo--1 { left: 2.2em; top: 2.8em; }
.company-process .cpv-photo--2 { left: 7.6em; top: 9.2em; }
.company-process .cpv-photo--3 { left: 2.8em; top: 16.4em; }

.company-process .cpv-runsheet {
  z-index: 2;
  right: 2em;
  top: 6.2em;
  width: 17.6em;
  padding: 1.2em 1.3em 1em;
}

.company-process .cpv-runsheet ol {
  margin: 0.8em 0 0;
  padding: 0;
  list-style: none;
}

.company-process .cpv-run {
  display: grid;
  grid-template-columns: 3.3em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75em;
  border-top: 1px solid #f0f1f3;
}

.company-process .cpv-run-time {
  color: #8a8f98;
  font-size: 0.76em;
  font-weight: var(--company-weight-strong, 600);
  font-variant-numeric: tabular-nums;
}

.company-process .cpv-run-label {
  overflow: hidden;
  font-size: 0.86em;
  font-weight: var(--company-weight-strong, 600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-process .cpv-run--next .cpv-run-label {
  color: #a0a4ab;
}

.company-process .cpv-run .cpv-check {
  width: 1.35em;
  height: 1.35em;
  background: var(--cp-ink);
}

.company-process .cpv-run-now {
  padding: 0.32em 0.62em;
  border-radius: 999px;
  background: var(--cp-red);
  color: #fff;
  font-size: 0.66em;
  font-weight: var(--company-weight-strong, 600);
  white-space: nowrap;
}

.company-process .cpv-runsheet-foot {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding-top: 0.85em;
  border-top: 1px solid #f0f1f3;
  color: #5b5f67;
  font-size: 0.74em;
  font-weight: 600;
}

.company-process .cpv-runsheet-foot svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* The canopy is mostly open air under its roof, so it stands a little larger
   than the other steps' emoji to carry the same weight. */
.company-process .cpv-emoji--event {
  right: 1.1em;
  top: -0.1em;
  width: 7.4em;
  height: 7.4em;
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .company-process .cp-anim {
    --d: 0s;
    --cp-anim: cp-rise;
    --cp-duration: 0.7s;
  }

  .company-process .cp-anim--lift { --cp-anim: cp-lift; --cp-duration: 0.85s; }
  .company-process .cp-anim--pop { --cp-anim: cp-pop; --cp-duration: 0.5s; }
  .company-process .cp-anim--emoji { --cp-anim: cp-emoji; --cp-duration: 0.9s; }
  .company-process .cp-anim--fade { --cp-anim: cp-fade; --cp-duration: 0.9s; }
  .company-process .cp-anim--pin { --cp-anim: cp-pin; --cp-duration: 0.55s; }
  
  
  
  
  .company-process .cp-anim--deal { --cp-anim: cp-deal; --cp-duration: 0.9s; }
  
  .company-process .cp-anim--stem--y { --cp-anim: cp-stem-y; --cp-duration: 0.35s; }
  .company-process .cp-anim--stem--x { --cp-anim: cp-stem-x; --cp-duration: 0.35s; }

  /* A picture on the stage waits, hidden, until it plays. */
  .company-process[data-process-ready] .cp-visual.is-current:not(.is-active) .cp-anim {
    opacity: 0;
  }

  .company-process[data-process-ready] .cp-visual.is-active .cp-anim {
    animation: var(--cp-anim) var(--cp-duration) var(--cp-ease) var(--d) both;
  }

  .company-process[data-process-ready] .cp-visual.is-active .cpv-check path {
    stroke-dasharray: 1;
    animation: cp-draw 0.5s ease-out calc(var(--d, 0s) + 0.18s) both;
  }

  /* An opening step draws its checks as its details unfold. */
  .company-process[data-process-ready] .cp-step.is-open .cp-points path {
    stroke-dasharray: 1;
    animation: cp-draw 0.5s ease-out 0.25s both;
  }

  .company-process[data-process-ready] .cp-visual.is-active .cpv-emoji img {
    animation: cp-float 5.5s ease-in-out 1.2s infinite;
  }

  .company-process[data-process-ready] .cp-visual.is-active .cpv-pin--selected::after {
    animation: cp-pulse 2.2s ease-out calc(var(--d) + 0.5s) infinite;
  }

  .company-process[data-process-ready] .cp-visual.is-active .cpv-live > span {
    animation: cp-blink 1.4s ease-in-out infinite;
  }

  .company-process[data-process-offscreen] .cp-visual * {
    animation-play-state: paused !important;
  }

  .company-process[data-process-ready] .cp-step-body {
    transition: grid-template-rows 0.45s var(--cp-ease), visibility 0s;
  }

  .company-process[data-process-ready] .cp-step-inner {
    transition: opacity 0.35s ease 0.08s;
  }

  .company-process[data-process-ready] .cp-step:not(.is-open) .cp-step-body {
    transition: grid-template-rows 0.4s var(--cp-ease), visibility 0s 0.4s;
  }

  .company-process[data-process-ready] .cp-step:not(.is-open) .cp-step-inner {
    transition: opacity 0.2s ease;
  }
}

@keyframes cp-progress {
  to { transform: translateX(0); }
}

@keyframes cp-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
}

@keyframes cp-lift {
  from { opacity: 0; transform: translate3d(0, 1.8em, 0) scale(0.97); }
}

@keyframes cp-pop {
  from { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.12); }
}

@keyframes cp-emoji {
  from { opacity: 0; transform: translate3d(0, 1.4em, 0) scale(0.55) rotate(-14deg); }
  60% { opacity: 1; transform: translate3d(0, -0.2em, 0) scale(1.06) rotate(3deg); }
}

@keyframes cp-float {
  50% { transform: translate3d(0, -0.45em, 0) rotate(-2.5deg); }
}

@keyframes cp-fade {
  from { opacity: 0; }
}

@keyframes cp-pin {
  from { opacity: 0; transform: translate3d(0, -1.4em, 0) scale(0.3); }
}

@keyframes cp-pulse {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0; transform: scale(3.4); }
}

@keyframes cp-stem-y {
  from { transform: scaleY(0); }
}

@keyframes cp-stem-x {
  from { transform: scaleX(0); }
}

@keyframes cp-deal {
  from { opacity: 0; transform: translate3d(-5em, 3em, 0) rotate(-26deg) scale(0.9); }
}

@keyframes cp-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes cp-blink {
  50% { opacity: 0.25; }
}
