/*
 * NOWON Radio - Team page.
 *
 * TABLE OF CONTENTS
 *  1. On shift now
 *  2. Crew rail
 *  3. Crew pass
 *  4. Rolling credits
 *  5. Open roles board
 *  6. Boarding pass
 *  7. Crew file drawer
 *  8. Media queries
 */

/* ==========================================================================
   1. On shift now
   ========================================================================== */
.studio-time {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px 22px;
}

.studio-time__clock {
  padding-right: 22px;
  border-right: 1px solid var(--line);
  text-align: right;
}

.studio-time__label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.studio-time__value {
  margin-top: 6px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1;
}

.studio-time__name {
  margin-top: 6px;
  font-weight: 900;
  font-size: 22px;
}

.studio-time__track {
  width: 200px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--line);
}

.studio-time__fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: 2px;
  background: var(--acc);
}

.studio-time__left {
  margin-top: 6px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
}

.shift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.shift-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 24px;
  border: 1.5px solid rgba(245, 237, 216, .1);
  border-radius: 20px;
  text-align: left;
  transition: background .3s ease, border-color .3s ease;
}

.shift-card:hover {
  border-color: var(--acc);
  background: var(--acc-07);
}

.shift-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.shift-card__label {
  color: var(--acc);
}

.shift-card__in {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-75);
}

.shift-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}

.shift-card__who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.shift-card__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(245, 237, 216, .1);
  border-radius: 50%;
  color: var(--acc);
  font-weight: 900;
  font-size: 20px;
  transition: border-color .3s ease;
}

.shift-card:hover .shift-card__avatar {
  border-color: var(--acc);
}

.shift-card__names {
  display: block;
  min-width: 0;
}

.shift-card__name {
  display: block;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.05;
}

.shift-card__role {
  display: block;
  margin-top: 6px;
  color: var(--ink-75);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
}

.shift-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 237, 216, .1);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
}

.shift-card__arrow {
  color: var(--acc);
  transition: transform .3s ease;
}

.shift-card:hover .shift-card__arrow {
  transform: translateX(6px);
}

.next-shift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface-2);
}

.next-shift__when {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.next-shift__show {
  font-weight: 900;
  font-size: 14px;
}

.next-shift__people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.next-chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(245, 237, 216, .2);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  transition: border-color .25s ease, color .25s ease;
}

.next-chip:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.next-chip__label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
}

/* ==========================================================================
   2. Crew rail
   ========================================================================== */
.section--crew .section-head--inner {
  gap: 30px 40px;
  margin-bottom: 50px;
}

.crew-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 40px;
}

.crew-tools__text {
  max-width: 300px;
  color: rgba(245, 237, 216, .65);
  font-size: 14px;
  line-height: 1.6;
}

.crew-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.crew-count__now {
  color: var(--acc);
  font-size: 96px;
  line-height: .8;
}

.crew-count__total {
  color: var(--ink-60);
  font-weight: 200;
  font-size: 40px;
}

.crew-nav {
  display: flex;
  gap: 10px;
}

.crew-nav__btn {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.rail-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
}

.rail-wrap__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 10px;
  background: linear-gradient(180deg, #4a4640, #2b2925 60%, #1a1917);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .6);
}

.rail-wrap__label {
  position: absolute;
  left: var(--gutter);
  top: 18px;
  z-index: 2;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25em;
}

.rail {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 4px var(--gutter) 60px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
}

.rail.is-dragging {
  cursor: grabbing;
}

.rail-progress {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(245, 237, 216, .1);
}

.rail-progress__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x, 0%);
  width: var(--size, 50%);
  border-radius: 2px;
  background: var(--acc);
}

.rail-tabs {
  display: flex;
  margin-top: 14px;
}

.rail-tab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-right: 6px;
  padding: 12px 14px 0 0;
  border-top: 2px solid rgba(245, 237, 216, .15);
  color: var(--ink-60);
  text-align: left;
  transition: border-color .3s ease, color .3s ease;
}

.rail-tab--3 { flex: 3; }
.rail-tab--4 { flex: 4; }

.rail-tab.is-current {
  border-color: var(--acc);
  color: var(--acc);
}

