body { background: #000; }

  #media { position: fixed; inset: 0; z-index: 0; background: #000; overflow: hidden; }
  #media .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
  #media .layer.on { opacity: 1; }
  #media .layer video, #media .layer img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.32) brightness(0.5) contrast(1.07) sepia(0.06);
  }
  .veil {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background:
      radial-gradient(120% 90% at 50% 42%, transparent 30%, rgba(0, 0, 0, 0.62) 100%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.66) 100%);
  }
  .grain-static {
    position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }
  #media-credit {
    position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: 0.8rem; z-index: 20;
    max-width: 17rem; text-align: right;
    font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.08em; line-height: 1.5;
    color: rgba(232, 228, 220, 0.42);
    opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
  }
  #media-credit.on { opacity: 1; }

  .topscrim {
    position: fixed; top: 0; left: 0; right: 0; height: 110px; z-index: 25; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0));
  }
  .topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: 1.1rem clamp(1rem, 4vw, 2.2rem);
  }
  .topnav .wordmark { font-size: 1.05rem; }
  .topnav .links { display: flex; align-items: baseline; white-space: nowrap; column-gap: clamp(0.7rem, 2.2vw, 1.5rem); }
  .topnav .links a {
    font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
  }
  .topnav .links a:hover { opacity: 0.6; }
  @media (max-width: 600px) {
    .topnav { align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; }
    .topnav .links { column-gap: 0.85rem; }
    .topnav .links a { font-size: 0.55rem; letter-spacing: 0.12em; }
  }

  main { position: relative; z-index: 10; }

  .beat {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 14vh var(--gutter);
  }
  .beat .panel { max-width: 40rem; width: 100%; }
  .beat .panel :where(h1, h2, p, .kicker, .small) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 28px rgba(0, 0, 0, 0.75);
  }
  .beat .kicker { margin-bottom: 1.1rem; }
  .beat .kicker.blood { color: var(--blood-bright); }
  .beat h1, .beat h2 {
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1.03;
    margin-bottom: 1.2rem;
    text-wrap: balance;
  }
  .beat p {
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    line-height: 1.58;
    color: var(--bone);
    margin-bottom: 1rem;
    text-wrap: pretty;
  }
  .beat p strong { color: var(--white); font-weight: 600; }
  .beat .small { font-size: 0.98rem; color: #b6b2aa; line-height: 1.65; }
  .beat .discretion {
    margin-top: 2rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blood-bright);
  }
  .beat .scrollcue {
    margin-top: 2.6rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .beat .scrollcue .arrow { display: block; margin-top: 0.7rem; font-size: 1rem; }
  @media (prefers-reduced-motion: no-preference) {
    .beat .scrollcue .arrow { animation: bob 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  }
  @keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    }
    .js .reveal.in { opacity: 1; transform: none; }
  }

  /* ---- the records ---- */
  .records {
    position: relative;
    background: #050505;
    border-top: 1px solid var(--hairline-faint);
    padding: 4.5rem 0 1rem;
  }
  .records-inner, .archive-inner, .w-foot-inner { max-width: 50rem; margin-inline: auto; padding-inline: var(--gutter); }
  .clips { display: grid; gap: 2.8rem; margin-top: 2.2rem; }
  .clip { position: relative; }
  .clip-frame { position: relative; border: 1px solid var(--hairline); }
  .clip-no {
    position: absolute; top: 0; left: 1.2rem; transform: translateY(-50%); z-index: 2;
    background: #050505; padding-inline: 0.7rem; white-space: nowrap;
    font-family: var(--sans); font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey);
  }
  .clip-load, .clip iframe {
    display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
    position: relative; cursor: pointer; background: #000; padding: 0;
  }
  .clip-load img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.42; filter: grayscale(0.5) contrast(1.05);
    transition: opacity 0.4s var(--ease-out);
  }
  .clip-load:hover img { opacity: 0.6; }
  .clip-play {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
    color: var(--white); background: rgba(5, 5, 5, 0.2);
  }
  .clip-play .ring {
    width: 58px; height: 58px;
    border: 1px solid rgba(245, 242, 236, 0.7); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; padding-left: 4px;
    transition: all 0.4s var(--ease-out);
  }
  .clip-load:hover .ring { border-color: var(--blood-bright); background: rgba(197, 22, 10, 0.18); }
  .clip-play .word {
    font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.3em; text-transform: uppercase;
  }
  .clip figcaption { padding: 1.1rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
  .clip figcaption strong {
    font-family: var(--serif); font-weight: 400; font-size: 1.3rem;
    line-height: 1.25; color: var(--white);
  }
  .clip .loc { font-size: 0.9rem; color: var(--grey); line-height: 1.5; }
  .clip .credit {
    margin-top: 0.4rem;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--grey-dim);
  }
  .clip .credit a {
    color: var(--grey);
    text-decoration: underline; text-decoration-color: rgba(232, 228, 220, 0.25);
    text-underline-offset: 3px;
  }
  .clip .credit a:hover { color: var(--bone); }

  /* ---- animal jump, a slim bar pinned under the top nav ---- */
  .animal-jump {
    position: sticky;
    top: 4rem;
    z-index: 18;
    margin-top: 1.6rem;
    background: rgba(5, 5, 5, 0.97);
    border-top: 1px solid var(--hairline-faint);
    border-bottom: 1px solid var(--hairline);
  }
  .aj-track {
    max-width: 50rem;
    margin-inline: auto;
    padding: 0.5rem var(--gutter);
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .aj-track::-webkit-scrollbar { display: none; }
  .animal-jump button {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--hairline);
    cursor: pointer;
    color: var(--grey);
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  }
  .animal-jump button:hover,
  .animal-jump button.current { color: var(--white); border-color: var(--blood-bright); }
  .animal-jump button svg { width: 26px; height: 17px; display: block; flex: none; }
  @media (max-width: 600px) { .animal-jump { top: 4rem; } }

  /* ---- record groups, one per animal, with a clear heading ---- */
  .clip-group { margin-top: 3rem; scroll-margin-top: 7rem; }
  .clip-group:first-child { margin-top: 1.8rem; }
  .group-head {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bone);
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--hairline);
  }
  .clip-group .clips { margin-top: 1.5rem; }

  /* ---- archive + attribution ---- */
  .archive { background: #050505; padding: 3.6rem 0 0; }
  .archive h3 { font-family: var(--serif); font-size: 1.5rem; margin: 1rem 0 0.8rem; }
  .archive p { color: var(--bone); max-width: 40rem; line-height: 1.65; }
  .src-links { list-style: none; margin-top: 1.4rem; padding: 0; }
  .src-links li { border-bottom: 1px solid var(--hairline-faint); }
  .src-links a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding: 0.95rem 0;
    font-family: var(--serif); font-size: 1.08rem; color: var(--bone);
  }
  .src-links a:hover { color: var(--white); }
  .src-links .ext {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim); white-space: nowrap;
  }
  .src-links a:hover .ext { color: var(--blood-bright); }

  .w-foot { background: #050505; margin-top: 3rem; padding: 1.8rem 0 3.5rem; }
  .w-foot-inner { border-top: 1px solid var(--hairline); padding-top: 1.8rem; }
  .attrib { font-size: 0.85rem; color: var(--grey); line-height: 1.65; max-width: 44rem; }
  .attrib strong { color: var(--bone); font-weight: 600; }
  .attrib a {
    text-decoration: underline; text-decoration-color: rgba(232, 228, 220, 0.25);
    text-underline-offset: 3px;
  }
  .attrib a:hover { color: var(--bone); }
  .w-doors { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 2rem 0 0; }
