/* Attic is scoped to its homepage section; all covers reuse the original assets. */
.attic-browser { --attic-gutter: clamp(10px, calc(5.8752px + 1.071vw), 34px); margin-top: clamp(48px, 6vw, 100px); }
.attic-landing { height: 100svh; display: flex; flex-direction: column; padding: 24px var(--attic-gutter); background: #fff; }
.attic-browser .project-list { position: absolute; z-index: 3; left: 3.804%; bottom: 4.5%; padding: 0; margin: 0; list-style: none; }
.attic-browser .project-list li { margin: 0; padding: 0; }
.attic-browser .project-list button { display: flex; align-items: baseline; width: max-content; max-width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.3); padding: 0; font: inherit; text-align: left; cursor: pointer; letter-spacing: .02em; line-height: 1.23; transition: color 300ms ease; }
.attic-browser .project-list span { font-size: clamp(24px, 2.549vw, 44px); font-weight: 500; }
.attic-browser .project-list small { font-size: clamp(9px, .7843vw, 13px); margin-left: 8px; font-weight: 500; letter-spacing: .02em; }
.attic-browser .project-list button[aria-pressed=true] { color: #fff; }
.attic-hero { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #38170c; isolation: isolate; cursor: pointer; }
.attic-browser .covers, .attic-browser .cover { position: absolute; inset: 0; overflow: hidden; }
.attic-browser .cover { opacity: 0; transition: opacity 600ms ease; pointer-events: none; }
.attic-browser .cover.active { opacity: 1; z-index: 1; }
.attic-browser .cover img { display: block; user-select: none; pointer-events: none; }
.attic-browser .full { width: 100%; height: 100%; object-fit: cover; }
.attic-browser .roquarry-bg { position: absolute; left: -1.38%; top: -20.67%; width: 135.3%; height: 135.3%; object-fit: fill; }
.attic-browser .roquarry-stack { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44.9516%; height: 99.6314%; object-fit: contain; }
.attic-browser .kyoona .full { object-position: center 70%; }
.attic-browser .kyoorius .full { object-position: center top; }
.attic-browser .mossant { background: #555438; }
.attic-browser .mossant img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.attic-browser .third-wave { background: #e7e5dc; }
.attic-browser .third-wave img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.attic-browser .contrast { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.13), transparent 43%); pointer-events: none; }
.attic-browser button:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }
.attic-hero:focus-visible { outline: 2px solid #47676c; outline-offset: 5px; }
.attic-sr-only { position: absolute!important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 680px) {
  .attic-browser { --attic-gutter: max(10px, 2.72vw); }
  .attic-landing { padding-block: 16px; }
  .attic-browser .project-list { left: 24px; bottom: 28px; }
  .attic-browser .project-list span { font-size: 30px; }
  .attic-browser .project-list small { font-size: 10px; }
  .attic-browser .project-list button { line-height: 1.26; padding: 1px 0; }
  .attic-browser .contrast { background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 75%); }
  .attic-browser .roquarry-stack { width: 100%; height: 100%; left: 56%; object-fit: cover; object-position: center; }
  .attic-browser .roquarry-bg { width: 200%; height: 135.3%; left: -30%; }
}
@media (prefers-reduced-motion: reduce) { .attic-browser .cover, .attic-browser .project-list button { transition: none; } }

/* Sit the Roquarry box stack on the bottom edge of the frame, with no gap below it. */
.attic-browser .roquarry-stack { top: auto; bottom: -1px; transform: translateX(-50%); height: calc(99.6314% + 1px); object-position: center bottom; }
/* 50% larger so the boxes are the highlight; grown from the bottom edge and nudged down so the top box sits near the middle. */
.homepage .attic-browser .roquarry-stack { transform: translateX(-50%) translateY(18.5%) scale(2.15); transform-origin: 50% 100%; }   /* top box about two-thirds of the cover wide, its lid near the top edge */

/* "Other works": names listed on the left, the work rolling through a large square on the right,
   all on black. */
.homepage .attic-landing { background: #000; }
.attic-browser .attic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  background: #000;
  overflow: visible;
  cursor: default;
}
.attic-browser .attic-index { grid-column: 1; grid-row: 1; padding-left: clamp(16px, 6.5vw, 120px); align-self: center; }
.attic-browser .attic-label {
  margin: 0 0 clamp(14px, 1.6vw, 28px);
  color: #9a9a9a;
  font: 500 clamp(10px, .78vw, 13px)/1 "Neue Montreal", Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.attic-browser .attic-index .project-list { position: static; }
.attic-browser .attic-index .project-list button { color: rgba(255,255,255,.32); line-height: 1.5; }
.attic-browser .attic-index .project-list button:hover { color: rgba(255,255,255,.7); }
.attic-browser .attic-index .project-list button[aria-pressed=true] { color: #fff; }
.attic-browser .covers {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  height: min(calc(100svh - 48px), 54vw);
  width: auto;
  aspect-ratio: 1;
  justify-self: end;
  cursor: pointer;
  background: #111;
}
.attic-browser .contrast { display: none; }
@media (max-width: 680px) {
  .attic-landing { height: auto; }
  .attic-browser .attic-hero { grid-template-columns: 1fr; gap: 28px; }
  .attic-browser .attic-index { grid-row: 2; grid-column: 1; padding-left: 4px; }
  .attic-browser .covers { grid-row: 1; grid-column: 1; width: 100%; height: auto; }
}

/* Same gap above the square as between the project cards above it. */
.homepage .attic-browser { margin-top: 0; padding-top: clamp(120px, 14vw, 260px); background: #000; }
.homepage .attic-landing { height: auto; padding-top: 0; }

/* Ruler beside the project names. */
.attic-browser .attic-index { position: relative; }
.attic-browser .attic-ruler {
  --mark: 0px;
  position: absolute;
  left: calc(clamp(16px, 6.5vw, 120px) - clamp(30px, 3vw, 48px));
  width: 22px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.attic-browser .attic-ruler-ticks {
  position: absolute;
  left: 0;
  top: -200%;
  width: 9px;
  height: 500%;
  background: linear-gradient(transparent 0 6px, #5c5c5c 6px 7px, transparent 7px 13px) 0 0 / 9px 13px repeat-y;
  transform: translateY(var(--mark));
}
.attic-browser .attic-ruler-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transform: translateY(calc(var(--mark) - .75px));
}
@media (max-width: 680px) { .attic-browser .attic-ruler { display: none; } }
@media (prefers-reduced-motion: reduce) { .attic-browser .attic-ruler-ticks, .attic-browser .attic-ruler-mark { transition: none; } }

/* Project names at 1.5x. */
.attic-browser .attic-index .project-list span { font-size: clamp(31px, 3.28vw, 57px); }
.attic-browser .attic-index .project-list small { font-size: clamp(12px, 1.05vw, 18px); margin-left: 10px; }
.attic-browser .attic-index .project-list button { line-height: 1.32; }
/* "OTHER WORKS" label at 2x. */
.attic-browser .attic-label { font-size: clamp(20px, 1.56vw, 26px); }

/* Homepage footer: inverted (black with white text) so it continues the dark last fold. */
.homepage .site-shared-footer { background: #000; color: #fff; box-shadow: 0 4px 5px #0008; }

/* Homepage: the image box reaches further left, up to a set gap from the project names, so it
   becomes a landscape rectangle instead of a square. */
@media (min-width: 681px) {
  .homepage .attic-browser .attic-hero { grid-template-columns: max-content minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
  .homepage .attic-browser .covers { width: 100%; aspect-ratio: auto; justify-self: stretch; }
  /* Size the Roquarry boxes from the height, so a wider box doesn't make them bigger, and keep the
     backdrop texture from stretching. */
  .homepage .attic-browser .roquarry-stack { width: auto; aspect-ratio: 0.4512; }
  .homepage .attic-browser .roquarry-bg { left: -1.38%; width: 102.76%; object-fit: cover; }
}
/* KFC: the whole cup, as on its homepage card; the sides are filled with the photo's own flat red. */
.attic-browser .kfc { background: rgb(241, 67, 66); }
.attic-browser .kfc .full { object-fit: contain; }