.rail-tab__name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .16em;
}

.rail-tab__count {
  font-family: var(--mono);
  font-size: 11px;
}

/* ==========================================================================
   3. Crew pass
   ========================================================================== */
.pass {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 320px;
  transform: rotate(var(--swing, 0deg));
  transform-origin: 50% 0;
  transition: opacity .35s ease;
}

.rail.has-hot .pass:not(.is-hot) {
  opacity: .45;
}

.pass__strap {
  position: relative;
  width: 26px;
  height: 60px;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, .22) 3px 6px), var(--acc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.pass:nth-child(4n + 2) .pass__strap { height: 84px; }
.pass:nth-child(4n + 3) .pass__strap { height: 72px; }
.pass:nth-child(4n + 4) .pass__strap { height: 92px; }

.pass__strap-text {
  position: absolute;
  left: 50%;
  top: 6px;
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 7px;
  letter-spacing: .1em;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
}

.pass__clasp {
  width: 30px;
  height: 22px;
  margin-top: -2px;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #d8d3c8, #8d887e);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.pass__ring {
  width: 6px;
  height: 14px;
  margin-top: -2px;
  border: 2px solid #a9a397;
  border-top: 0;
  border-radius: 3px;
}

.pass__stage {
  position: relative;
  width: 100%;
  height: 520px;
  margin-top: -4px;
  perspective: 1400px;
  transition: transform .5s var(--ease-slide);
}

.pass.is-hot .pass__stage {
  transform: translateY(-18px) scale(1.03);
}

.pass__flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-slide);
}

.pass.is-flipped .pass__flipper {
  transform: rotateY(180deg);
}

.pass__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1.5px solid rgba(245, 237, 216, .12);
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .3s ease, box-shadow .4s ease, visibility 0s linear .4s;
}

.pass__face--front {
  background: linear-gradient(160deg, #22211e, #181715);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
}

.pass.is-hot .pass__face--front {
  border-color: var(--acc);
  box-shadow: 0 50px 70px rgba(0, 0, 0, .65), 0 0 0 1px var(--acc-25);
}

.pass.is-flipped .pass__face--front,
.pass__face--back {
  visibility: hidden;
}

.pass__face--back {
  border-color: var(--acc);
  background: linear-gradient(200deg, #22211e, #181715);
  box-shadow: 0 40px 60px rgba(0, 0, 0, .6);
  transform: rotateY(180deg);
}

.pass.is-flipped .pass__face--back {
  visibility: visible;
}

.pass__vinyl {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  opacity: .07;
  pointer-events: none;
}

.pass__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, var(--acc-20) 45%, rgba(245, 237, 216, .18) 50%, var(--acc-13) 55%, transparent 70%);
  background-position: var(--shine, 50%) 0;
  background-size: 300% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.pass.is-hot .pass__shine {
  opacity: 1;
}

.pass__slot {
  align-self: center;
  width: 54px;
  height: 9px;
  border-radius: 5px;
  background: var(--surface-inset);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8);
}

.pass__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.pass__logo {
  width: 84px;
  height: 21px;
}

.pass__kicker {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.pass__photo {
  position: relative;
  margin-top: 14px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #2a2824 0 10px, #1b1a17 10px 20px);
  aspect-ratio: 1 / 1;
  font-size: 10px;
}

.pass__number {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .12em;
}

.pass__stamp {
  position: absolute;
  right: -6px;
  bottom: 18px;
  padding: 6px 14px;
  border: 2px solid var(--acc);
  border-radius: 4px;
  background: rgba(18, 17, 16, .75);
  color: var(--acc);
  font-family: var(--font);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
  transform: rotate(-8deg);
}

.pass__name {
  margin-top: 16px;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.02em;
}

.pass__role {
  margin-top: 7px;
  color: var(--ink-75);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .15em;
}

.pass__spacer {
  flex: 1;
}

.pass__chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pass__chip {
  position: relative;
  flex: none;
  width: 34px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent 33%, rgba(0, 0, 0, .3) 33%, rgba(0, 0, 0, .3) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(0, 0, 0, .3) 66%, rgba(0, 0, 0, .3) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(135deg, #f3d27a, #b98c22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}

.pass__chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .3);
}

.pass__fact {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .15em;
}

.pass__fact--end {
  align-items: flex-end;
}

.pass__fact-label {
  color: var(--ink-60);
}

.pass__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .16em;
}

