/* ==========================================================================
   Fan creation (24:43) — "the session"
   The Headphone imprint's releases as a multitrack session: each release is a
   track lane, its fan-creation resources are the clips laid onto it, and a
   tape cut from the covers runs past a fixed head in the hero.
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------ */
.fc-hero {
  position: relative;
  padding-top: calc(var(--bar-h) + clamp(32px, 6.4vw, 104px));
}

.fc-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(18px, 2.6vh, 32px);
  padding-bottom: clamp(36px, 5.5vh, 72px);
}

.fc-hero__meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fc-hero__tc {
  display: inline-flex;
  gap: 1.2em;
  text-transform: uppercase;
}

.fc-hero .fc-hero__title {
  grid-column: 1 / -1;
  margin-left: -0.04em;
  font-size: clamp(3rem, 10vw, 10.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

:root[lang="en"] .fc-hero .fc-hero__title {
  font-size: clamp(2.125rem, 7.6vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

:root[lang="ja-JP"] .fc-hero .fc-hero__title {
  font-size: clamp(1.875rem, 8.6vw, 7.75rem);
}

@media (min-width: 1101px) {
  :root[lang="ja-JP"] .fc-hero .fc-hero__title {
    font-size: clamp(2.25rem, 7.4vw, 7.75rem);
  }
}

.fc-hero .fc-hero__sub {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: clamp(1.875rem, 5.6vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: right;
  -webkit-text-stroke-width: clamp(1px, 0.1vw, 1.5px);
}

.fc-hero__counters {
  grid-column: 1 / span 4;
  align-self: end;
  display: flex;
  gap: clamp(28px, 3.4vw, 56px);
}

.fc-counter {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.fc-counter__value {
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.fc-counter + .fc-counter .fc-counter__value {
  color: var(--fg-3);
}

.fc-counter__label {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.fc-hero__copy {
  grid-column: 5 / span 8;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
}

.fc-hero__body {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem);
  line-height: 1.75;
  color: var(--fg);
  max-width: 26em;
}

.fc-hero__note {
  align-self: end;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
  font-size: var(--t-small);
  line-height: 1.85;
  color: var(--fg-2);
  max-width: 30em;
}

@media (max-width: 1100px) {
  .fc-hero__counters {
    grid-column: 1 / -1;
  }
  .fc-hero__copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .fc-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .fc-hero .fc-hero__sub {
    justify-self: start;
    text-align: left;
  }
  .fc-hero__copy {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

/* --- Tape -------------------------------------------------------------------
   Five strips cut from the covers. The strips drift past a fixed head as the
   hero scrolls away (--pc from data-progress); left of the head has "played",
   right of it is still to come. Transform only; static under reduced motion. */
.fc-tape {
  /* The head sits on a grid line: the start of column 5, where the hero copy
     begins. % resolves against the full-bleed tape. */
  --content: calc(min(100%, var(--max)) - 2 * var(--gutter));
  --col: calc((var(--content) - 11 * var(--col-gap)) / 12);
  --head: calc((100% - min(100%, var(--max))) / 2 + var(--gutter) + 4 * (var(--col) + var(--col-gap)));
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid var(--line);
}

.fc-tape__reels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--night);
}

.fc-tape__strip {
  --dir: 1;
  position: relative;
  height: var(--h, 28px);
  overflow: hidden;
  background: var(--night-2);
}

.fc-tape__strip:nth-child(5n + 1) {
  --h: clamp(22px, 3.1vw, 46px);
}

.fc-tape__strip:nth-child(5n + 2) {
  --h: clamp(13px, 1.7vw, 24px);
  --dir: -1;
}

.fc-tape__strip:nth-child(5n + 3) {
  --h: clamp(18px, 2.5vw, 38px);
}

.fc-tape__strip:nth-child(5n + 4) {
  --h: clamp(12px, 1.3vw, 18px);
  --dir: -1;
}

.fc-tape__strip:nth-child(5n + 5) {
  --h: clamp(16px, 2.1vw, 32px);
}

/* The film: the cover repeated end to end at its native size (--tile; the
   covers are 800×800), so it is never upscaled to the viewport. --xo offsets
   each strip's splices; a hairline marks every join like a tape splice. The
   film overhangs the strip by --drift on both sides so it can travel. */
.fc-tape {
  --tile: 800px;
  --drift: 96px;
}

.fc-tape__film {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--drift));
  right: calc(-1 * var(--drift));
  background-color: var(--night-2);
  background-image: linear-gradient(90deg, rgba(9, 9, 11, 0.85) 0 1px, transparent 1px), var(--cover, none);
  background-repeat: repeat-x;
  background-size: var(--tile) 100%, var(--tile) var(--tile);
  background-position:
    calc(var(--xo, 0) * var(--tile) * -1) 0,
    calc(var(--xo, 0) * var(--tile) * -1) var(--y, 50%);
  transform: translate3d(calc(var(--pc, 0) * var(--dir) * var(--drift)), 0, 0);
  will-change: transform;
}

/* Whole-pixel travel keeps the film sampled 1:1 (no sub-pixel resampling). */
@supports (width: round(1.5px, 1px)) {
  .fc-tape__film {
    transform: translate3d(round(calc(var(--pc, 0) * var(--dir) * var(--drift)), 1px), 0, 0);
  }
}

/* Tablets and phones on 2x screens: half-size tiles, 1:1 with device pixels. */
@media (min-resolution: 2dppx) {
  .fc-tape {
    --tile: 400px;
  }
}

/* Threading the tape: once, as the hero settles, each strip is scanned in
   from the left, one after another. */
.js .fc-tape .fc-tape__film {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-tape) calc(120ms + var(--si, 0) * 90ms);
}

.js .fc-tape.is-in .fc-tape__film {
  clip-path: inset(0);
}

.fc-tape::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 11, 0.74) 0,
    rgba(9, 9, 11, 0.5) calc(var(--head) - 0.5px),
    rgba(9, 9, 11, 0) var(--head),
    rgba(9, 9, 11, 0.06) calc(var(--head) + 22%),
    rgba(9, 9, 11, 0.58) 100%
  );
}

.fc-tape__label {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  max-width: calc(var(--head) - var(--gutter) - 16px);
  font-family: var(--f-mono);
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(9, 9, 11, 0.9);
  transform: translateY(-50%);
}

.fc-tape__no {
  color: var(--fg-2);
}

.fc-tape__title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-tape__head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--head);
  z-index: 3;
  width: 1px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(255, 79, 43, 0.7);
}

