/* ==========================================================================
   STAFF PAGE
   Page-scoped styles, loaded only by staff.html on top of css/style.css.
   Reuses that file's variables and easings — nothing here is global.
   ========================================================================== */

/* Section headings sit a step under .bdx_big_title, which this page keeps for the
   h1 and the closing call to action so the two bookend everything between them. */
.st_section_title {
  font-size: clamp(2.2rem, 5vw, 6.5rem);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   HERO — SHIFT BAR
   ========================================================================== */
.st_shiftbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 60px;
  padding: 24px 0;
  border-top: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_shiftbar p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st_shiftbar p i {
  color: var(--bdx-accent-color);
  font-size: 1.15rem;
}

.st_live {
  color: var(--bdx-light-primary);
}

.st_dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--bdx-accent-color);
  animation: st_pulse 2.4s ease-out infinite;
}

@keyframes st_pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--bdx-accent-color) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ==========================================================================
   HERO — FACE STRIP
   Marquee of the nine portraits. Cloned by BdxMarquee(), so every item here
   ships twice — keep it cheap.
   ========================================================================== */
.st_facestrip {
  overflow: hidden;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12%, rgb(0, 0, 0) 88%, rgba(0, 0, 0, 0) 100%);
}

.st_facestrip .bdx_marquee {
  flex-shrink: 0;
}

.st_facestrip .bdx_marquee_item {
  flex-shrink: 0;
  width: clamp(200px, 15vw, 280px);
  padding: 0 8px;
}

.st_face {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.st_face img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s var(--bdx-transition-reveal), transform 0.7s var(--bdx-transition-reveal);
}

.st_face:hover img {
  filter: none;
  transform: scale(1.05);
}

.st_face_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background-color: var(--bdx-dark-primary);
}

.st_face_meta strong {
  display: block;
  font-family: var(--bdx-heading-font);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bdx-light-primary);
}

/* The role line only — matching bare `span` would uppercase the name too. */
.st_face_meta strong + span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st_face_meta i {
  color: var(--bdx-accent-color);
  transition: transform 0.45s var(--bdx-transition-reveal);
}

.st_face:hover .st_face_meta i {
  transform: rotate(90deg);
}

/* ==========================================================================
   ROSTER INDEX
   The showpiece: a name list that fills with accent on hover while the
   portrait rides the cursor. Portraits are built by js/staff.js.
   ========================================================================== */
.st_index {
  border-top: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1.1fr) minmax(0, 1fr) 120px 40px;
  grid-template-areas: "num name role ext go";
  align-items: center;
  gap: 30px;
  padding: 26px 24px;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bdx-accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--bdx-transition-reveal);
}

.st_row:hover::after {
  transform: scaleY(1);
}

.st_row > * {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--bdx-transition-reveal), transform 0.45s var(--bdx-transition-reveal);
}

.st_row:focus-visible {
  outline: 2px solid var(--bdx-accent-color);
  outline-offset: -2px;
}

.st_row_num {
  grid-area: num;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--bdx-light-secondary);
}

.st_row_thumb {
  grid-area: thumb;
  display: none;
}

.st_row_name {
  grid-area: name;
  font-family: var(--bdx-heading-font);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bdx-light-primary);
}

.st_row_role {
  grid-area: role;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.st_row_ext {
  grid-area: ext;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st_row_go {
  grid-area: go;
  display: flex;
  justify-content: flex-end;
  font-size: 1.4rem;
  color: var(--bdx-light-secondary);
}

.st_row:hover .st_row_num,
.st_row:hover .st_row_name,
.st_row:hover .st_row_role,
.st_row:hover .st_row_ext,
.st_row:hover .st_row_go {
  color: var(--bdx-dark-primary);
}

.st_row:hover .st_row_num,
.st_row:hover .st_row_role,
.st_row:hover .st_row_ext {
  transform: translateX(8px);
}

.st_row:hover .st_row_name {
  transform: translateX(16px);
}

.st_row:hover .st_row_go {
  transform: translateX(-8px);
}

/* Cursor-following portrait. Built once by js/staff.js on desktop only. */
.st_follow {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 300px;
  z-index: 999;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  scale: 0.86;
  rotate: -3deg;
  transition: opacity 0.35s var(--bdx-transition-reveal), scale 0.35s var(--bdx-transition-reveal);
}

.st_follow.is-visible {
  opacity: 1;
  scale: 1;
}

.st_follow_inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--bdx-transition-reveal);
}