.pass__since {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
}

.pass__code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pass__barcode {
  flex: 1;
  min-width: 0;
  height: 24px;
  opacity: .75;
}

.pass__serial {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.pass__flip {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
}

.pass__back-top {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.pass__dim {
  color: var(--ink-60);
}

.pass__mark {
  margin-top: 22px;
  color: var(--acc);
  font-weight: 900;
  font-size: 56px;
  line-height: .55;
}

.pass__quote {
  margin-top: 6px;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.pass__by {
  margin-top: 12px;
  color: var(--ink-60);
  font-size: 13px;
}

.pass__rota-label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.pass__rota {
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}

.pass__return {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pass__qr {
  flex: none;
  width: 81px;
  height: 81px;
  border-radius: 4px;
}

.pass__return-text {
  flex: 1;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .12em;
}

.pass__open {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
}

/* ==========================================================================
   4. Rolling credits
   ========================================================================== */
.credit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.credit-tools__toggle {
  height: 44px;
  margin-right: 12px;
  padding: 0 20px;
  font-weight: 900;
  font-size: 12px;
}

.credit-tools .chip--filter {
  height: 44px;
  font-weight: 700;
}

.reel {
  position: relative;
  height: 720px;
  overflow: hidden;
  border-radius: 20px;
  background: #0a0908;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .9);
}

.reel__roll {
  will-change: transform;
}

.credit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 720px;
  text-align: center;
}

.credit-card__kicker {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .5em;
}

.credit-card__presents {
  margin-top: 22px;
  color: rgba(245, 237, 216, .8);
  font-weight: 200;
  font-size: clamp(26px, 2.4vw, 46px);
  letter-spacing: .02em;
}

.credit-card__title {
  margin-top: 6px;
  font-weight: 900;
  font-size: clamp(60px, 7.8vw, 150px);
  line-height: .9;
  letter-spacing: -.05em;
}

.credit-card__foot {
  margin-top: 26px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
}

.credit-card__end {
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(56px, 6.25vw, 120px);
  letter-spacing: -.05em;
}

.credit-card__flip {
  margin-top: 16px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .35em;
}

.credit {
  padding: 44px 0;
}

.credit--solo {
  text-align: center;
}

.credit--multi {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: clamp(20px, 2.6vw, 50px);
}

.credit__title {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .35em;
}

.credit__title--side {
  padding-top: 12px;
  text-align: right;
}

.credit__solo-name {
  margin-top: 14px;
  font-weight: 900;
  font-size: clamp(38px, 3.75vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
}

.credit__rule {
  background: rgba(245, 237, 216, .1);
}

.credit__names {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credit__name {
  font-weight: 800;
  font-size: clamp(24px, 2.1vw, 40px);
  letter-spacing: -.02em;
}

.reel__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.reel__fade--top {
  top: 0;
  background: linear-gradient(180deg, #000 40%, transparent);
}

.reel__fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, #000 40%, transparent);
}

.reel__label,
.reel__time,
.reel__paused {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
}

.reel__label {
  left: 28px;
  top: 22px;
  color: var(--ink-60);
}

.reel__time {
  right: 28px;
  top: 22px;
  color: var(--acc);
}

.reel__paused {
  left: 50%;
  bottom: 24px;
  color: var(--acc);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .3s ease;
}

.reel.is-paused .reel__paused {
  opacity: 1;
}

.credit-scrub {
  position: relative;
  height: 54px;
}

.credit-scrub-scroll {
  margin-top: 26px;
}

.credit-scrub__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.credit-scrub__fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: 2px;
  background: var(--acc);
}

.credit-mark {
  position: absolute;
  left: var(--at, 0%);
  top: 0;
  width: 24px;
  height: 24px;
  margin-left: -12px;
}

.credit-mark::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  width: 2px;
  height: 24px;
  background: rgba(245, 237, 216, .35);
}

.credit-mark:hover::before,
.credit-mark:focus-visible::before {
  background: var(--acc);
}

.credit-mark__label {
  position: absolute;
  left: 50%;
  top: 30px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}

.credit-mark:hover .credit-mark__label,
.credit-mark:focus-visible .credit-mark__label {
  opacity: 1;
}

/* ==========================================================================
   5. Open roles board
   ========================================================================== */
.terminal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  max-width: 100%;
}

.terminal .chips {
  justify-content: flex-end;
}

.terminal__clock {
  display: flex;
  align-items: center;
  gap: 18px;
}

.terminal__name {
  color: rgba(245, 237, 216, .65);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .2em;
  text-align: right;
}

.terminal__cells {
  display: flex;
  gap: 3px;
}

.flap-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
  background: #1d1c1a;
  color: var(--acc);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
}

.flap-cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: #0a0908;
}

