@font-face {
  font-family: "Corundum Text Bold";
  src: url("fonts/fonnts.com-Corundum-Text-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #eeefe4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.165s ease;
}

#dice-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: #ffffff;
}

#archive {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #141919;
  font-family: "Corundum Text Bold";
  opacity: 0;
  transition: opacity 0.165s ease;
  overflow: hidden;
}

@media (max-width: 768px), (pointer: coarse) {
  #intro,
  #archive {
    transition: opacity 0.165s ease;
  }
}

#archive.visible {
  opacity: 1;
  overflow: hidden;
}

/* Archive typography — rendering + print atmosphere (not size/spacing/layout) */
#archive,
.archive-header__brand,
.archive-header__tagline-line1,
.archive-header__tagline-line2,
.archive-song__metadata,
.archive-song__title {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.archive-header__brand,
.archive-header__tagline-line1,
.archive-header__tagline-line2,
.archive-song__title {
  -webkit-text-stroke: 0.5px currentColor;
  paint-order: stroke fill;
}

/* Strong print imperfection — brand, tagline, song titles */
.archive-header__brand {
  text-shadow:
    0.35px 0.2px 0 rgba(0, 0, 0, 0.14),
    -0.25px 0.35px 0 rgba(0, 0, 0, 0.1),
    0 0 0.5px rgba(0, 0, 0, 0.08);
}

.archive-header__tagline-line1,
.archive-header__tagline-line2 {
  text-shadow:
    0.3px 0.2px 0 rgba(0, 0, 0, 0.12),
    -0.3px 0.35px 0 rgba(0, 0, 0, 0.1),
    0 0 0.5px rgba(0, 0, 0, 0.08);
}

.archive-song__title {
  text-shadow:
    0.35px 0.15px 0 color-mix(in srgb, currentColor 22%, transparent),
    -0.2px 0.3px 0 color-mix(in srgb, currentColor 16%, transparent),
    0 0 0.5px color-mix(in srgb, currentColor 12%, transparent);
}

/* Metadata — clean, no misregistration */
.archive-song__metadata {
  -webkit-text-stroke: 0;
}

.archive-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) 0.85rem;
  background: #141919;
}

.archive-header__brand {
  display: inline-flex;
  gap: 2.896em;
  font-family: "Corundum Text Bold";
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #eeefe4;
  grid-row: 1 / 3;
}

.archive-header__brand-e {
  display: inline-block;
  transform: scaleX(-1);
}

.archive-header__tagline-lockup {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  text-align: right;
}

.archive-header__tagline-line1,
.archive-header__tagline-line2 {
  font-family: "Corundum Text Bold";
  font-size: clamp(0.5rem, 1.25vw, 0.625rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eeefe4;
  text-align: right;
}

.archive-header__tagline-line1 {
  display: block;
}

.archive-header__tagline-row2 {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-left: auto;
  margin-top: 0.35rem;
}

.archive-header__tagline-line2 {
  display: block;
  text-align: left;
}

.archive-header__platform-links {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-left: 0.375rem;
  white-space: nowrap;
  transform: translateY(-3px);
}

.archive-header__platform-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.archive-header__platform-link img {
  display: block;
  height: 6.72px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(6%) opacity(0.88);
}

.archive-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 3px;
  margin-top: -3px;
}

.archive-canvas {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 220vh;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 10vw, 8rem);
}

.archive-item {
  --archive-item-offset-x: var(--archive-item-offset-x-desktop, 0%);
  position: relative;
  width: fit-content;
  max-width: min(22rem, 88vw);
  margin-left: var(--archive-item-offset-x);
}

@media (max-width: 768px), (pointer: coarse) {
  .archive-item {
    --archive-item-offset-x: var(--archive-item-offset-x-mobile, 0%);
  }
}