.st_follow_inner img {
  width: 230px;
  height: 300px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   PERSONNEL FILES
   One spread per staffer, alternating sides for rhythm.
   ========================================================================== */
.st_file {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 60px;
  align-items: start;
  padding: 90px 0;
  scroll-margin-top: 120px;
  border-top: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_file:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.st_file:last-of-type {
  padding-bottom: 0;
}

/* Alternating sides. `order` alone would leave the portrait in the wide track and
   squeeze the copy into the narrow one, so the tracks flip with it. */
.st_file:nth-of-type(even) {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.st_file:nth-of-type(even) .st_file_media {
  order: 2;
}

.st_file_frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--bdx-dark-primary);
}

.prx_img picture,
.prx_img picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.prx_img picture img {
  object-fit: cover;
}

/* height:auto is load-bearing — the width/height attributes on the <img> are
   presentation hints, and an explicit height beats aspect-ratio. */
.st_file_frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--bdx-transition-reveal);
}

.st_file:hover .st_file_frame img {
  transform: scale(1.04);
}

.st_file_num {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 13px;
  border-radius: 3px;
  font-family: var(--bdx-heading-font);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--bdx-light-primary);
  background-color: rgba(0, 0, 0, 0.45);
}

.st_file_ext {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 7px 18px;
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bdx-dark-primary);
  background-color: var(--bdx-accent-color);
}

.st_file_role {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st_file_role::before {
  content: "";
  width: 40px;
  height: 1px;
  flex-shrink: 0;
  background-color: var(--bdx-accent-color);
}

.st_file_name {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.st_file_sign {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 18px;
  border: 1px solid color-mix(in srgb, var(--bdx-accent-color) 55%, transparent);
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bdx-accent-color);
}

.st_file_desc {
  max-width: 620px;
  margin-bottom: 30px;
}

.st_label {
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bdx-light-secondary);
}

.st_file_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

/* ==========================================================================
   CHIPS — shared by the task lists and the industries strip
   ========================================================================== */
.st_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}

.st_chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--bdx-light-primary) 20%, transparent);
  border-radius: 3px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--bdx-light-secondary);
  transition: background-color 0.3s var(--bdx-transition-reveal), border-color 0.3s var(--bdx-transition-reveal),
    color 0.3s var(--bdx-transition-reveal);
}

.st_chips a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  flex-shrink: 0;
  background-color: var(--bdx-accent-color);
  transition: background-color 0.3s var(--bdx-transition-reveal);
}

.st_chips a:hover,
.st_chips a:focus-visible {
  background-color: var(--bdx-accent-color);
  border-color: var(--bdx-accent-color);
  color: var(--bdx-dark-primary);
}

.st_chips a:hover::before,
.st_chips a:focus-visible::before {
  background-color: var(--bdx-dark-primary);
}

/* ==========================================================================
   HOUSE RULES
   ========================================================================== */
.st_rules {
  list-style: none;
  padding: 0;
  margin: 0;
}

.st_rules li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_rules li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--bdx-light-primary) 14%, transparent);
}

.st_rules i {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--bdx-accent-color);
}

.st_rules p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--bdx-light-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
  .st_row {
    grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 110px 34px;
    gap: 20px;
  }
}

@media (max-width: 991.98px) {
  /* No hover on touch, so the portrait comes back into the row itself. */
  .st_row {
    grid-template-columns: 34px 64px minmax(0, 1fr) 24px;
    grid-template-areas:
      "num thumb name go"
      "num thumb role go"
      "num thumb ext  go";
    gap: 2px 16px;
    padding: 18px 0;
  }

  .st_row::after {
    display: none;
  }

  .st_row_thumb {
    display: block;
    align-self: center;
  }

  .st_row_thumb img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: cover;
    border-radius: 3px;
  }

  .st_row_name {
    font-size: 1.6rem;
  }

  .st_row_role,
  .st_row_ext {
    font-size: 0.78rem;
  }

  .st_row_go {
    font-size: 1.1rem;
  }

  .st_file,
  .st_file:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 60px 0;
  }

  .st_file:nth-of-type(even) .st_file_media {
    order: 0;
  }

  .st_shiftbar {
    gap: 14px 30px;
  }

  .st_facestrip .bdx_marquee_item {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st_dot {
    animation: none;
  }

  .st_row > *,
  .st_row::after,
  .st_face img,
  .st_file_frame img,
  .st_follow,
  .st_follow_inner {
    transition: none;
  }
}