.flap-cell--lg {
  width: 34px;
  height: 54px;
  border-radius: 5px;
  font-size: 34px;
}

.departures-scroll {
  border-radius: 22px;
}

.departures {
  min-width: 1240px;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 22px;
  background: #0a0908;
  box-shadow: inset 0 2px 30px rgba(0, 0, 0, .8), 0 30px 60px rgba(0, 0, 0, .4);
}

.departures__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 30px;
  background: var(--acc);
  color: var(--ink-dark);
}

.departures__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2em;
}

.departures__kicker {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
}

.departures__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
}

.departures__labels,
.departure__row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 150px 140px 130px 250px;
  gap: 22px;
}

.departures__labels {
  padding: 16px 30px;
  border-bottom: 1.5px solid rgba(245, 237, 216, .1);
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
}

.departures__label-end {
  text-align: right;
}

.departure {
  border-bottom: 1px solid rgba(245, 237, 216, .06);
}

.departure[hidden] {
  display: none;
}

.departure__head {
  font: inherit;
}

.departure__row {
  position: relative;
  align-items: center;
  width: 100%;
  padding: 20px 30px;
  text-align: left;
  transition: background .25s ease;
}

.departure__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--acc);
  transform: scaleY(0);
  transition: transform .3s ease;
}

.departure__row:hover {
  background: rgba(245, 237, 216, .03);
}

.departure__row:hover::before,
.departure.is-open .departure__row::before {
  transform: scaleY(1);
}

.departure.is-open .departure__row {
  background: var(--acc-07);
}

.departure__flight {
  display: flex;
  gap: 3px;
}

.departure__destination {
  display: block;
  min-width: 0;
}

.departure__title {
  display: block;
  overflow: hidden;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .25s ease;
}

.departure__row:hover .departure__title,
.departure.is-open .departure__title {
  color: var(--acc);
}

.departure__sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-60);
  font-weight: 400;
  font-size: 13px;
}

.departure__cell {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .12em;
}

.departure__cell--dim {
  color: var(--ink-75);
}

.departure__status {
  display: flex;
  gap: 2px;
  justify-self: end;
  padding: 4px;
  border-radius: 6px;
  background: #1d1c1a;
}

.departure__status .flap-cell {
  width: 20px;
  height: 32px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .25);
  color: var(--ink);
  font-size: 15px;
}

.departure__status .flap-cell::after {
  display: none;
}

.departure__status.is-boarding {
  background: var(--acc);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.departure__status.is-boarding .flap-cell {
  color: var(--ink-dark);
}

.departure__status.is-last {
  background: var(--live);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.departure__status.is-done {
  background: #3d8b5a;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.departure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-slide);
}

.departure.is-open .departure__panel {
  grid-template-rows: 1fr;
}

.departure__clip {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .55s;
}

.departure.is-open .departure__clip {
  visibility: visible;
  transition: visibility 0s;
}

.departure__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(30px, 3.6vw, 70px);
  padding: 16px 30px 40px clamp(30px, 11.5vw, 222px);
}

.departure__text {
  max-width: 600px;
  color: rgba(245, 237, 216, .85);
  font-size: 18px;
  line-height: 1.65;
}

.departure__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 26px 0 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(245, 237, 216, .1);
}

