/* ==========================================================================
   Performing Arts (beyond-academics.html, #performing only).
   A staggered track of four steps. Each step has a pastel round badge with its
   icon, a number, and a white card with the title and description. Hover, tap
   or keyboard focus makes a step active and its name and description appear in
   the caption under the track. "Your Stage" uses index.html's orange .hp-script.
   ========================================================================== */

#performing.pa-sec {
  position: relative;
  background: #faf7f1;
  overflow-x: clip;
}

#performing .h2 .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

#performing .pa-head {
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
}

/* one-line heading, like the reference: bold serif with the orange script accent */
#performing .pa-head .h2 {
  font-family: var(--hp-serif);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--hp-navy);
  margin: 0;
  text-wrap: balance;
}

#performing .pa-head .h2 .hp-script {
  font-size: 1.1em;
}

#performing .pa-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hp-nav);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hp-orange);
  margin-bottom: 16px;
}

#performing .pa-head .kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--hp-orange);
}

#performing .pa-head .copy-18 {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hp-ink);
  max-width: 560px;
  margin: 18px auto 0;
}

/* ---------- track ---------- */
#performing .pa-track {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

#performing .pa-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  outline: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

/* staggered heights, so the four steps climb and fall */
#performing .pa-item:nth-child(1) { margin-top: 24px; }
#performing .pa-item:nth-child(2) { margin-top: 64px; }
#performing .pa-item:nth-child(3) { margin-top: 6px; }
#performing .pa-item:nth-child(4) { margin-top: 60px; }

/* round badge: pastel ring with a white icon disc */
#performing .pa-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--tint, #fbe4ef);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}

#performing .pa-ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 42, 71, .08);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

#performing .pa-ic svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--hp-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#performing .pa-num {
  font-family: var(--hp-nav);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--hp-orange);
  margin-top: -4px;
}

/* white card with the title and description */
#performing .pa-card {
  width: 100%;
  max-width: 250px;
  padding: 18px 22px 20px;
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(14, 42, 71, .04);
  transition: border-color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}

#performing .pa-card h3 {
  font-family: var(--hp-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-navy);
  margin: 0 0 6px;
}

#performing .pa-card p {
  font-family: var(--hp-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--hp-ink);
  margin: 0;
}

/* hover, tap or focus: the active step lifts and its card takes the orange outline */
#performing .pa-item:hover,
#performing .pa-item:focus-visible,
#performing .pa-item.is-active {
  transform: translateY(-6px);
}

#performing .pa-item:hover .pa-badge,
#performing .pa-item:focus-visible .pa-badge,
#performing .pa-item.is-active .pa-badge {
  transform: scale(1.06);
  box-shadow: 0 16px 30px rgba(14, 42, 71, .10);
}

#performing .pa-item:hover .pa-ic,
#performing .pa-item.is-active .pa-ic {
  transform: rotate(-6deg) scale(1.05);
}

#performing .pa-item.is-active .pa-card {
  border-color: var(--hp-orange);
  box-shadow: 0 18px 36px rgba(14, 42, 71, .10);
}

#performing .pa-item:focus-visible {
  outline: 2px solid var(--hp-orange);
  outline-offset: 6px;
  border-radius: 18px;
}

/* ---------- tablet: two per row, stagger kept ---------- */
@media (max-width: 1024px) {
  #performing .pa-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
    margin-top: 56px;
  }
  #performing .pa-item:nth-child(n) {
    margin-top: 0;
  }
  #performing .pa-item:nth-child(even) {
    margin-top: 40px;
  }
  #performing .pa-card {
    max-width: 300px;
  }
}

/* ---------- phone: one per row, badge beside the card ---------- */
@media (max-width: 640px) {
  #performing .pa-track {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    margin-top: 40px;
  }
  #performing .pa-item,
  #performing .pa-item:nth-child(even),
  #performing .pa-item:nth-child(n) {
    margin-top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "badge card"
      "num card";
    column-gap: 16px;
    align-items: center;
    justify-items: start;
  }
  #performing .pa-badge {
    grid-area: badge;
    width: 76px;
    height: 76px;
  }
  #performing .pa-ic {
    width: 48px;
    height: 48px;
  }
  #performing .pa-num {
    grid-area: num;
    margin: 0;
    justify-self: center;
  }
  #performing .pa-card {
    grid-area: card;
    max-width: none;
    padding: 16px 18px;
  }
  #performing .pa-item:hover,
  #performing .pa-item.is-active {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #performing .pa-item,
  #performing .pa-badge,
  #performing .pa-ic,
  #performing .pa-card,
}

/* Visual Arts heading on beyond-academics.html: "Create it. See it differently." in index.html's orange script */
#visual-title .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}