.fc-tape__head::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  border: 4.5px solid transparent;
  border-top: 6px solid var(--signal);
}

@media (max-width: 700px) {
  /* Phones: half-size tiles (1:1 with device pixels at 2x) and a shorter
     travel, so each thin strip still shows a readable slice of its cover. */
  .fc-tape {
    --head: calc(var(--gutter) + 2 * (var(--col) + var(--col-gap)));
    --tile: 400px;
    --drift: 36px;
  }
  .fc-tape__title {
    display: none;
  }
}

/* --- Guide: two destinations, each with the minute it owns ------------------ */
.fc-guide {
  padding-top: clamp(56px, 8vw, 128px);
}

.fc-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
}

.fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: clamp(232px, 19vw, 272px);
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--d-2) var(--ease-out);
}

/* Fill wipes in like tape; the top edge lights like a head. */
.fc-card::before,
.fc-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 560ms var(--ease-tape);
}

.fc-card::before {
  inset: 0;
  z-index: -1;
  background: var(--surface-2);
}

.fc-card::after {
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--signal);
}

.fc-card:focus-visible {
  border-radius: 0;
}

.fc-card:focus-visible::before,
.fc-card:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.fc-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.fc-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.fc-card__kicker::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.fc-card__tc {
  font-size: 0.8125rem;
  color: var(--fg-3);
  transition: color var(--d-2);
}

.fc-card .fc-card__title {
  display: block;
  margin-top: clamp(8px, 2vw, 28px);
  font-size: clamp(1.75rem, 3.3vw, 3.25rem);
  line-height: 1.02;
  --wdth: 100;
  transition: font-variation-settings 700ms var(--ease-out);
}

.fc-card__body {
  display: block;
  max-width: 30em;
  color: var(--fg-2);
  line-height: 1.75;
}

.fc-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
}

.fc-card__path {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.fc-card__arrow {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--d-2) var(--ease-out), color var(--d-2);
}

