/* ==========================================================================
   Catalogue page (loaded only by /catalogue/): the problems we solve, and the
   live Attest and Prometheus visuals on the pinned stage (catalogue.js).
   The rest of the page's styles live in the Catalogue block of styles.css.
   ========================================================================== */

.chero__cue {
  transition: color 0.3s;
}

/* ---------- Problems we solve: each problem is struck out in orange as it
   scrolls in, then its fix rises beside it, with what we do about it ---------- */
.cfixes {
  --cfix-cols: 28px minmax(0, 1.05fr) minmax(0, 1fr) minmax(150px, auto);
  --cfix-gap: clamp(20px, 3vw, 48px);
}
.cfixes .shead {
  margin-bottom: clamp(36px, 5vw, 64px);
}
.cfix__head {
  display: grid;
  grid-template-columns: var(--cfix-cols);
  column-gap: var(--cfix-gap);
  margin: 0;
  padding: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.cfix__head span:last-child {
  text-align: right;
}
.cfix {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.cfix__row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--cfix-cols);
  align-items: center;
  column-gap: var(--cfix-gap);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.cfix__num {
  align-self: start;
  padding-top: 0.55em;
  font-size: 12.5px;
  color: var(--muted-2);
  transition: color 0.5s;
}
.cfix__row.is-fixed .cfix__num {
  color: var(--orange);
}
.cfix__was {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
}
/* The strike is a background drawn left to right, so it runs on across a wrapped line. */
.cfix__was s {
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 54% / 0 2px no-repeat;
  transition: background-size 0.9s var(--ease-out), color 0.6s var(--ease);
}
.cfix__row.is-fixed .cfix__was s {
  background-size: 100% 2px;
  color: var(--muted-2);
  transition-delay: 0s, 0.45s;
}
.cfix__now {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 44ch;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
}
.cfix__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.cfix__tick svg {
  width: 13px;
  height: 13px;
}
.cfix__do {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.cfix__verb {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.015em;
}
/* What we do: its icon lights orange once the problem is struck out. */
.cfix__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  transition: background-color 0.5s var(--ease) 0.75s, border-color 0.5s var(--ease) 0.75s, color 0.5s var(--ease) 0.75s;
}
.cfix__ico svg {
  width: 16px;
  height: 16px;
}
.cfix__row.is-fixed .cfix__ico {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--orange-soft);
  color: var(--orange);
}
.js .cfix__now,
.js .cfix__do {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .cfix__row.is-fixed .cfix__now {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}
.js .cfix__row.is-fixed .cfix__do {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}
@media (max-width: 900px) {
  .cfix__head {
    display: none;
  }
  .cfix__row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 14px;
    align-items: start;
  }
  .cfix__num {
    padding-top: 0.5em;
  }
  .cfix__now,
  .cfix__do {
    grid-column: 2;
  }
  .cfix__do {
    justify-self: start;
    flex-direction: row-reverse;
    gap: 10px;
  }
  .cfix__now {
    font-size: 16px;
  }
  .cfix__verb {
    font-size: 19px;
  }
  .cfix__ico {
    width: 32px;
    height: 32px;
  }
}

/* The fit card's "Your match" badge shares .mono with the card number, so keep its text white on orange. */
.fit__top > .fit__badge {
  color: #fff;
}

/* ---------- Stage visuals: room under the chip, then the product centred below it ---------- */
.cvis--attest,
.cvis--prometheus {
  align-content: center;
  padding-top: 9%;
}

/* ---------- Attest: a supervisor signs on the student's phone, and the sign-off
   lands in the year office's live feed beside it ---------- */
