@scope (.eato-site) {
  .archive-discovery { grid-column: 1 / -1; min-width: 0; }
  .archive-rows { display: grid; gap: 4px; }
  .archive-row {
    container-type: inline-size;
    overflow: hidden;
    min-inline-size: 0;
    padding-block: 3px;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .archive-track {
    display: flex;
    gap: 3px;
    inline-size: max-content;
    animation: archive-scroll var(--archive-loop-duration) linear infinite;
  }
  .archive-row[data-direction="right"] .archive-track { animation-direction: reverse; }
  .archive-group {
    display: flex;
    gap: 3px;
    flex: none;
    min-inline-size: 100cqi;
  }
  .archive-chip, .factory-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 33px;
    padding-inline: 12px;
    border: 1px solid #38514c;
    background: #202e2d;
    color: #d4e2db;
  }
  .archive-chip[data-kind="month"], .factory-chip[data-kind="month"] {
    background: #27382d;
    color: #def4ba;
  }
  .archive-chip[data-kind="genre"], .factory-chip[data-kind="genre"] { background: #29332a; }
  .archive-chip:hover, .factory-chip:hover {
    border-color: var(--lime);
    color: var(--lime);
  }
  @media (hover: hover) {
    .archive-row:hover .archive-track { animation-play-state: paused; }
  }
  .archive-row:has(a:focus-visible) {
    overflow-x: auto;
    mask-image: none;
  }
  .archive-row:has(a:focus-visible) .archive-track { animation: none; }
  .archive-row:has(a:focus-visible) [data-duplicate="true"] { display: none; }

  .archive-factory {
    position: relative;
    container: filter-factory / inline-size;
    height: 104px;
    margin-top: 19px;
    overflow: hidden;
    --factory-cycle: 16s;
  }
  .factory-lane, .factory-machine {
    --factory-slots: 6;
  }
  .factory-lane {
    --factory-edge: clamp(36px, 8cqi, 65px);
    --factory-run: calc(100cqi - var(--factory-edge) - var(--factory-edge));
    --factory-product-width: clamp(62px, 14cqi, 112px);
    position: absolute;
    inset: 0;
  }
  .factory-belt {
    position: absolute;
    inset: 73px 2px 12px;
    border-block: 2px solid #546454;
    background:
      repeating-linear-gradient(90deg, #879a6d70 0 5px, #25352b 5px 15px) 0 1px / 30px 10px repeat-x,
      #202c25;
    box-shadow: inset 0 -3px #111813;
    animation: factory-belt-run .9s linear infinite;
  }
  .factory-machine {
    position: absolute;
    top: 18px;
    bottom: 9px;
    z-index: 2;
    width: clamp(42px, 9%, 70px);
    border: 1px solid #586e53;
    border-radius: 7px 7px 4px 4px;
    background: linear-gradient(155deg,#455b43,#1a2a23 74%);
    box-shadow: inset 0 -5px #19201b, inset 0 2px #8a9c6740, 0 5px 14px #0b111666;
    pointer-events: none;
  }
  .factory-press { inset-inline-start: 0; }
  .factory-shredder { inset-inline-end: 0; }
  .factory-machine::after {
    content: "";
    position: absolute;
    width: 32%;
    right: 0;
    bottom: 17px;
    height: 31px;
    background: #0e1914;
    box-shadow: inset 0 3px #61785880;
  }
  .factory-shredder::after { left: 0; right: auto; }
  .factory-lamp {
    position: absolute;
    width: 6px;
    height: 6px;
    top: 8px;
    left: 9px;
    border-radius: 50%;
    background: #c6ee7c;
    box-shadow: 0 0 8px #b6ed74aa;
  }
  .factory-shredder .factory-lamp { background: #f5b459; box-shadow: 0 0 7px #f5b4598a; }
  .factory-ram {
    position: absolute;
    z-index: 1;
    bottom: 40px;
    right: 6px;
    width: 24px;
    height: 10px;
    border-bottom: 2px solid #a3b48a;
    background: #64755c;
    box-shadow: 0 -9px 0 -3px #778b6b;
    animation: factory-press-stroke calc(var(--factory-cycle) / var(--factory-slots)) ease-in-out infinite;
  }
  .factory-gear {
    position: absolute;
    z-index: 1;
    left: 5px;
    bottom: 33px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: repeating-conic-gradient(#c0c891 0 22deg, #3e4e3d 22deg 45deg);
    box-shadow: inset 0 0 0 5px #454d3a69;
    animation: factory-gear-turn 1.4s linear infinite;
  }
  .factory-gear-lower { bottom: 17px; animation-direction: reverse; }

  .factory-product {
    position: absolute;
    z-index: 3;
    top: 48px;
    inset-inline-start: calc(var(--factory-edge) - 5px);
    width: var(--factory-product-width);
    animation: factory-ship var(--factory-cycle) linear infinite;
    animation-delay: calc(-1 * var(--factory-slot) * var(--factory-cycle) / var(--factory-slots));
  }
  .factory-chip {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 28px;
    height: 28px;
    padding: 0 5px;
    font-size: 11px;
    border-color: #6b835e;
    border-radius: 4px;
    box-shadow: 0 2px 0 #101913;
    animation: factory-crush var(--factory-cycle) linear infinite;
    animation-delay: inherit;
  }
  .factory-chip span { overflow: hidden; text-overflow: ellipsis; }
  .factory-fragments { position: absolute; inset: 0; pointer-events: none; animation-delay: inherit; }
  .factory-fragments i {
    position: absolute;
    left: 20px;
    top: 10px;
    height: 7px;
    width: 7px;
    background: #d7f68d;
    clip-path: polygon(4% 0%, 100% 35%, 64% 100%, 0 65%);
    opacity: 0;
    animation: factory-splinter var(--factory-cycle) linear infinite;
    animation-delay: inherit;
    --chip-x: 20px;
    --chip-y: -23px;
  }
  .factory-fragments i:nth-child(2) { --chip-x: 34px; --chip-y: -10px; background: #9ecf79; }
  .factory-fragments i:nth-child(3) { --chip-x: 28px; --chip-y: 17px; background: #efca78; }
  .factory-fragments i:nth-child(4) { --chip-x: 11px; --chip-y: 12px; }
  @container filter-factory (max-width: 820px) {
    .factory-lane, .factory-machine { --factory-slots: 5; }
    .factory-product[data-slot="5"] { display: none; }
  }
  @container filter-factory (max-width: 600px) {
    .factory-lane, .factory-machine { --factory-slots: 3; --factory-cycle: 10s; }
    .factory-product:is([data-slot="3"],[data-slot="4"]) { display: none; }
  }
  @media (hover: hover) {
    .archive-factory:has(.factory-chip:hover) * { animation-play-state: paused; }
  }
  .archive-factory:has(a:focus-visible) .factory-lane {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    align-items: center;
    padding: 0 46px;
  }
  .archive-factory:has(a:focus-visible) .factory-product {
    position: static;
    display: block;
    flex: 0 0 100px;
    animation: none;
  }
  .archive-factory:has(a:focus-visible) .factory-chip { animation: none; }

  @media (prefers-reduced-motion: reduce) {
    .archive-row { overflow-x: auto; mask-image: none; }
    .archive-track { animation: none; }
    .archive-group[data-duplicate="true"] { display: none; }
    .archive-factory * { animation: none; }
    .factory-lane { display: flex; overflow-x: auto; gap: 5px; padding: 0 46px; align-items: center; }
    .factory-product { position: static; display: block !important; flex: 0 0 100px; }
  }

  .catalog-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, max-content));
    align-items: start;
    gap: 23px clamp(16px, 3.5vw, 50px);
    max-width: 1784px;
    margin-inline: auto;
    padding: clamp(22px, 3.5vw, 40px) clamp(14px, 3.6vw, 42px);
    border-top: 1px solid #263733;
    color: var(--muted);
    line-height: 1.55;
  }
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 17px;
  }
  .footer-brand .brand-mark { width: 37px; height: 37px; }
  .footer-about p { max-width: 28em; margin: 9px 0 0; }
  .catalog-footer h2 {
    margin: 4px 0 8px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
  }
  .catalog-footer ul { margin: 0; padding: 0; list-style: none; }
  .catalog-footer li + li { margin-top: 5px; }
  .catalog-footer a:hover { color: var(--lime); }
  .footer-contact a { overflow-wrap: anywhere; }

  @media (max-width: 760px) {
    .archive-discovery .archive-row { scrollbar-width: none; }
    .catalog-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-about, .footer-contact { grid-column: 1 / -1; }
  }
}

@keyframes archive-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1.5px)); }
}



@keyframes factory-belt-run { to { background-position: 30px 1px; } }
@keyframes factory-press-stroke { 0%, 7% { transform: translateY(13px); } 22%, 86% { transform: translateY(0); } 100% { transform: translateY(13px); } }
@keyframes factory-gear-turn { to { transform: rotate(360deg); } }
@keyframes factory-ship {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--factory-run) - var(--factory-product-width) + 23px)); }
}
@keyframes factory-crush {
  0% { opacity: 0; transform: scale(.65,.22); transform-origin: left center; visibility: hidden; }
  6%, 95% { opacity: 1; transform: scale(1); visibility: visible; }
  99%, 100% { opacity: 0; transform: scale(.42,.65); transform-origin: right center; visibility: hidden; }
}
@keyframes factory-splinter {
  0%, 96%, 100% { opacity: 0; }
  97% { opacity: 1; transform: translate(0,0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--chip-x),var(--chip-y)) rotate(138deg); }
}