.fc-card:focus-visible .fc-card__arrow {
  transform: translateX(4px);
  color: var(--signal);
}

.fc-card:focus-visible .fc-card__tc {
  color: var(--fg);
}

.fc-card:focus-visible .fc-card__title {
  --wdth: 125;
}

@media (hover: hover) {
  .fc-card:hover {
    border-color: var(--line-strong);
  }
  .fc-card:hover::before,
  .fc-card:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  .fc-card:hover .fc-card__arrow {
    transform: translateX(4px);
    color: var(--signal);
  }
  .fc-card:hover .fc-card__tc {
    color: var(--fg);
  }
  .fc-card:hover .fc-card__title {
    --wdth: 125;
  }
}

@media (max-width: 760px) {
  .fc-guide__grid {
    grid-template-columns: 1fr;
  }
  .fc-card {
    min-height: 0;
  }
}

/* --- Session: ruler over the clip lanes ------------------------------------- */
.fc-session__bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 10px;
  align-items: end;
  padding-bottom: 14px;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.fc-session__count {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  align-self: end;
}

.fc-session__label {
  grid-column: 8 / -1;
  grid-row: 1;
}

.fc-session__ruler {
  position: relative;
  grid-column: 8 / -1;
  grid-row: 2;
  height: 20px;
  background:
    repeating-linear-gradient(90deg, var(--fg-4) 0 1px, transparent 1px 6.25%) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--fg-3) 0 1px, transparent 1px 25%) left bottom / 100% 11px no-repeat;
}

.fc-session__ruler i {
  position: absolute;
  top: 0;
  padding-left: 5px;
  font-style: normal;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.fc-session__ruler i:nth-child(1) { left: 0; }
.fc-session__ruler i:nth-child(2) { left: 25%; }
.fc-session__ruler i:nth-child(3) { left: 50%; }
.fc-session__ruler i:nth-child(4) { left: 75%; }

/* --- Tracks ------------------------------------------------------------------ */
.fc-tracks {
  border-top: 1px solid var(--line-strong);
}

/* --- Pending: empty lanes while the catalog loads (or retries) -------------
   Neutral on purpose: no copy, nothing that reads as "no resources". Ghost
   lanes take the shape of the tracks to come and a quiet playhead sweeps
   across them; the list itself carries aria-busy. Static under reduced motion. */
.fc-pending {
  display: none;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.js .fc-pending:not([hidden]) {
  display: block;
}

.fc-pending__lane {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  padding-block: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}

.fc-pending__lane:nth-child(2) {
  opacity: 0.6;
}

.fc-pending__lane:nth-child(3) {
  opacity: 0.3;
}

.fc-pending__no {
  grid-column: 1;
  width: min(100%, 2.4rem);
  height: clamp(1.25rem, 2.4vw, 2.25rem);
  background: var(--surface-2);
}

.fc-pending__cover {
  grid-column: 2 / span 2;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--night-1);
}

.fc-pending__head {
  grid-column: 4 / span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fc-pending__head i {
  display: block;
  height: 9px;
  background: var(--surface-2);
}

.fc-pending__head i:nth-child(1) {
  width: 34%;
}

.fc-pending__head i:nth-child(2) {
  width: 72%;
  height: clamp(22px, 2.4vw, 36px);
}

.fc-pending__head i:nth-child(3) {
  width: 48%;
}

.fc-pending__clips {
  grid-column: 8 / -1;
  min-height: clamp(108px, 9.4vw, 136px);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(238, 235, 228, 0.05) 0 1px, transparent 1px 6.25%),
    repeating-linear-gradient(90deg, rgba(238, 235, 228, 0.1) 0 1px, transparent 1px 25%);
}

.fc-pending__playhead {
  position: absolute;
  inset: 0;
  transform: translate3d(-100%, 0, 0);
  background: linear-gradient(90deg, transparent 70%, rgba(238, 235, 228, 0.035));
  animation: fc-pending-sweep 3.2s var(--ease-in-out) infinite;
}

.fc-pending__playhead::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--fg-4);
}