.sgn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(90%, 600px);
  container-type: inline-size;
}
.sgn__phone {
  flex: none;
  width: 37cqw;
  aspect-ratio: 9 / 18.6;
  margin-right: 5cqw;
  padding: 1.4cqw;
  border-radius: 7.4cqw;
  background: linear-gradient(160deg, #2a2a2a, #121212 60%);
  box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  container-type: inline-size;
}
.sgn__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18cqw 8cqw 7cqw;
  border-radius: 15cqw;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  font-size: 5cqw;
  line-height: 1.3;
}
.sgn__screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3.6cqw;
  width: 29cqw;
  height: 8.4cqw;
  margin-left: -14.5cqw;
  border-radius: 99px;
  background: #0a0a0a;
}
.sgn__status {
  position: absolute;
  left: 10cqw;
  right: 10cqw;
  top: 4.6cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 4.6cqw;
}
.sgn__status b {
  font-weight: 600;
}
.sgn__status i {
  width: 8cqw;
  height: 3.8cqw;
  border-radius: 1.2cqw;
  border: 0.5cqw solid #0a0a0a;
  background: linear-gradient(90deg, #0a0a0a 70%, transparent 70%) 0.5cqw 50% / calc(100% - 1cqw) calc(100% - 1cqw) no-repeat;
}
.sgn__app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8cqw;
}
.sgn__app b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 8.4cqw;
  letter-spacing: -0.02em;
}
.sgn__me {
  display: grid;
  place-items: center;
  width: 10.5cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 3.8cqw;
  font-weight: 600;
}
.sgn__lbl {
  font-size: 3.9cqw;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.sgn__task {
  display: block;
  margin-top: 2cqw;
  font-size: 7.4cqw;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sgn__meta {
  display: block;
  margin-top: 2.4cqw;
  overflow: hidden;
  font-size: 4.3cqw;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted-2);
}
/* The supervisor ticks each criterion, then signs. */
.sgn__crit {
  display: grid;
  margin-top: 6cqw;
  border-top: 1px solid var(--line);
}
.sgn__crit > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.6cqw 0;
  border-bottom: 1px solid var(--line);
  font-size: 4.5cqw;
}
.sgn__crit i {
  position: relative;
  width: 6.4cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s;
}
.sgn__crit i::after {
  content: "";
  position: absolute;
  left: 34%;
  top: 18%;
  width: 26%;
  height: 46%;
  border: solid #fff;
  border-width: 0 0.9cqw 0.9cqw 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.sgn:is(.is-ticking, .is-signing, .is-signed) .sgn__crit i {
  border-color: var(--orange);
  background: var(--orange);
}
.sgn:is(.is-ticking, .is-signing, .is-signed) .sgn__crit i::after {
  transform: rotate(45deg) scale(1);
}
.sgn.is-ticking .sgn__crit span:nth-child(2) i,
.sgn.is-ticking .sgn__crit span:nth-child(2) i::after {
  transition-delay: 0.28s;
}
.sgn.is-ticking .sgn__crit span:nth-child(3) i,
.sgn.is-ticking .sgn__crit span:nth-child(3) i::after {
  transition-delay: 0.56s;
}
.sgn__pad {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  margin-top: 5cqw;
  border-radius: 5cqw;
  border: 1px dashed var(--line-2);
  background: #faf9f6;
}
/* The signature rests on the signing line, the way a real one would. */
.sgn__pad svg {
  position: absolute;
  left: 7%;
  bottom: 12.5cqw;
  width: 86%;
  stroke: var(--ink);
  stroke-width: 2.4;
}
.sgn__pad path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sgn__pad > span {
  position: absolute;
  left: 6cqw;
  right: 6cqw;
  bottom: 5cqw;
  padding-top: 2.4cqw;
  border-top: 1px solid var(--line-2);
  font-size: 3.8cqw;
  color: var(--muted-2);
}
.sgn.is-signing .sgn__pad path,
.sgn.is-signed .sgn__pad path {
  stroke-dashoffset: 0;
}
.sgn.is-signing .sgn__pad path {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.45, 0, 0.3, 1);
}
.sgn.is-signing .sgn__pad path + path {
  transition-duration: 0.35s;
  transition-delay: 1.05s;
}
.sgn__btn {
  display: grid;
  margin-top: 5cqw;
  border-radius: 5cqw;
  background: var(--ink);
  color: #fff;
  font-size: 4.8cqw;
  font-weight: 600;
  transition: background-color 0.45s var(--ease), transform 0.2s var(--ease);
}
.sgn__btn > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8cqw;
  padding: 4.2cqw 0;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.sgn__btn svg {
  width: 4.8cqw;
  height: 4.8cqw;
}
.sgn__btn > span + span,
.sgn.is-signed .sgn__btn > span:first-child {
  opacity: 0;
  transform: translateY(40%);
}
.sgn.is-signed .sgn__btn {
  background: var(--orange);
}
.sgn.is-signed .sgn__btn > span + span {
  opacity: 1;
  transform: none;
}
.sgn.is-press .sgn__btn {
  transform: scale(0.95);
}
.sgn__off {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  margin-top: 4.4cqw;
  font-size: 3.8cqw;
  color: var(--muted-2);
}
.sgn__off svg {
  flex: none;
  width: 4.4cqw;
  height: 4.4cqw;
}