.departure__fact {
  padding: 16px 18px;
  background: #0a0908;
}

.departure__fact-label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.departure__fact-value {
  margin: 6px 0 0;
  font-weight: 800;
  font-size: 16px;
}

.departure__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.departure__tag {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  border-radius: var(--radius-pill);
  color: var(--acc);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
}

.announcement {
  display: flex;
  align-items: center;
  height: 50px;
  overflow: hidden;
  border-top: 1.5px solid var(--line-soft);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
}

.announcement__tag {
  display: flex;
  flex: none;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  background: var(--live);
  color: var(--surface-inset);
  font-weight: 700;
}

.announcement__track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: pre;
}

.announcement__text {
  display: inline-block;
  padding-left: 100%;
  animation: board-ticker 32s linear infinite;
}

@keyframes board-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ==========================================================================
   6. Boarding pass
   ========================================================================== */
.boarding-pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--acc);
  box-shadow: var(--shadow-card);
  color: var(--ink-dark);
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity .6s var(--ease-slide) .15s, transform .6s var(--ease-slide) .15s;
}

.departure.is-open .boarding-pass {
  opacity: 1;
  transform: none;
}

.boarding-pass__main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px;
}

.boarding-pass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.boarding-pass__logo {
  width: 110px;
  height: 24px;
  background-color: var(--ink-dark);
}

.boarding-pass__class {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.boarding-pass__route {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0;
}

.boarding-pass__to {
  text-align: right;
}

.boarding-pass__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.boarding-pass__place {
  display: block;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.03em;
}

.boarding-pass__line {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #121110 0 8px, transparent 8px 14px);
}

.boarding-pass__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 22px;
  transform: translate(-50%, -55%);
}

.boarding-pass__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boarding-pass__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--ink-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: var(--ink-dark);
  font-weight: 600;
  font-size: 15px;
}

.boarding-pass__input::placeholder {
  color: var(--ink-dark);
  opacity: .8;
}

.boarding-pass__input:focus {
  background: rgba(255, 255, 255, .35);
  outline: 2px solid var(--ink-dark);
  outline-offset: 1px;
}

.boarding-pass__stamp {
  position: absolute;
  right: 30px;
  top: 70px;
  padding: 8px 18px;
  border: 3px solid var(--ink-dark);
  border-radius: 6px;
  background: var(--acc-80);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .14em;
  transform: rotate(-10deg);
}

.boarding-pass__stamp[hidden] {
  display: none;
}

.boarding-pass__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 20px;
  border-left: 2.5px dashed rgba(18, 17, 16, .55);
}

.boarding-pass__stub::before,
.boarding-pass__stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0908;
}

.boarding-pass__stub::before {
  top: -13px;
}

.boarding-pass__stub::after {
  bottom: -13px;
}

.boarding-pass__seat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .16em;
}

.boarding-pass__seat-value {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
}

.boarding-pass__barcode {
  width: 100%;
  height: 44px;
}

.boarding-pass__submit {
  height: 50px;
  border-radius: var(--radius-pill);
  background: var(--ink-dark);
  color: var(--acc);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
}

/* ==========================================================================
   7. Crew file drawer
   ========================================================================== */
.crew-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: min(640px, 100%);
  overflow-y: auto;
  border-left: 1.5px solid var(--line);
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease-fill), visibility 0s linear .45s;
}

.crew-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--ease-fill), visibility 0s;
}

.crew-drawer__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(245, 237, 216, .1);
  background: rgba(18, 17, 16, .94);
}

