/* Roster: hiring challenges. The submissions feed (a phone-like, TikTok-style review feed) plus the homepage
   section that hosts it. Self-contained: every class is prefixed hc-, it only relies on brand.css tokens.
   Loaded by index.html (section #challenges) and by hiring-challenges.html (the feed in its hero). */

.hc-feed, .hc-sec, .hc-card-ui {
  --hc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hc-grad-word: linear-gradient(100deg, #E8502C 0%, #FF7A4F 32%, #E0739B 66%, #9C7BE0 100%);
  --hc-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -28px rgba(20,18,16,.35), 0 2px 6px -2px rgba(20,18,16,.08);
  --hc-heart: #FF4F6D;
}
.hc-feed, .hc-feed *, .hc-feed *::before, .hc-feed *::after, .hc-sec, .hc-sec *, .hc-sec *::before, .hc-sec *::after, .hc-card-ui, .hc-card-ui * { box-sizing: border-box; }
.hc-feed :where(p, ol, ul, h2, h3), .hc-sec :where(h2, h3, p, ol, ul, dl, dd), .hc-card-ui :where(p, ol, ul) { margin: 0; }
.hc-feed :where(ol, ul), .hc-sec :where(ol, ul), .hc-card-ui :where(ol, ul) { padding: 0; }
.hc-feed img, .hc-feed svg, .hc-card-ui img { display: block; }
.hc-mono { font-family: var(--hc-mono); font-feature-settings: "zero" 0; letter-spacing: 0; }

/* =====================================================================================
   THE FEED
   ===================================================================================== */
.hc-feed { --w: 290px; position: relative; display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; }
.hc-phone { position: relative; flex: none; width: var(--w); max-width: 100%; aspect-ratio: 9 / 18.6; border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .032);
  background: linear-gradient(160deg, #2A2622, #141210 38%, #0B0A09); container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 1px 0 rgba(255,255,255,.18) inset, 0 50px 90px -40px rgba(20,18,16,.75), 0 18px 36px -24px rgba(20,18,16,.6); }
.hc-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #0E0D0C; isolation: isolate; outline: none; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hc-screen:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.hc-island { position: absolute; z-index: 6; left: 50%; top: 2.6cqw; width: 26cqw; height: 7.4cqw; margin-left: -13cqw; border-radius: 99px; background: #000; pointer-events: none; }

/* status bar and header float over the video */
.hc-status { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 3.6cqw 8.4cqw 0 9.4cqw; font: 600 4.3cqw/1 var(--font-ui); color: #fff; pointer-events: none; }
.hc-status svg { height: 3.6cqw; width: auto; }
.hc-top { position: absolute; z-index: 5; inset: 0 0 auto 0; padding: 14.6cqw 5.4cqw 10cqw; display: flex; align-items: flex-start; justify-content: space-between; gap: 3cqw; color: #fff; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.3) 60%, transparent); }
.hc-top-t { min-width: 0; }
.hc-top-t b { display: block; font: 600 4.6cqw/1.2 var(--font-ui); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-top-t span { display: block; margin-top: 1.2cqw; font: 500 3.7cqw/1.2 var(--font-ui); color: rgba(255,255,255,.72); white-space: nowrap; }
.hc-cd { flex: none; text-align: right; }
.hc-cd small { display: block; font: 500 3.3cqw/1.2 var(--font-ui); color: rgba(255,255,255,.72); white-space: nowrap; }
.hc-cd span { display: inline-flex; align-items: center; gap: 1.6cqw; margin-top: 1.2cqw; font-family: var(--hc-mono); font-size: 4cqw; font-weight: 500; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-cd span::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 9px; background: #FF5A4E; box-shadow: 0 0 2.6cqw #FF5A4E; animation: hc-blink 1.6s ease-in-out infinite; }
@keyframes hc-blink { 50% { opacity: .3; } }

/* the vertical track of submissions */
.hc-track { position: absolute; inset: 0; transform: translate3d(0, calc(var(--i, 0) * -100% + var(--dy, 0px)), 0); transition: transform .62s cubic-bezier(.22, .9, .12, 1); will-change: transform; }
.hc-track.is-drag, .hc-track.is-jump { transition: none; }
.hc-card { position: absolute; left: 0; right: 0; height: 100%; top: calc(var(--n) * 100%); overflow: hidden; background: #1A1714; }
.hc-frame { position: absolute; inset: 0; overflow: hidden; }
.hc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 31%) 50%; transform-origin: var(--ox, 38%) var(--oy, 32%); transform: scale(var(--z, 1)); transition: transform 7s linear; }
.hc-card.is-on .hc-img { transform: scale(calc(var(--z, 1) * 1.06)); }
.hc-card[data-grade="warm"] .hc-img { filter: sepia(.18) saturate(1.25) contrast(1.04); }
.hc-card[data-grade="clean"] .hc-img { filter: saturate(1.08) contrast(1.06) brightness(1.03); }
.hc-card[data-grade="bw"] .hc-img { filter: grayscale(.92) contrast(1.22) brightness(1.02); }
.hc-card[data-grade="cool"] .hc-img { filter: hue-rotate(-10deg) saturate(.86) contrast(1.1) brightness(1.02); }
.hc-card[data-grade="punch"] .hc-img { filter: saturate(1.45) contrast(1.16); }
.hc-card[data-grade="fade"] .hc-img { filter: contrast(.88) saturate(.82) brightness(1.08) sepia(.08); }
.hc-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.18) 66%, rgba(0,0,0,.72)); }

/* captions: every entrant captions the same line their own way */
.hc-cap { position: absolute; z-index: 2; left: 7cqw; right: 20cqw; pointer-events: none; }
.hc-cap-k { top: 55%; left: 8cqw; right: 8cqw; text-align: center; font: 850 7.4cqw/1.08 var(--font-ui); letter-spacing: -.01em; text-transform: uppercase; color: #fff;
  text-shadow: 0 .5cqw 0 rgba(0,0,0,.55), 0 0 3cqw rgba(0,0,0,.35); -webkit-text-stroke: .25cqw rgba(0,0,0,.55); paint-order: stroke fill; }
.hc-cap-k span { display: inline-block; transition: color .12s, transform .25s var(--ease-spring); }
.hc-cap-k span.is-w { color: #FFE14D; transform: scale(1.08); }
.hc-cap-box { top: 57%; left: 8cqw; right: 8cqw; text-align: center; }
.hc-cap-box span { display: inline; padding: .9cqw 2.4cqw; border-radius: 2cqw; background: #fff; color: #111; font: 650 5.5cqw/1.62 var(--font-ui); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hc-cap-serif { bottom: 31%; font: italic 400 8.2cqw/1.04 var(--font-display); letter-spacing: -.02em; color: #fff; text-shadow: 0 1cqw 4cqw rgba(0,0,0,.5); }
.hc-cap-serif i { display: block; margin-top: 2cqw; width: 12cqw; height: .5cqw; background: #fff; opacity: .8; }
.hc-cap-punch { top: 51%; left: 8cqw; right: 8cqw; text-align: center; color: #fff; }
.hc-cap-punch b { display: block; font: 900 11.5cqw/.92 var(--font-ui); letter-spacing: -.035em; text-transform: uppercase; }
.hc-cap-punch b em { font-style: normal; color: #B6F36A; }
.hc-cap-punch span { display: inline-block; margin-top: 2.4cqw; font: 600 4.4cqw/1 var(--font-ui); padding: 1.4cqw 2.6cqw; background: rgba(0,0,0,.55); border-radius: 1.4cqw; }
.hc-cap-sub { bottom: 31%; left: 8cqw; right: 8cqw; text-align: center; font: 600 5cqw/1.3 var(--font-ui); color: #fff; text-shadow: 0 0 1.2cqw #000, 0 0 .4cqw #000; }
.hc-cap-hook { top: 58%; left: 6cqw; right: 6cqw; }
.hc-cap-hook b { display: inline; font: 800 6.6cqw/1.28 var(--font-ui); letter-spacing: -.015em; color: #141210; background: #FFB45A; padding: .6cqw 2cqw; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the right rail: the employer's score and the shortlist heart */
.hc-rail { position: absolute; z-index: 4; right: 3.6cqw; bottom: 27cqw; display: flex; flex-direction: column; align-items: center; gap: 4.4cqw; color: #fff; }
.hc-score { text-align: center; text-shadow: 0 .6cqw 2.4cqw rgba(0,0,0,.45); }
.hc-score b { display: block; font: 400 8.8cqw/1 var(--font-display); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.hc-score span { display: block; margin-top: 1cqw; font: 600 2.9cqw/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.hc-heart { position: relative; display: grid; place-items: center; width: 13.4cqw; height: 13.4cqw; border-radius: 99px; border: 0; padding: 0; cursor: pointer; color: #fff; background: rgba(20,18,16,.42);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; transition: background-color .3s, transform var(--dur-press) ease-out; }
.hc-heart svg { width: 54%; height: 54%; overflow: visible; }
.hc-heart path { fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .25s, stroke .25s; transform-origin: 50% 55%; }
.hc-heart:active { transform: scale(.9); }
.hc-heart[aria-pressed="true"] { background: rgba(255,255,255,.95); }
.hc-heart[aria-pressed="true"] path { fill: var(--hc-heart); stroke: var(--hc-heart); animation: hc-pop .5s var(--ease-spring); }
@keyframes hc-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.hc-heart::after { content: ""; position: absolute; inset: -2px; border-radius: 99px; border: 2px solid var(--hc-heart); opacity: 0; pointer-events: none; }
.hc-heart.is-burst::after { animation: hc-ring .6s var(--ease-out); }
@keyframes hc-ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
.hc-heart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hc-rail small { display: block; margin-top: -2.6cqw; font: 600 2.9cqw/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.82); text-shadow: 0 0 2cqw rgba(0,0,0,.5); }

/* who made it */
.hc-who { position: absolute; z-index: 3; left: 5.4cqw; right: 22cqw; bottom: 12cqw; display: flex; align-items: center; gap: 3cqw; color: #fff; }
.hc-av { position: relative; flex: none; width: 11cqw; height: 11cqw; border-radius: 99px; overflow: hidden; box-shadow: 0 0 0 .6cqw rgba(255,255,255,.9); background: linear-gradient(135deg, var(--a0, var(--apricot)), var(--a1, var(--rose)) 55%, var(--a2, var(--lilac))); display: grid; place-items: center; }
.hc-av img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ap, 50% 30%); }
.hc-av i { font: 650 4.2cqw/1 var(--font-ui); font-style: normal; color: #141210; }
.hc-who > div > b { display: block; font: 600 4.5cqw/1.2 var(--font-ui); white-space: nowrap; text-shadow: 0 0 2cqw rgba(0,0,0,.45); }
.hc-who > div > span { display: block; margin-top: .8cqw; font: 500 3.6cqw/1.2 var(--font-ui); color: rgba(255,255,255,.8); white-space: nowrap; text-shadow: 0 0 2cqw rgba(0,0,0,.45); }

/* playback */
.hc-prog { position: absolute; z-index: 3; left: 5.4cqw; right: 5.4cqw; bottom: 5.4cqw; display: flex; align-items: center; gap: 2.4cqw; }
.hc-bar { position: relative; flex: 1; height: .9cqw; border-radius: 9px; background: rgba(255,255,255,.28); overflow: hidden; }
.hc-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: #fff; border-radius: inherit; }
.hc-tc { font-family: var(--hc-mono); font-size: 3.2cqw; line-height: 1; color: rgba(255,255,255,.86); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* a soft hint on first view: the next card peeks up once */
.hc-screen.is-hint .hc-track { transform: translate3d(0, calc(var(--i, 0) * -100% - 6%), 0); transition-duration: .55s; }

/* controls beside the phone */
.hc-ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hc-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--cream); color: var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease-spring), border-color .3s, transform var(--dur-press) ease-out; }
.hc-nav svg { width: 16px; height: 16px; }
.hc-nav:active { transform: scale(.94); }
.hc-nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .hc-nav:hover { background: #fff; border-color: rgba(20,18,16,.32); } }
.hc-pos { font-family: var(--hc-mono); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; padding: 4px 0; min-width: 3.4em; text-align: center; }
.hc-feed.on-grad .hc-nav { background: rgba(251,249,244,.86); border-color: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hc-feed.on-grad .hc-pos { color: var(--ink-2); }
@media (max-width: 639px) {
  .hc-feed { flex-direction: column; gap: 12px; }
  .hc-ctrl { flex-direction: row; }
}

/* =====================================================================================
   SMALL UI CARDS AROUND THE PHONE (prize pool, brief, shortlist)
   ===================================================================================== */
.hc-card-ui { position: relative; border-radius: 20px; padding: 16px 18px; background: rgba(251,249,244,.9); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--hc-shadow); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); color: var(--ink); }
.hc-k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hc-prize ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.hc-prize li { display: grid; grid-template-columns: 2.4em auto 1fr; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hc-prize li > span:first-child { font-family: var(--hc-mono); font-size: 12px; color: var(--mute); }
.hc-prize li b { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc-prize li em { font-style: normal; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.hc-prize .hc-fb { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.hc-prize .hc-fb::before, .hc-dotline::before { content: ""; width: 6px; height: 6px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--coral), var(--apricot)); }

.hc-list { min-width: 196px; }
.hc-list-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hc-list-h b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hc-avs { display: flex; align-items: center; min-height: 34px; margin-top: 10px; }
.hc-avs .hc-av { width: 32px; height: 32px; margin-left: -8px; box-shadow: 0 0 0 2px var(--cream); animation: hc-in .6s var(--ease-spring) both; }
.hc-avs .hc-av:first-child { margin-left: 0; }
.hc-avs .hc-av i { font-size: 12px; }
.hc-avs .hc-av.is-out { animation: hc-out .3s var(--ease-out) forwards; }
@keyframes hc-in { from { opacity: 0; transform: translateY(10px) scale(.6); } }
@keyframes hc-out { to { opacity: 0; transform: scale(.6); } }
.hc-avs-empty { font-size: 13px; color: var(--mute); }
.hc-avs:has(.hc-av) .hc-avs-empty { display: none; }

/* =====================================================================================
   HOMEPAGE SECTION #challenges
   ===================================================================================== */
.hc-sec { position: relative; padding: 96px 0; overflow-x: clip; }
@media (min-width: 1024px) { .hc-sec { padding: 128px 0; } }
.hc-wrap { max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .hc-wrap { padding-left: 28px; padding-right: 28px; } }
.hc-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hc-grid { gap: 56px; } }
.hc-eb { display: inline-flex; align-items: center; gap: 10px; }
.hc-pip { width: 6px; height: 6px; border-radius: 99px; flex: none; background: linear-gradient(135deg, var(--coral), var(--apricot)); box-shadow: 0 0 10px 1px rgba(255,140,80,.45); }
.hc-h2 { margin-top: 20px; font-size: clamp(36px, 4.9vw, 70px); }
.hc-sec .display em { background: var(--hc-grad-word); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ember);
  padding: .02em .1em .18em .03em; margin: 0 -.1em -.18em -.03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hc-p { margin-top: 22px; max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); }
.hc-proofs { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.hc-proofs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 3px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.hc-pav { position: relative; grid-row: span 2; width: 40px; height: 40px; border-radius: 99px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a0, var(--apricot)), var(--a1, var(--rose)) 55%, var(--a2, var(--lilac))); box-shadow: 0 0 0 1px var(--line); }
.hc-pav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ap, 50% 30%); }
.hc-pav i { font: 650 14px/1 var(--font-ui); font-style: normal; color: #141210; }
.hc-pt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; align-self: end; }
.hc-pt b { font-size: 15px; font-weight: 600; color: var(--ink); }
.hc-pt span { font-size: 13px; color: var(--mute); }
.hc-po { grid-column: 2; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); align-self: start; }
.hc-pn { grid-column: 3; grid-row: 1 / span 2; text-align: right; max-width: 150px; min-width: 0; overflow-wrap: anywhere; }
.hc-pn > span { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.04; letter-spacing: -.03em; font-variation-settings: "opsz" 144, "SOFT" 50; font-variant-numeric: tabular-nums; }
.hc-pn small { display: block; margin-top: 3px; font-size: 12px; color: var(--mute); }
.hc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hc-more { font-size: 15px; font-weight: 500; color: var(--ink); }

.hc-stage { position: relative; border-radius: 34px; padding: 36px 16px; overflow: hidden; isolation: isolate; --grain: .14; box-shadow: 0 50px 120px -60px rgba(20,18,16,.5); container-type: inline-size; }
.hc-stage-in { position: relative; z-index: 3; display: grid; justify-items: center; gap: 18px; }
.hc-stage .hc-feed { --w: clamp(220px, 70cqw, 264px); }
.hc-side { display: grid; gap: 12px; width: min(100%, 320px); }
.hc-side .hc-list { display: none; }
@container (min-width: 600px) {
  .hc-stage-in { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 26px; }
  .hc-side { width: 214px; }
  .hc-side .hc-list { display: block; }
}
@container (min-width: 660px) { .hc-side { width: 226px; } .hc-stage-in { gap: 32px; } }
@media (min-width: 1024px) { .hc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .hc-stage { padding: 44px 24px; } }

/* =====================================================================================
   REDUCED MOTION: opacity only
   ===================================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hc-track, .hc-screen.is-hint .hc-track { transform: none !important; }
  .hc-card { top: 0; opacity: 0; transition: opacity .3s; }
  .hc-card.is-on { opacity: 1; z-index: 1; }
  .hc-card.is-on .hc-img { transform: scale(var(--z, 1)); }
  .hc-cap-k span.is-w { transform: none; }
}