@keyframes fc-pending-sweep {
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1023px) {
  .fc-pending__lane {
    grid-template-columns: clamp(96px, 22vw, 180px) minmax(0, 1fr);
    grid-template-areas:
      "cover head"
      "lane lane";
    row-gap: 24px;
  }
  .fc-pending__no {
    display: none;
  }
  .fc-pending__cover {
    grid-area: cover;
  }
  .fc-pending__head {
    grid-area: head;
  }
  .fc-pending__clips {
    grid-area: lane;
  }
}

@media (max-width: 700px) {
  .fc-pending__lane {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
  }
  .fc-pending__clips {
    min-height: 72px;
  }
}

.fc-track {
  --lane: var(--art);
  border-bottom: 1px solid var(--line);
}

.fc-track__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--col-gap);
  row-gap: 18px;
  align-items: start;
  padding-block: clamp(24px, 3vw, 44px);
}

.fc-track__no {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--fg-3);
  transition: color var(--d-2);
}

.fc-track__cover {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 30px 80px -40px rgb(var(--lane) / 0.55);
}

.fc-track__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-track__head {
  grid-column: 4 / span 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fc-track__imprint {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  color: var(--fg-2);
}

.fc-track .fc-track__title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  --wdth: 100;
  transition: font-variation-settings 700ms var(--ease-out);
}

.fc-track__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

.fc-track__meta > * + *::before {
  content: "/";
  margin: 0 0.7em;
  color: var(--fg-4);
}

.fc-track__status {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.fc-rec {
  width: 6px;
  height: 6px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--signal);
  animation: rec-blink 2.4s steps(1, end) infinite;
}

.fc-track__summary {
  grid-column: 4 / span 4;
  grid-row: 2;
  max-width: 30em;
  font-family: var(--f-serif);
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}

:root[lang="en"] .fc-track__summary {
  line-height: 1.6;
  letter-spacing: 0;
}

.fc-track__lane {
  grid-column: 8 / -1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* The lane: a strip of bars (16 per lane, accented every 4) the clips sit on. */
.fc-clips {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  min-height: clamp(108px, 9.4vw, 136px);
  padding: 5px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(238, 235, 228, 0.05) 0 1px, transparent 1px 6.25%),
    repeating-linear-gradient(90deg, rgba(238, 235, 228, 0.12) 0 1px, transparent 1px 25%),
    rgb(var(--lane) / 0.035);
}

.fc-clips__item {
  display: flex;
  flex: 1 1 200px;
  min-width: 0;
}

.fc-clips__item--archive {
  flex: 0 1 72%;
}

.fc-clip {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas:
    "label arrow"
    "value arrow"
    "status arrow"
    "dest dest";
  gap: 6px 14px;
  min-height: 92px;
  padding: 12px 14px 12px 16px;
  border-left: 2px solid rgb(var(--lane));
  background: linear-gradient(180deg, rgb(var(--lane) / 0.3), rgb(var(--lane) / 0.12)), var(--night-1);
  color: var(--fg);
  isolation: isolate;
}

.fc-clip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--lane) / 0.2);
  opacity: 0;
  transition: opacity var(--d-2) var(--ease-out);
}

.fc-clip__label {
  grid-area: label;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.fc-clip__value {
  grid-area: value;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fc-clip__status {
  grid-area: status;
  font-size: var(--t-micro);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.fc-clip__dest {
  grid-area: dest;
  align-self: end;
  padding-top: 4px;
  overflow: hidden;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg-2);
}

.fc-clip__arrow {
  grid-area: arrow;
  align-self: start;
  font-family: var(--f-mono);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--fg-2);
  transition: transform var(--d-2) var(--ease-out), color var(--d-2);
}

a.fc-clip:focus-visible::before {
  opacity: 1;
}

/* Small clip text goes full bone while the hover/focus overlay is up. */
a.fc-clip:focus-visible :is(.fc-clip__label, .fc-clip__status, .fc-clip__dest) {
  color: var(--fg);
}

a.fc-clip:focus-visible .fc-clip__arrow {
  transform: translateX(3px);
  color: var(--fg);
}

/* Clips are recorded in, left to right, when their lane arrives. The final
   inset is negative so the focus ring is never clipped. */
.js .fc-track[data-reveal] .fc-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms var(--ease-tape) calc(260ms + var(--ci, 0) * 90ms);
}

.js .fc-track.is-in .fc-clip {
  clip-path: inset(-8px);
}

