/* /crew - The Crew. Pearl and ink like the films: one face, tight headlines,
   few words, hairlines, no glow. Each character keeps one mid-tone (--who)
   for the avatar ring and the role line only - never for P&L. Dark theme at
   the bottom (html[data-site-theme=dark]). Mobile first at 375px. */
.cw-page {
  --cw-ink: #14171c;
  --cw-ink-2: #3a404a;
  --cw-muted: #626872;
  --cw-line: #e3e6ea;
  --cw-card: #ffffff;
  --cw-plate: #f4f5f7;
  --cw-up: #0b7a55;
  --cw-down: #c0362c;
  --cw-shadow: 0 1px 2px rgba(20, 26, 36, .05), 0 16px 40px -24px rgba(20, 26, 36, .22);
}
.cw-page h1, .cw-page h2, .cw-page h3 { color: var(--cw-ink); }
.cw-page section + section { margin-top: clamp(88px, 11vw, 150px); }

/* hero */
.cw-hero { padding-top: clamp(40px, 7vw, 92px); text-align: center; }
.cw-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: 13px; font-weight: 500; color: var(--cw-ink-2); }
.cw-eyebrow-live { color: var(--cw-muted); font-weight: 400; }
.cw-eyebrow-live::before { content: '·'; margin-right: 9px; }
.cw-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #18a874; box-shadow: 0 0 0 0 rgba(24, 168, 116, .45); animation: cw-pulse 2.4s ease-out infinite; flex: none; }
@keyframes cw-pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 168, 116, .45); } 70% { box-shadow: 0 0 0 8px rgba(24, 168, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 168, 116, 0); } }
@media (prefers-reduced-motion: reduce) { .cw-live-dot { animation: none; } }
.cw-hero h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.058em; }
.cw-lede { max-width: 40em; margin: 26px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--cw-ink-2); }
.cw-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-top: 32px; }
.cw-hero .cw-film--feature { margin-top: clamp(40px, 6vw, 72px); text-align: left; }

/* films */
.cw-film { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cw-player { position: relative; overflow: hidden; border-radius: 22px; background: #0c0d10; aspect-ratio: 16 / 9; box-shadow: var(--cw-shadow); }
.cw-player img, .cw-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-player video { background: #000; object-fit: contain; }
.cw-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28)); cursor: pointer; }
.cw-play span { display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #14171c; font-size: 18px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.cw-play:hover { opacity: 1; }
.cw-play:hover span { transform: scale(1.06); }
.cw-film--feature .cw-play span { width: 84px; height: 84px; font-size: 22px; }
.cw-film-copy h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.cw-film-copy p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.cw-film-copy .cw-film-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--cw-muted); }
.cw-film--feature .cw-film-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 32px; align-items: baseline; }
.cw-film--feature .cw-film-copy .cw-film-kicker { grid-column: 1 / -1; }
.cw-film--feature .cw-film-copy h3 { font-size: clamp(22px, 2.2vw, 30px); }
.cw-film--feature .cw-film-copy p:last-child { margin: 0; }
.cw-film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

/* what */
.cw-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cw-pillars > div { padding: 26px 26px 28px; border: 1px solid var(--cw-line); border-radius: 20px; background: var(--cw-card); }
.cw-pillars h3 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.cw-pillars p { margin-top: 10px; font-size: 15px; }
.cw-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--cw-line); border-radius: 20px; background: var(--cw-plate); }
.cw-steps li { padding: 24px 24px 26px; }
.cw-steps li + li { border-left: 1px solid var(--cw-line); }
.cw-step-n { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--cw-muted); font-variant-numeric: tabular-nums; }
.cw-steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cw-steps p { margin-top: 8px; font-size: 14.5px; }

/* cast */
.cw-people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cw-person { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--cw-line); border-radius: 20px; background: var(--cw-card); }
.cw-person-media { position: relative; aspect-ratio: 4 / 5; background: #eef0f2; }
.cw-person-media img, .cw-person-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.cw-person-media video { opacity: 0; transition: opacity .5s ease; }
.cw-person-media video.on { opacity: 1; }
.cw-person-copy { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.cw-person-role { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--who); }
.cw-person h3 { font-size: 26px; font-weight: 600; letter-spacing: -.04em; }
.cw-person-line { font-size: 14px; color: var(--cw-ink-2); font-style: italic; }
.cw-person-bio { font-size: 14px; line-height: 1.55; }
.cw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.cw-chips li { padding: 4px 10px; border: 1px solid var(--cw-line); border-radius: 99px; font-size: 12px; color: var(--cw-ink-2); }
.cw-person-live { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cw-line); font-size: 13px; color: var(--cw-muted); font-variant-numeric: tabular-nums; }
.cw-person-live b { font-weight: 600; }