/* The year office: this week's count and the newest sign-offs, live */
.sgn__feed {
  flex: none;
  width: 52cqw;
  padding: 3.4cqw;
  border-radius: clamp(10px, 3cqw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1a1a1a, #111);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  container-type: inline-size;
}
.sgn__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: max(8px, 4.6cqw);
}
.sgn__head b {
  font-weight: 500;
}
.sgn__head span {
  display: inline-flex;
  align-items: center;
  gap: 1.8cqw;
  font-size: max(7px, 3.8cqw);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.sgn__head i {
  width: 2.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1cqw rgba(255, 90, 31, 0.2);
}
.sgn__count {
  display: grid;
  gap: 1cqw;
  margin: 7cqw 0 6cqw;
}
.sgn__count b {
  font-size: 15cqw;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.sgn__count span {
  font-size: max(7px, 4.2cqw);
  color: var(--muted-dark);
}
.sgn__clip {
  height: 54cqw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.sgn__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sgn__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 3.4cqw;
  height: 18cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sgn__list i {
  display: grid;
  place-items: center;
  width: 10cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #262626;
  color: #d4d4d4;
  font-size: max(6px, 3.6cqw);
  font-style: normal;
  font-weight: 600;
}
.sgn__list span {
  display: grid;
  gap: 0.6cqw;
  min-width: 0;
}
.sgn__list b,
.sgn__list small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sgn__list b {
  font-size: max(7.5px, 4.5cqw);
  font-weight: 500;
}
.sgn__list small {
  font-size: max(6.5px, 3.8cqw);
  color: var(--muted-2);
}
.sgn__list time {
  font-size: max(6.5px, 3.8cqw);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.sgn__list li:first-child time {
  color: var(--orange-2);
}

/* Phones: the stacked layer grows taller, so the phone reads larger and clears the chip. */
@media (max-width: 900px) {
  .cshow:not(.is-pinned) .cshow__layer--attest {
    aspect-ratio: 4 / 4.3;
  }
  .cvis--attest {
    padding-top: 12%;
  }
}
@media (max-width: 600px) {
  .sgn {
    width: 94%;
  }
  .sgn__phone {
    width: 44cqw;
    margin-right: 4cqw;
  }
  .sgn__feed {
    width: 50cqw;
  }
}

/* ---------- Prometheus: real interviewers take turns on a live call, with
   captions, while the part of your rubric each question tests lights up ---------- */
.ccall {
  width: min(86%, 580px);
  container-type: inline-size;
}
.ccall__win {
  overflow: hidden;
  border-radius: max(10px, 2.4cqw);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #fff;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.95), 0 0 0 5px rgba(255, 255, 255, 0.03);
  color: var(--ink);
}
.ccall__bar {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin: 0;
  padding: 1.5cqw 2cqw;
  border-bottom: 1px solid #ececec;
  background: #f6f6f4;
  font-size: max(6.5px, 1.9cqw);
}
.ccall__bar > i {
  width: 1.4cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dedbd4;
}
.ccall__bar > i:first-child {
  background: var(--orange);
}
.ccall__url {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  margin-left: 1.6cqw;
  padding: 0.5cqw 1.8cqw;
  border-radius: 99px;
  border: 1px solid #ececec;
  background: #fff;
  color: var(--muted);
}
.ccall__url svg {
  width: 1.8cqw;
  height: 1.8cqw;
}
.ccall__live {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  margin-left: auto;
  font-size: max(6px, 1.7cqw);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.ccall__live::before {
  content: "";
  width: 1.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  animation: ccall-rec 1.6s ease-in-out infinite;
}
@keyframes ccall-rec {
  50% {
    opacity: 0.35;
  }
}
.ccall__cam {
  position: relative;
  margin: 1.4cqw 1.4cqw 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: max(6px, 1.5cqw);
  background: #e9e6e0;
}
.ccall__cam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: opacity 0.38s var(--ease);
}
.ccall__cam.is-swap video {
  opacity: 0;
}
.ccall__tag {
  position: absolute;
  left: 1.8cqw;
  top: 1.8cqw;
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.7cqw 1.8cqw;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  font-size: max(6.5px, 1.9cqw);
  color: var(--muted);
}
.ccall__tag i {
  width: 1.1cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
}
.ccall__tag b {
  font-weight: 600;
  color: var(--ink);
}
.ccall__cap {
  position: absolute;
  left: 1.8cqw;
  bottom: 1.8cqw;
  max-width: 62%;
  padding: 1cqw 1.8cqw;
  border-radius: max(5px, 1.2cqw);
  background: rgba(10, 10, 10, 0.74);
  color: #fff;
  font-size: max(7px, 2.3cqw);
  line-height: 1.35;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ccall__cap.is-hide {
  opacity: 0;
  transform: translateY(0.8cqw);
}
.ccall__self {
  position: absolute;
  right: 1.8cqw;
  bottom: 1.8cqw;
  width: 16cqw;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: max(5px, 1.2cqw);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(160deg, #3b3b3b, #1b1b1b);
}
.ccall__self i {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, #6d6d6d 0 15%, transparent 16%),
    radial-gradient(ellipse 34% 30% at 50% 100%, #6d6d6d 0 97%, transparent 100%);
}
.ccall__self b {
  position: absolute;
  left: 1cqw;
  bottom: 0.7cqw;
  font-size: max(6px, 1.6cqw);
  font-weight: 600;
  color: #fff;
}
.ccall__foot {
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin: 0;
  padding: 1.6cqw 2.2cqw 1.8cqw;
  font-size: max(6.5px, 1.9cqw);
  color: var(--muted);
}
.ccall__foot b {
  font-weight: 600;
  color: var(--ink);
}
.ccall__prog {
  flex: 1;
  height: max(2px, 0.5cqw);
  overflow: hidden;
  border-radius: 99px;
  background: #ececec;
}
.ccall__prog i {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0.08);
  transform-origin: left;
}
.ccall__clock {
  font-variant-numeric: tabular-nums;
}
.ccall__rubric {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2cqw;
  margin: 2.8cqw 0 0;
  font-size: max(7px, 1.9cqw);
}
.ccall__rubric > span {
  margin-right: 0.8cqw;
  color: var(--muted-dark);
}
.ccall__rubric i {
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.8cqw 1.7cqw;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a8a8a8;
  font-style: normal;
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}
.ccall__rubric i::before {
  content: "";
  width: 1.1cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.ccall__rubric i.is-done {
  color: #e5e5e5;
}
.ccall__rubric i.is-done::before {
  background: var(--orange);
}
.ccall__rubric i.is-on {
  border-color: rgba(255, 90, 31, 0.6);
  background: rgba(255, 90, 31, 0.1);
  color: #fff;
}
.ccall__rubric i.is-on::before {
  background: var(--orange);
  box-shadow: 0 0 0 0.5cqw rgba(255, 90, 31, 0.25);
}
@container (max-width: 400px) {
  .ccall__rubric {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfix__was s,
  .js .cfix__now,
  .js .cfix__do,
  .cfix__ico {
    transition: none;
  }
  .ccall__live::before {
    animation: none;
  }
}