/* Keyboard focus never waits for a reveal. */
.js .fc-track[data-reveal]:focus-within,
.js .fc-track:focus-within [data-reveal] {
  opacity: 1;
  transform: none;
}

.js .fc-track:focus-within [data-reveal="scan"] img {
  clip-path: inset(0);
  transform: none;
}

.js .fc-track:focus-within .fc-clip {
  clip-path: inset(-8px);
  transition-delay: 0ms;
}

.fc-track__note {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.875rem;
  line-height: 1.8;
  white-space: pre-line;
  color: var(--fg-2);
}

.fc-track__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
}

.fc-track__state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.fc-track__led {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.fc-track__state.has-resources {
  color: var(--fg);
}

.fc-track__state.has-resources .fc-track__led {
  border-color: transparent;
  background: rgb(var(--lane));
  box-shadow: 0 0 10px rgb(var(--lane) / 0.8);
}

@media (hover: hover) {
  .fc-track:hover .fc-track__no {
    color: var(--fg);
  }
  .fc-track:hover .fc-track__title {
    --wdth: 125;
  }
  .fc-track:hover .fc-track__cover.is-in img {
    transform: scale(1.035);
  }
  a.fc-clip:hover::before {
    opacity: 1;
  }
  a.fc-clip:hover :is(.fc-clip__label, .fc-clip__status, .fc-clip__dest) {
    color: var(--fg);
  }
  a.fc-clip:hover .fc-clip__arrow {
    transform: translateX(3px);
    color: var(--fg);
  }
}

.fc-track:focus-within .fc-track__no {
  color: var(--fg);
}

/* Tablet and below: cover beside the heading, lane underneath. */
@media (max-width: 1023px) {
  .fc-session__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .fc-session__count {
    grid-column: 1;
    grid-row: 1;
  }
  .fc-session__label {
    grid-column: 2;
    grid-row: 1;
  }
  .fc-session__ruler {
    display: none;
  }
  .fc-track__body {
    grid-template-columns: clamp(96px, 22vw, 180px) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "cover head"
      "cover summary"
      "lane lane";
    row-gap: 16px;
  }
  .fc-track__no {
    display: none;
  }
  .fc-track__cover {
    grid-area: cover;
  }
  .fc-track__head {
    grid-area: head;
  }
  .fc-track__summary {
    grid-area: summary;
  }
  .fc-track__lane {
    grid-area: lane;
    margin-top: 8px;
  }
  .fc-track__imprint::before {
    content: attr(data-no);
    margin-right: 0.9em;
    color: var(--fg-2);
  }
}

@media (max-width: 700px) {
  .fc-track__body {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "cover head"
      "summary summary"
      "lane lane";
    column-gap: 16px;
  }
  .fc-track .fc-track__title {
    font-size: clamp(1.375rem, 6.4vw, 1.75rem);
  }
  .fc-track__head {
    gap: 8px;
  }
  .fc-clips {
    min-height: 0;
  }
  .fc-clips__item--archive {
    flex-basis: 100%;
  }
  .fc-clip {
    min-height: 72px;
  }
}

/* --- Empty state: a flat lane, no signal -------------------------------------- */
.fc-empty {
  display: grid;
  gap: 10px;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}

.fc-empty__line {
  position: relative;
  height: 1px;
  margin-bottom: clamp(20px, 3vw, 40px);
  background: var(--fg-4);
}

.fc-empty__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: rec-blink 2.4s steps(1, end) infinite;
}

.fc-empty__title {
  font-size: var(--t-3);
  font-weight: 600;
  line-height: 1.3;
}

.fc-empty__body {
  max-width: 36em;
  color: var(--fg-2);
}

/* --- Reduced motion: nothing travels; everything is in place ------------------- */
@media (prefers-reduced-motion: reduce) {
  .fc-tape__film {
    transform: none !important;
    will-change: auto;
  }
  .js .fc-tape .fc-tape__film {
    clip-path: none !important;
  }
  .js .fc-track .fc-clip {
    clip-path: none !important;
  }
  .fc-rec,
  .fc-empty__line::before {
    animation: none;
  }
  .fc-pending__playhead {
    animation: none;
    opacity: 0;
  }
}