/* chat */
.cw-threads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cw-thread { padding: 24px 24px 10px; border: 1px solid var(--cw-line); border-radius: 22px; background: var(--cw-card); }
.cw-thread header h3 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.cw-thread header p { margin-top: 4px; font-size: 14px; }
.cw-msgs { list-style: none; margin: 16px 0 0; padding: 0; }
.cw-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--cw-line); }
.cw-msg-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 18%; box-shadow: 0 0 0 2px var(--cw-card), 0 0 0 3.5px var(--who); }
.cw-msg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--cw-muted); }
.cw-msg-meta b { font-size: 14.5px; color: var(--cw-ink); }
.cw-msg-kind { padding: 1px 8px; border-radius: 99px; background: var(--cw-plate); font-size: 11.5px; font-weight: 500; color: var(--cw-ink-2); }
.cw-msg-meta time { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.cw-msg-reply { display: block; margin-top: 3px; font-size: 12px; color: var(--cw-muted); }
.cw-msg-text { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--cw-ink-2); overflow-wrap: anywhere; }
.cw-tk { font-weight: 600; color: var(--cw-ink); }
.cw-live { margin-top: 16px; padding: 24px 24px 10px; border: 1px solid var(--cw-line); border-radius: 22px; background: var(--cw-plate); }
.cw-live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cw-live-head h3 { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.cw-msgs--live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.cw-msgs--live .cw-msg-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* scoreboard */
.cw-board-table { border: 1px solid var(--cw-line); border-radius: 20px; background: var(--cw-card); overflow: hidden; }
.cw-board-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .6fr); align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--cw-line); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--cw-ink-2); }
.cw-board-row--head { border-top: 0; padding-top: 16px; padding-bottom: 12px; font-size: 12.5px; font-weight: 500; color: var(--cw-muted); background: var(--cw-plate); }
.cw-board-who { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--cw-ink); }
.cw-board-who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 18%; box-shadow: 0 0 0 2px var(--cw-card), 0 0 0 3.5px var(--who); }
.cw-board-row .up { color: var(--cw-up); }
.cw-board-row .down { color: var(--cw-down); }
.cw-board-row small { display: block; font-size: 12px; color: var(--cw-muted); }
.cw-fine { margin-top: 14px; font-size: 13px; }

/* close */
.cw-close { padding: clamp(48px, 7vw, 88px) 24px; border-radius: 28px; background: var(--cw-plate); text-align: center; margin-bottom: clamp(64px, 8vw, 110px); }
.cw-close h2 { font-size: clamp(36px, 5vw, 64px); }
.cw-close > p { margin: 16px auto 0; max-width: 32em; font-size: 17px; }

/* tablet */
@media (max-width: 1100px) {
  .cw-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-steps li:nth-child(3) { border-left: 0; }
  .cw-steps li:nth-child(n+3) { border-top: 1px solid var(--cw-line); }
}
@media (max-width: 900px) {
  .cw-film-grid, .cw-threads, .cw-pillars { grid-template-columns: minmax(0, 1fr); }
  .cw-msgs--live { grid-template-columns: minmax(0, 1fr); }
  .cw-film--feature .cw-film-copy { grid-template-columns: minmax(0, 1fr); }
  .cw-board-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.2fr); }
  .cw-board-row > :nth-child(4), .cw-board-row > :nth-child(5) { display: none; }
}

/* phones: 375 first */
@media (max-width: 620px) {
  .cw-page section + section { margin-top: 72px; }
  .cw-hero { padding-top: 28px; }
  .cw-hero h1 { font-size: clamp(40px, 12.4vw, 56px); }
  .cw-lede { font-size: 16.5px; }
  .cw-actions { flex-direction: column; gap: 4px; }
  .cw-actions .button { width: 100%; min-height: 48px; }
  .cw-player { border-radius: 16px; }
  .cw-film--feature .cw-play span { width: 68px; height: 68px; }
  .cw-steps { grid-template-columns: minmax(0, 1fr); }
  .cw-steps li + li { border-left: 0; border-top: 1px solid var(--cw-line); }
  /* the five as a swipeable row of cards */
  .cw-people { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 12px; scrollbar-width: none; }
  .cw-people::-webkit-scrollbar { display: none; }
  .cw-person { flex: 0 0 78%; scroll-snap-align: center; }
  .cw-thread, .cw-live { padding: 20px 16px 6px; border-radius: 18px; }
  .cw-msg { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .cw-msg-av { width: 34px; height: 34px; }
  .cw-msg-meta time { margin-left: 0; width: 100%; }
  .cw-msg-text { font-size: 14.5px; }
  .cw-board-row { padding: 12px 14px; gap: 10px; font-size: 14px; }
  .cw-board-who img { width: 28px; height: 28px; }
  .cw-close { border-radius: 22px; }
}

/* dark theme */
html[data-site-theme="dark"] .cw-page {
  --cw-ink: #f2f4f8;
  --cw-ink-2: #c9ced8;
  --cw-muted: #9aa1ad;
  --cw-line: #262a32;
  --cw-card: #121418;
  --cw-plate: #0d0f12;
  --cw-up: #34d399;
  --cw-down: #f87171;
  --cw-shadow: 0 20px 50px -28px rgba(0, 0, 0, .8);
}
html[data-site-theme="dark"] .cw-person-media { background: #17191e; }
.cw-person-live .up { color: var(--cw-up); }
.cw-person-live .down { color: var(--cw-down); }
@media (max-width: 620px) { .cw-msgs--live .cw-msg:nth-child(n+5) { display: none; } }