.crew-drawer__file {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.crew-drawer__nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.crew-drawer__btn {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.crew-drawer__body {
  padding: 28px;
}

.crew-drawer__portrait {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
}

/* The drawer shows the square portrait: its top keeps the face in the wider frame. */
.crew-drawer__portrait .avatar-photo {
  object-position: 50% 20%;
}

.crew-drawer__dept {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--acc);
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
}

.crew-drawer__name {
  margin-top: 26px;
  font-weight: 900;
  font-size: clamp(34px, 3vw, 46px);
  line-height: .95;
  letter-spacing: -.035em;
}

.crew-drawer__role {
  margin-top: 10px;
  color: var(--acc);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
}

.crew-drawer__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.crew-drawer__fact {
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.crew-drawer__fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.crew-drawer__fact-label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

.crew-drawer__fact-value {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 18px;
}

.crew-drawer__bio {
  margin-top: 22px;
  color: rgba(245, 237, 216, .8);
  font-size: 16px;
  line-height: 1.65;
}

.crew-drawer__quote {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.crew-drawer__mark {
  color: var(--acc);
  font-weight: 900;
  font-size: 44px;
  line-height: .7;
}

.crew-drawer__heading {
  margin-top: 30px;
  color: var(--acc);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .2em;
}

.crew-drawer__record {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
}

.crew-drawer__vinyl {
  width: 54px;
  height: 54px;
}

.crew-drawer__record-text {
  flex: 1;
  min-width: 0;
}

.crew-drawer__record-title {
  display: block;
  font-weight: 900;
  font-size: 16px;
}

.crew-drawer__record-artist {
  display: block;
  margin-top: 3px;
  color: rgba(245, 237, 216, .7);
  font-size: 13px;
}

.crew-drawer__slots {
  margin-top: 6px;
}

.crew-drawer__slot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 237, 216, .1);
  font-size: 14px;
}

.crew-drawer__slot-role {
  color: var(--ink-60);
}

.crew-drawer__slot.is-now b {
  color: var(--acc);
}

.crew-drawer__slot-now {
  display: inline-block;
  margin-left: 8px;
  color: var(--live-text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.crew-drawer__slot-time {
  flex: none;
  color: var(--ink-75);
  font-family: var(--mono);
  font-size: 12px;
}

.crew-drawer__none {
  padding: 12px 0;
  color: var(--ink-60);
  font-size: 14px;
}

.crew-drawer__none[hidden] {
  display: none;
}

.crew-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.crew-drawer__listen {
  height: 50px;
  padding: 0 24px;
  font-weight: 900;
}

.crew-drawer__listen[hidden],
.crew-drawer__listen-pause,
.is-playing .crew-drawer__listen-play {
  display: none;
}

.is-playing .crew-drawer__listen-pause {
  display: inline;
}

.crew-drawer__social {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  border: 1.5px solid rgba(245, 237, 216, .2);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}

.crew-drawer__social:hover {
  border-color: var(--acc);
  color: var(--acc);
}

/* ==========================================================================
   8. Media queries (widest first)
   ========================================================================== */
@media (max-width: 767.98px) {
  .studio-time {
    width: 100%;
  }

  .studio-time__clock {
    padding-right: 0;
    border-right: 0;
    text-align: left;
  }

  .studio-time__label,
  .studio-time__left,
  .shift-card__top,
  .shift-card__role,
  .next-shift__when,
  .next-chip__label,
  .rail-tab__count,
  .pass__kicker,
  .pass__photo,
  .pass__number,
  .pass__role,
  .pass__fact,
  .pass__serial,
  .pass__since,
  .pass__back-top,
  .pass__rota-label,
  .pass__return-text,
  .reel__label,
  .reel__time,
  .reel__paused,
  .credit-mark__label,
  .terminal__name,
  .departures__kicker,
  .departures__count,
  .departure__fact-label,
  .boarding-pass__class,
  .boarding-pass__label,
  .boarding-pass__seat,
  .crew-drawer__file,
  .crew-drawer__dept,
  .crew-drawer__heading,
  .crew-drawer__fact-label {
    font-size: 12px;
  }

  .studio-time__label,
  .shift-card__top,
  .shift-card__role,
  .next-shift__when,
  .pass__kicker,
  .pass__role,
  .pass__fact,
  .pass__return-text,
  .reel__label,
  .reel__time,
  .reel__paused,
  .terminal__name,
  .departures__count,
  .boarding-pass__class,
  .boarding-pass__label,
  .boarding-pass__seat,
  .crew-drawer__file,
  .crew-drawer__fact-label {
    letter-spacing: .06em;
  }

  .next-shift__people {
    margin-left: 0;
  }

  .crew-count__now {
    font-size: 64px;
  }

  .crew-count__total {
    font-size: 28px;
  }

  .crew-tools {
    width: 100%;
    justify-content: space-between;
  }

  .crew-tools__text {
    max-width: none;
  }

  .pass {
    width: 290px;
  }

  .pass__stage {
    height: 560px;
  }

  .pass__serial {
    letter-spacing: 0;
  }

  .rail-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail-tab {
    flex: none;
  }

  .rail-tab__name {
    font-size: 12px;
    letter-spacing: .08em;
  }

  .credit-card__title {
    font-size: 15vw;
  }

  .credit-card__kicker,
  .credit-card__foot,
  .credit-card__flip {
    letter-spacing: .15em;
  }

  .credit-card__foot {
    font-size: 12px;
  }

  .credit__title {
    letter-spacing: .1em;
  }

  .credit--multi {
    gap: 10px;
  }

  .credit__title--side {
    padding-top: 6px;
  }

  .credit-scrub {
    min-width: 720px;
  }

  .terminal {
    align-items: flex-start;
    width: 100%;
  }

  .terminal .chips {
    justify-content: flex-start;
  }

  .terminal__clock {
    flex-wrap: wrap;
  }

  .terminal__name {
    text-align: left;
  }

  .departures-scroll {
    overflow: visible;
  }

  .departures {
    min-width: 0;
  }

  .departures__bar {
    flex-wrap: wrap;
    gap: 2px 12px;
    height: auto;
    padding: 12px 16px;
  }

  .departures__title {
    flex-wrap: wrap;
    gap: 2px 10px;
    font-size: 16px;
    letter-spacing: .1em;
  }

  .departures__labels {
    display: none;
  }

  .departure__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .departure__title {
    font-size: 22px;
    white-space: normal;
  }

  .departure__cell {
    display: inline;
    font-size: 12px;
  }

  .departure__status {
    justify-self: start;
  }

  .departure__status .flap-cell {
    width: 21px;
  }

  .departure__body {
    display: block;
    padding: 12px 16px 24px;
  }

  .departure__text {
    font-size: 16px;
  }

  .departure__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .departure__fact {
    padding: 12px 14px;
  }

  .boarding-pass {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }

  .boarding-pass__main {
    padding: 18px;
  }

  .boarding-pass__top {
    flex-wrap: wrap;
  }

  .boarding-pass__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .boarding-pass__place {
    font-size: 32px;
  }

  .boarding-pass__stub {
    padding: 18px;
    border-top: 2.5px dashed rgba(18, 17, 16, .55);
    border-left: 0;
  }

  .boarding-pass__stub::before,
  .boarding-pass__stub::after {
    display: none;
  }

  .announcement {
    height: 44px;
    letter-spacing: .1em;
    font-size: 12px;
  }

  .announcement__tag {
    padding: 0 12px;
  }

  .crew-drawer__bar {
    padding: 0 16px;
  }

  .crew-drawer__body {
    padding: 18px 16px;
  }

  .crew-drawer__fact {
    padding: 12px 8px;
  }

  .crew-drawer__fact-value {
    font-size: 15px;
  }

  .crew-drawer__slot {
    flex-wrap: wrap;
  }
}

@media (max-width: 379.98px) {
  .pass {
    width: 260px;
  }

  .pass__stage {
    height: 530px;
  }

  .pass__chip {
    display: none;
  }

  .crew-nav__btn {
    width: 52px;
    height: 52px;
  }

  .flap-cell--lg {
    width: 28px;
    height: 46px;
    font-size: 28px;
  }

  .departure__status {
    gap: 1px;
    padding: 3px;
  }

  .departure__status .flap-cell {
    width: 20px;
    font-size: 14px;
  }

  .departure__flight .flap-cell {
    width: 24px;
  }

  .credit-tools__toggle {
    width: 100%;
    margin-right: 0;
  }

  .crew-drawer__listen,
  .crew-drawer__social {
    justify-content: center;
    width: 100%;
  }

  .crew-drawer__file {
    letter-spacing: 0;
  }
}