@media (min-width: 769px) and (pointer: fine) {
  .archive-header {
    position: absolute;
    left: 0;
    top: 0;
    width: 1140px;
    display: block;
    padding: 0;
    background: transparent;
    z-index: 10;
  }

  .archive-header__brand {
    position: absolute;
    left: 71px;
    top: 398px;
    z-index: 2;
    grid-row: auto;
    font-size: 16px;
    line-height: 16px;
    gap: 46.33px;
    color: #000000;
  }

  .archive-header__tagline-lockup {
    position: absolute;
    left: 118px;
    top: 408px;
    right: auto;
    z-index: 1;
    grid-column: auto;
    grid-row: auto;
  }

  .archive-header__tagline-line1 {
    position: relative;
    left: 15px;
    text-align: left;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .archive-header__tagline-row2 {
    margin-top: 14px;
    margin-left: -53px;
  }

  .archive-header__tagline-line2 {
    position: relative;
    left: 5px;
    top: -14px;
    text-align: left;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .archive-header__platform-link img {
    height: 6.72px;
    filter: brightness(0) saturate(100%) invert(6%) opacity(0.88);
  }

  .archive-header__platform-links {
    margin-left: 0.65rem;
    transform: translateY(-14px);
  }

  .archive-header__tagline-line1,
  .archive-header__tagline-line2 {
    color: #eeefe4;
    transform: scaleY(0.9);
    transform-origin: top left;
  }

  .archive-scale-outer {
    width: 100%;
    position: relative;
    overflow: visible;
  }

  .archive-design-layer {
    width: 1140px;
    height: 4000px;
    margin: 0 auto;
    transform-origin: top center;
    position: relative;
    overflow: visible;
  }

  /* Upper-section murky-water sleeve — FishCoverBigCrop; extends under video-1 */
  .archive-fish-field {
    position: absolute;
    left: -10%;
    top: 0;
    width: 120%;
    height: var(--archive-fish-field-height, 1570px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #141919;
  }

  .archive-fish-field__image {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: 62% 34%;
    filter: contrast(0.98) brightness(0.99);
  }

  .archive-canvas {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    width: 1140px;
    height: 4000px;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
    background: transparent;
  }

  .archive-item {
    position: absolute;
    left: var(--archive-desktop-left, 0);
    top: var(--archive-desktop-top, 0);
    width: var(--archive-desktop-width, fit-content);
    height: var(--archive-desktop-height, auto);
    max-width: none;
    margin-left: 0;
    margin-bottom: 0 !important;
    z-index: 1;
  }
}

/* --- Songs --- */

.archive-song {
  --archive-song-motion: 0.38s;
  --archive-bar-slide: 1;
}

.archive-song[data-bar-side="left"] {
  --archive-bar-slide: -1;
}

@media (prefers-reduced-motion: reduce) {
  .archive-song {
    --archive-song-motion: 0.01ms;
  }
}

.archive-song__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.archive-song__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.archive-song__bar-group {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
}

.archive-song.is-selected .archive-song__bar-group {
  display: flex;
}

.archive-song__bar-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: translateX(calc(var(--archive-bar-slide) * -1.1rem));
  transition:
    opacity var(--archive-song-motion) ease,
    transform var(--archive-song-motion) ease,
    max-height var(--archive-song-motion) ease,
    visibility 0s linear var(--archive-song-motion);
  pointer-events: none;
}

.archive-song.is-expanded .archive-song__bar-start {
  opacity: 1;
  visibility: visible;
  max-height: 3rem;
  transform: translateX(0);
  transition-delay: 0s;
  pointer-events: auto;
}

.archive-song.is-leaving .archive-song__bar-start {
  opacity: 0;
  transform: translateX(calc(var(--archive-bar-slide) * -0.75rem));
  transition-delay: 0s;
}

.archive-song__metadata {
  font-family: "Corundum Text Bold";
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin: 0;
  white-space: nowrap;
}

.archive-song__progress {
  width: min(12rem, 72vw);
  height: 2px;
  background: rgba(238, 239, 228, 0.35);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scaleX(0.35) translateX(calc(var(--archive-bar-slide) * -0.5rem));
  transform-origin: left center;
  transition:
    opacity var(--archive-song-motion) ease,
    transform var(--archive-song-motion) ease,
    visibility 0s linear var(--archive-song-motion);
}

.archive-song[data-bar-side="left"] .archive-song__progress {
  transform-origin: right center;
}

.archive-song.is-selected .archive-song__progress {
  opacity: 1;
  visibility: visible;
  transform: scaleX(1) translateX(0);
  transition-delay: 0s;
  cursor: pointer;
  pointer-events: auto;
}

.archive-song.is-entering.is-selected .archive-song__progress {
  transform: scaleX(0.2) translateX(calc(var(--archive-bar-slide) * -1rem));
}

.archive-song.is-expanded.is-selected .archive-song__progress,
.archive-song.is-selected:not(.is-entering) .archive-song__progress {
  transform: scaleX(1) translateX(0);
}

.archive-song.is-leaving .archive-song__progress {
  opacity: 0;
  transform: scaleX(0.25) translateX(calc(var(--archive-bar-slide) * -0.5rem));
  pointer-events: none;
}

.archive-song__progress-fill {
  height: 100%;
  width: 0%;
  background: #7c182d;
  transition: width 0.12s linear;
  pointer-events: none;
}

.archive-song__title {
  font-family: "Corundum Text Bold";
  font-size: clamp(0.95rem, 2.8vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #eeefe4;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.archive-song__title:hover {
  color: #888;
}

.archive-song.is-selected .archive-song__title {
  color: #7c182d;
}

.archive-song.is-selected .archive-song__title:hover {
  color: #9a3048;
}

.archive-song__play {
  width: 1.05em;
  height: 1.05em;
  padding: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.0625rem);
  border: 1px solid rgba(136, 136, 136, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-song__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin: 0 0 0 0.1em;
  border-style: solid;
  border-width: 0.22em 0 0.22em 0.36em;
  border-color: transparent transparent transparent #888;
}

.archive-song__play-icon.is-paused {
  width: 0.32em;
  height: 0.45em;
  margin: 0;
  border: none;
  background: linear-gradient(to right, #888 0 35%, transparent 35% 65%, #888 65% 100%);
}

/* --- Videos --- */

.archive-video.is-temporarily-hidden {
  display: none !important;
}

.archive-video__trigger {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  height: 100%;
}

.archive-video__placeholder {
  display: block;
  width: clamp(9rem, 28vw, 14rem);
  height: clamp(5rem, 16vw, 8rem);
  overflow: hidden;
  background: #0a0a0a;
}

.archive-video__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-video__embed-wrap {
  position: absolute;
  inset: 0;
  margin: 0;
  width: auto;
  aspect-ratio: unset;
}

.archive-video__embed {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0a0a;
}

.archive-video.is-embed-open .archive-video__trigger {
  visibility: hidden;
  pointer-events: none;
}

/* Calling Up — fully absent until image-6 discovery */
.archive-song[data-song-id="calling-up"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease;
}

.archive-song[data-song-id="calling-up"].is-discovered,
.archive-song[data-song-id="calling-up"].is-selected {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.archive-song[data-song-id="calling-up"] .archive-song__title {
  transform: translateX(-10px);
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease,
    color 0.18s ease;
}

.archive-song[data-song-id="calling-up"]:not(.is-discovered) .archive-song__bar-group {
  display: none !important;
}

/* Top cluster — black palette (colour only) */
.archive-song[data-cluster="top"].is-selected .archive-song__title,
.archive-song[data-cluster="top"].is-selected .archive-song__title:hover {
  color: #000000;
}

.archive-song[data-cluster="top"].is-selected .archive-song__progress {
  background: #000000;
}

.archive-song[data-cluster="top"].is-selected .archive-song__progress-fill {
  background: #252525;
  transition: width 0.12s linear;
}

/* Prop House + Belladonna — black palette (colour only) */
.archive-song[data-song-id="prophouse"].is-selected .archive-song__title,
.archive-song[data-song-id="belladonna"].is-selected .archive-song__title,
.archive-song[data-song-id="prophouse"].is-selected .archive-song__title:hover,
.archive-song[data-song-id="belladonna"].is-selected .archive-song__title:hover {
  color: #000000;
}

.archive-song[data-song-id="prophouse"].is-selected .archive-song__progress,
.archive-song[data-song-id="belladonna"].is-selected .archive-song__progress {
  background: #000000;
}

.archive-song[data-song-id="prophouse"].is-selected .archive-song__progress-fill,
.archive-song[data-song-id="belladonna"].is-selected .archive-song__progress-fill {
  background: #252525;
  transition: transform 0.12s linear;
}

/* Calling Up — selected palette (#706C63) */
.archive-song[data-song-id="calling-up"].is-selected .archive-song__title {
  color: #706C63;
}

.archive-song[data-song-id="calling-up"].is-selected .archive-song__title:hover {
  color: #706C63;
}

.archive-song[data-song-id="calling-up"].is-selected .archive-song__progress {
  background: #706C63;
}

.archive-song[data-song-id="calling-up"].is-selected .archive-song__progress-fill {
  background: rgba(0, 0, 0, 0.22);
}

@media (min-width: 769px) and (pointer: fine) {
  .archive-song[data-cluster] .archive-song__row {
    position: relative;
    display: block;
  }

  .archive-song[data-cluster] .archive-song__bar-group {
    position: absolute;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    left: var(--archive-song-bar-offset-x, 0);
    top: var(--archive-song-bar-offset-y, 0);
  }

  .archive-song[data-cluster][data-bar-side="left"] .archive-song__title {
    position: relative;
    left: var(--archive-song-title-offset-x, 0);
  }

  .archive-song[data-cluster] {
    z-index: 2;
  }

  .archive-song[data-cluster="top"].is-selected {
    z-index: 4;
  }

  .archive-video,
  .archive-image:not([data-image-id="image-5"]) {
    z-index: 3;
  }

  .archive-image[data-image-id="image-5"] {
    z-index: 4;
    /* Pass clicks through to Prop House / Belladonna bleed bars underneath */
    pointer-events: none;
  }

  .archive-song[data-cluster] .archive-song__title,
  .archive-song[data-cluster] .archive-song__bar-start {
    position: relative;
    z-index: 5;
  }

  .archive-song[data-cluster][data-bar-side="left"] .archive-song__bar-group {
    left: 0;
    width: var(--archive-song-title-offset-x, auto);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
  }

  .archive-song[data-cluster][data-bar-side="left"] .archive-song__bar-start {
    order: 2;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 6;
    margin-left: 0.35rem;
    gap: 0.4rem;
    overflow: visible;
    min-width: max-content;
  }

  .archive-song[data-cluster][data-bar-side="left"].is-expanded .archive-song__bar-start {
    overflow: visible;
  }

  .archive-song[data-cluster="bottom"][data-bar-side="left"] .archive-song__bar-group {
    gap: 0.4rem;
  }

  .archive-song[data-cluster="bottom"][data-bar-side="left"] .archive-song__metadata {
    overflow: visible;
    white-space: nowrap;
    min-width: 5.5rem;
    flex-shrink: 0;
  }

  .archive-song[data-cluster][data-bar-side="left"] .archive-song__progress {
    order: 1;
    flex: 0 0 var(--archive-song-bar-width, 12rem);
    width: var(--archive-song-bar-width, 12rem);
    min-width: 0;
    max-width: min(var(--archive-song-bar-width, 100%), calc(100vw - 1rem));
    margin-left: 0;
    overflow: visible;
  }

  .archive-song[data-cluster][data-bar-side="left"].is-selected .archive-song__progress {
    z-index: 7;
    pointer-events: auto;
  }

  .archive-song[data-cluster][data-bar-side="left"] .archive-song__progress::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: var(--archive-song-bar-bleed-left, 0px);
    background: inherit;
    pointer-events: none;
  }

  .archive-song[data-cluster][data-bar-side="left"].is-selected .archive-song__progress::before {
    background: #7c182d;
    pointer-events: auto;
  }

  .archive-song[data-cluster="top"][data-bar-side="left"].is-selected .archive-song__progress::before {
    background: #000000;
  }

  .archive-song[data-cluster][data-bar-side="left"][data-song-id="prophouse"].is-selected .archive-song__progress::before,
  .archive-song[data-cluster][data-bar-side="left"][data-song-id="belladonna"].is-selected .archive-song__progress::before {
    background: #000000;
  }

  .archive-song[data-cluster][data-bar-side="right"] .archive-song__progress {
    order: 2;
    flex: 0 0 var(--archive-song-bar-width, 12rem);
    width: var(--archive-song-bar-width, 12rem);
    min-width: 0;
    flex-shrink: 0;
    max-width: min(var(--archive-song-bar-width, 100%), calc(100vw - 1rem));
  }

  .archive-song[data-cluster][data-bar-side="right"].is-selected .archive-song__progress {
    z-index: 7;
    pointer-events: auto;
    cursor: pointer;
  }

  .archive-song[data-cluster][data-bar-side="right"] .archive-song__bar-start {
    order: 1;
    flex-shrink: 0;
  }

  .archive-song[data-cluster].is-selected .archive-song__bar-group {
    z-index: 8;
    pointer-events: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__progress {
    pointer-events: auto;
  }

  .archive-song[data-cluster].is-selected .archive-song__bar-start {
    pointer-events: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__metadata {
    pointer-events: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__play {
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  .archive-song[data-cluster] .archive-song__progress {
    position: relative;
    display: block;
    width: var(--archive-song-bar-width, 12rem);
    max-width: 100%;
    box-sizing: border-box;
    background: #eeefe4;
    border: none;
    transform: none;
    transform-origin: left center;
    transition:
      opacity var(--archive-song-motion) ease,
      visibility 0s linear var(--archive-song-motion);
  }

  .archive-song[data-cluster].is-selected .archive-song__progress {
    transform: none;
  }

  .archive-song[data-cluster].is-entering.is-selected .archive-song__progress {
    transform: none;
  }

  .archive-song[data-cluster="top"] .archive-song__progress {
    height: 31px;
  }

  .archive-song[data-cluster="bottom"] .archive-song__progress {
    height: 34px;
  }

  .archive-song[data-cluster].is-selected .archive-song__progress {
    opacity: 1;
    visibility: visible;
    background: #7c182d;
  }

  .archive-song[data-cluster="top"].is-selected .archive-song__progress {
    background: #000000;
  }

  .archive-song[data-song-id="prophouse"].is-selected .archive-song__progress,
  .archive-song[data-song-id="belladonna"].is-selected .archive-song__progress {
    background: #000000;
  }

  .archive-song[data-cluster].is-selected .archive-song__progress-fill {
    background: rgba(0, 0, 0, 0.22);
  }

  .archive-song[data-cluster="top"].is-selected .archive-song__progress-fill {
    background: #252525;
    transition: width 0.12s linear;
  }

  .archive-song[data-song-id="prophouse"].is-selected .archive-song__progress-fill,
  .archive-song[data-song-id="belladonna"].is-selected .archive-song__progress-fill {
    background: #252525;
    transition: transform 0.12s linear;
  }

  .archive-song[data-cluster][data-bar-side="left"][data-song-id="prophouse"].is-selected .archive-song__progress,
  .archive-song[data-cluster][data-bar-side="left"][data-song-id="belladonna"].is-selected .archive-song__progress {
    overflow: visible;
  }

  .archive-song[data-cluster][data-song-id="calling-up"].is-selected .archive-song__progress {
    background: #706C63;
  }

  .archive-song[data-cluster][data-song-id="calling-up"].is-selected .archive-song__progress-fill {
    background: rgba(0, 0, 0, 0.22);
  }

  .archive-song[data-cluster][data-bar-side="left"][data-song-id="calling-up"].is-selected .archive-song__progress::before {
    background: #706C63;
  }

  .archive-song__title {
    white-space: nowrap;
  }

  .archive-song[data-cluster="top"] .archive-song__title {
    font-size: 17px;
    letter-spacing: 0.18em;
  }

  .archive-song[data-cluster="bottom"] .archive-song__title {
    font-size: 19px;
    letter-spacing: 0.14em;
  }

  .archive-song[data-cluster="top"] .archive-song__play {
    font-size: 17px;
  }

  .archive-song[data-cluster="bottom"] .archive-song__play {
    font-size: 19px;
  }

  .archive-video__trigger {
    width: 100%;
    height: 100%;
  }

  .archive-video__placeholder {
    width: 100%;
    height: 100%;
  }

  .archive-image__frame {
    width: 100%;
    height: 100%;
  }

  .archive-image__artefact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
  }

  .archive-image[data-image-id="image-5"] .archive-image__artefact {
    object-fit: contain;
    background: transparent;
  }
}

/* --- Images --- */

.archive-image {
  margin: 0;
}

.archive-image__frame {
  position: relative;
  display: inline-block;
  outline: 4px solid #cccccb;
}

.archive-image[data-image-id="image-5"] .archive-image__frame {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.archive-image[data-image-id="image-5"] .archive-image__artefact {
  background: transparent;
  object-fit: contain;
}

.archive-image__artefact {
  display: block;
  background:
    linear-gradient(145deg, rgba(238, 239, 228, 0.08) 0%, transparent 55%),
    #1e2424;
  border: none;
  object-fit: cover;
}

/* === Mobile archive layout === */
@media (max-width: 768px), (pointer: coarse) {
  .archive-scale-outer {
    width: 100%;
    position: relative;
    overflow: visible;
  }

  .archive-design-layer {
    width: 100%;
    min-height: 0;
    position: relative;
    display: block;
    transform: none !important;
    background: #141919;
  }

  /* Upper-section fish sleeve — cover header + top song cluster */
  .archive-fish-field {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(30rem, 78vh, 44rem);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #141919;
  }

  .archive-fish-field__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 18%;
    filter: contrast(0.98) brightness(0.99);
  }

  /* Header lockup — desktop hierarchy, mobile scale */
  .archive-header {
    position: absolute;
    top: clamp(5rem, 21vw, 6.25rem);
    left: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 100%;
    min-height: clamp(5.5rem, 22vw, 6.75rem);
    padding: 0 clamp(1rem, 4.5vw, 1.35rem);
    background: transparent;
  }

  .archive-header__brand {
    position: absolute;
    left: clamp(1rem, 6.2vw, 1.35rem);
    top: 0;
    z-index: 2;
    display: inline-flex;
    gap: 1.85em;
    font-size: clamp(0.8125rem, 3.6vw, 0.9375rem);
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    grid-row: auto;
    width: fit-content;
    max-width: min(10.5rem, 68vw);
  }

  .archive-header__tagline-lockup {
    position: absolute;
    left: clamp(1.65rem, 10.35vw, 2.2rem);
    top: clamp(0.55rem, 2.4vw, 0.7rem);
    right: auto;
    z-index: 1;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    text-align: left;
  }

  .archive-header__tagline-line1 {
    position: relative;
    left: clamp(0.5rem, 2.5vw, 0.85rem);
    font-size: clamp(0.75rem, 3.4vw, 1.25rem);
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
  }

  .archive-header__tagline-row2 {
    margin-top: clamp(0.75rem, 3.2vw, 1.1rem);
    margin-left: clamp(-1.5rem, -7vw, -0.85rem);
  }

  .archive-header__tagline-line2 {
    position: relative;
    left: clamp(0.15rem, 1vw, 0.35rem);
    top: clamp(-0.45rem, -2vw, -0.75rem);
    font-size: clamp(0.75rem, 3.4vw, 1.25rem);
    line-height: 1;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
  }

  .archive-header__tagline-line1,
  .archive-header__tagline-line2 {
    color: #eeefe4;
    transform: scaleY(0.9);
    transform-origin: top left;
  }

  .archive-header__platform-links {
    margin-left: 0.65rem;
    gap: 0.875rem;
    transform: translateY(clamp(-0.4rem, -1.8vw, -0.65rem));
  }

  .archive-header__platform-link img {
    height: 10px;
    filter: brightness(0) saturate(100%) invert(6%) opacity(0.88);
  }

  .archive-canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: clamp(21.75rem, 70vw, 25rem) clamp(0.85rem, 3.5vw, 1.25rem) clamp(3rem, 10vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: transparent;
  }

  .archive-item {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    height: auto;
    max-width: none;
    margin-left: var(--archive-item-offset-x);
    flex-shrink: 0;
  }

  /* Top cluster — desktop bar/title treatment, diagonal scatter */
  .archive-song[data-cluster="top"] {
    width: 100%;
    max-width: none;
    margin-bottom: clamp(0.15rem, 0.6vw, 0.25rem) !important;
    padding-top: clamp(0.1rem, 0.5vw, 0.22rem);
    padding-bottom: clamp(0.1rem, 0.5vw, 0.22rem);
    z-index: 2;
  }

  /* Shared mobile cluster player — top + bottom */
  .archive-song[data-cluster] .archive-song__title {
    font-size: 12px;
    letter-spacing: 0.18em;
    position: relative;
    z-index: 5;
  }

  .archive-song[data-cluster] .archive-song__play {
    font-size: 17px;
    border-color: #000000;
  }

  .archive-song[data-cluster] .archive-song__play-icon {
    border-color: transparent transparent transparent #000000;
  }

  .archive-song[data-cluster] .archive-song__play-icon.is-paused {
    background: linear-gradient(to right, #000000 0 35%, transparent 35% 65%, #000000 65% 100%);
  }

  .archive-song[data-cluster] .archive-song__row {
    position: relative;
    display: block;
  }

  .archive-song[data-cluster].is-selected {
    margin-left: 0 !important;
    z-index: 4;
  }

  .archive-song[data-cluster].is-selected .archive-song__row {
    min-height: 1.7rem;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .archive-song[data-cluster].is-selected .archive-song__bar-group {
    display: flex;
    position: absolute;
    inset: 0 clamp(0.5rem, 2vw, 0.65rem) 0 clamp(0.5rem, 2vw, 0.65rem);
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: auto;
    left: clamp(0.5rem, 2vw, 0.65rem);
    right: clamp(0.5rem, 2vw, 0.65rem);
    top: 0;
    z-index: 7;
    pointer-events: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__bar-start {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    transform: none;
    pointer-events: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__metadata {
    display: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__play {
    pointer-events: auto;
    position: relative;
    z-index: 10;
  }

  .archive-song[data-cluster] .archive-song__progress {
    position: relative;
    display: block;
    box-sizing: border-box;
    height: 3px;
    padding: 1.125rem 0;
    margin: -1.125rem 0;
    background-clip: content-box;
    transform: none !important;
    transform-origin: left center;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    background: rgba(238, 239, 228, 0.35);
    border: none;
    transition:
      opacity var(--archive-song-motion) ease,
      visibility 0s linear var(--archive-song-motion);
  }

  .archive-song[data-cluster].is-selected .archive-song__progress {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    height: 100%;
    min-height: 1.7rem;
    padding: 0;
    margin: 0;
    background-clip: border-box;
    pointer-events: auto;
    z-index: 7;
    opacity: 1;
    visibility: visible;
    background: #000000;
  }

  .archive-song[data-cluster].is-selected .archive-song__progress-fill {
    background: #252525;
    transition: width 0.12s linear;
    transform: none;
  }

  .archive-song[data-cluster].is-selected .archive-song__title {
    position: absolute;
    left: clamp(0.85rem, 3.5vw, 1.25rem);
    margin-left: var(--archive-item-offset-x, 0%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    pointer-events: none;
    white-space: nowrap;
  }

  .archive-song[data-cluster].is-selected .archive-song__title,
  .archive-song[data-cluster].is-selected .archive-song__title:hover {
    color: #eeefe4;
  }

  .archive-song[data-song-id="calling-up"] .archive-song__title {
    transform: none;
  }

  .archive-song[data-song-id="calling-up"].is-selected .archive-song__title {
    transform: translateY(-50%);
  }

  /* Lower archive — vertical composition (phase 2 pass 1) */

  .archive-video,
  .archive-image {
    position: relative;
  }

  .archive-video .archive-video__embed-wrap {
    aspect-ratio: 16 / 9;
  }

  .archive-image__frame {
    width: 100%;
    outline: 2.8px solid #cccccb;
  }

  .archive-image[data-image-id="image-5"] .archive-image__frame {
    outline: none;
  }

  .archive-image__artefact {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Mobile videos — unified 16:9, ≤80% width, alternating L/R */
  .archive-video {
    width: 80%;
    max-width: 80%;
  }

  .archive-video__trigger {
    display: block;
    width: 100%;
  }

  .archive-video .archive-video__placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .archive-video[data-video-id="video-1"],
  .archive-video[data-video-id="video-2"],
  .archive-video[data-video-id="video-5"] {
    align-self: flex-start;
    margin-left: 0 !important;
  }

  .archive-video[data-video-id="video-3"],
  .archive-video[data-video-id="video-4"] {
    align-self: flex-end;
    margin-left: auto !important;
    margin-right: 0;
  }

  .archive-video[data-video-id="video-1"] {
    margin-top: clamp(2.5rem, 9vw, 3.5rem);
    margin-bottom: clamp(2rem, 6vw, 2.75rem) !important;
  }

  /* Artefacts + mid videos */
  .archive-image[data-image-id="image-3"] {
    width: clamp(4.25rem, 20vw, 5.25rem);
    margin-left: 58% !important;
    margin-bottom: clamp(1.25rem, 4vw, 1.75rem) !important;
  }

  .archive-image[data-image-id="image-3"] .archive-image__artefact {
    aspect-ratio: 1 / 1;
  }

  .archive-video[data-video-id="video-3"] {
    margin-bottom: clamp(2rem, 6vw, 2.5rem) !important;
  }

  .archive-image[data-image-id="image-2"] {
    width: clamp(3.9rem, 19.2vw, 4.8rem);
    margin-left: 8% !important;
    margin-bottom: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .archive-image[data-image-id="image-2"] .archive-image__artefact {
    aspect-ratio: 200 / 197;
  }

  .archive-video[data-video-id="video-2"] {
    margin-bottom: clamp(2rem, 6vw, 2.5rem) !important;
  }

  /* Tracks, large video, dog */
  .archive-image[data-image-id="image-4"] {
    width: clamp(2.2rem, 11.2vw, 2.7rem);
    margin-left: 6% !important;
    margin-top: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: clamp(1.25rem, 4vw, 1.75rem) !important;
  }

  .archive-image[data-image-id="image-4"] .archive-image__artefact {
    aspect-ratio: 166 / 203;
  }

  .archive-video[data-video-id="video-4"] {
    margin-bottom: clamp(2rem, 6vw, 2.75rem) !important;
  }

  .archive-image[data-image-id="image-5"] {
    width: clamp(6.5rem, 32vw, 8.5rem);
    margin-left: 8% !important;
    margin-bottom: clamp(2rem, 7vw, 2.75rem) !important;
  }

  .archive-image[data-image-id="image-5"] .archive-image__artefact {
    aspect-ratio: 179 / 362;
    object-fit: contain;
  }

  /* Bottom song cluster — scatter when idle; shared player when selected */
  .archive-song[data-cluster="bottom"] {
    width: 100%;
    max-width: none;
    margin-bottom: clamp(0.15rem, 0.6vw, 0.25rem) !important;
    padding-top: clamp(0.1rem, 0.5vw, 0.22rem);
    padding-bottom: clamp(0.1rem, 0.5vw, 0.22rem);
    z-index: 2;
  }

  .archive-song[data-song-id="prophouse"] {
    margin-top: clamp(1.5rem, 5vw, 2.25rem);
    margin-left: 8% !important;
  }

  .archive-song[data-song-id="belladonna"] {
    margin-left: 14% !important;
    margin-bottom: clamp(2.5rem, 8vw, 3.5rem) !important;
  }

  /* Closing media + Calling Up */
  .archive-video[data-video-id="video-5"] {
    margin-bottom: clamp(2rem, 6vw, 2.5rem) !important;
  }

  .archive-image[data-image-id="image-6"] {
    width: clamp(7.5rem, 38vw, 9.5rem);
    align-self: flex-end;
    margin-left: 0 !important;
    margin-bottom: clamp(1.25rem, 4vw, 1.75rem) !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .archive-image[data-image-id="image-6"] .archive-image__artefact {
    aspect-ratio: 215 / 218;
  }

  .archive-song[data-song-id="calling-up"] {
    margin-left: var(--archive-item-offset-x) !important;
    margin-bottom: clamp(2rem, 6vw, 2.5rem) !important;
  }

  .archive-song[data-song-id="calling-up"].is-selected {
    margin-right: 0 !important;
  }

  .archive-song__progress {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* --- Archive atmosphere (Phase 1): texture + age only --- */

#archive::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0.058;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Images — scanned-material imperfection (no rotation) */
.archive-image[data-image-id="image-2"] .archive-image__frame {
  outline-color: rgba(204, 204, 203, 0.91);
}

.archive-image[data-image-id="image-2"] .archive-image__artefact {
  opacity: 0.94;
  filter: contrast(0.985) brightness(0.988);
}

.archive-image[data-image-id="image-3"] .archive-image__frame {
  outline-color: rgba(204, 204, 203, 0.84);
}

.archive-image[data-image-id="image-3"] .archive-image__artefact {
  opacity: 0.97;
  filter: contrast(0.975) brightness(0.992);
}

.archive-image[data-image-id="image-4"] .archive-image__frame {
  outline-color: rgba(204, 204, 203, 0.89);
}

.archive-image[data-image-id="image-4"] .archive-image__artefact {
  opacity: 0.95;
  filter: contrast(0.98) brightness(0.991);
}

.archive-image[data-image-id="image-5"] .archive-image__artefact {
  opacity: 0.98;
  filter: contrast(0.99) brightness(0.995);
}

.archive-image[data-image-id="image-6"] .archive-image__frame {
  outline-color: rgba(204, 204, 203, 0.87);
}

.archive-image[data-image-id="image-6"] .archive-image__artefact {
  opacity: 0.93;
  filter: contrast(0.97) brightness(0.987);
}

/* Videos — full opacity (grain stays on #archive::after) */
.archive-video[data-video-id="video-1"] .archive-video__placeholder,
.archive-video[data-video-id="video-2"] .archive-video__placeholder,
.archive-video[data-video-id="video-3"] .archive-video__placeholder,
.archive-video[data-video-id="video-4"] .archive-video__placeholder,
.archive-video[data-video-id="video-5"] .archive-video__placeholder {
  opacity: 1;
}

.hidden {
  display: none !important;
}

#shake-control-panel {
  display: none;
}

@media (pointer: coarse) {
  #shake-control-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    position: fixed;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 50;
    max-width: min(11rem, 42vw);
    pointer-events: auto;
  }

  #shake-enable-btn {
    font-family: "Corundum Text Bold";
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  #shake-enable-btn:disabled {
    opacity: 0.5;
    cursor: default;
  }

  #shake-control-status,
  #shake-control-help {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.5rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: #777;
    text-align: right;
    margin: 0;
  }

  #shake-control-help {
    color: #999;
    max-width: 11rem;
  }
}

#archive.visible ~ #shake-control-panel {
  display: none !important;
}
