/* Equipment index */
.kit-section {
  background: var(--stone);
  padding: clamp(60px, 6.8vw, 124px) var(--edge) clamp(62px, 6.8vw, 120px);
}
.kit-section:focus { outline: none; }
.kit-heading, .kit-bar, .pieces { max-width: 1740px; margin-inline: auto; }
.kit-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 3.4vw, 56px);
}
.kit-heading h2 { font-size: clamp(48px, 6.8vw, 132px); margin: .18em 0 0; }
.kit-heading p { font-size: clamp(15px, 1.2vw, 19px); }
.kit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block: 1px solid #a79d93;
  margin-bottom: 23px;
}
.filters { display: flex; gap: clamp(16px, 2.5vw, 42px); }
.filters button {
  padding: 14px 0 11px;
  border-bottom: 3px solid transparent;
  color: #56504a;
  min-height: 48px;
}
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] { border-bottom-color: var(--clay); }
.pieces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 38px) clamp(12px, 1.45vw, 28px);
  align-items: start;
}
.piece {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.piece[hidden], [hidden] { display: none; }
.pieces[data-view="all"] .portrait { grid-row: span 2; align-self: stretch; }
.piece-photo { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 1.56; }
.portrait .piece-photo { aspect-ratio: 2 / 3; }
.pieces[data-view="all"] .portrait .piece-photo { flex: 1; }
.piece-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease-out;
}
@media(hover:hover) { .piece:hover .piece-photo img { transform: scale(1.025); } }
.piece-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 13px; }
.piece-caption .label { display: block; color: #57504a; }
.piece-caption h3 { font: italic 900 clamp(21px, 2vw, 38px)/1.05 ArchivoDisplay, sans-serif; letter-spacing: -.045em; margin: 5px 0 0; }
.piece-open {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #bdb2a7;
  border-radius: 50%;
  font: 18px Arial, sans-serif;
}
.piece:hover .piece-open { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pieces:is([data-view="running"], [data-view="strength"]) {
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
}
.pieces:is([data-view="running"], [data-view="strength"]) .piece-photo {
  height: min(49vw, 68svh, 680px);
  aspect-ratio: auto;
}

/* A single product sheet, with the same picture proportions as the index. */
body:has(dialog[open]) { overflow: hidden; }
#piece-sheet { width: min(1020px, calc(100% - 48px)); max-height: 90svh; }
.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 20px;
  border-bottom: 1px solid #b8b0a7;
}
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; }
.sheet-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: min(54svh, 540px); }
.sheet-photo { display: grid; place-items: center; min-width: 0; background: #292521; }
.sheet-photo img { display: block; width: 100%; height: min(59svh, 570px); object-fit: contain; }
.sheet-copy { padding: clamp(24px, 3vw, 52px); align-self: center; }
.sheet-copy h2 { font-size: clamp(36px, 4vw, 74px); line-height: .98; margin: .35em 0; }
.sheet-copy p { font-size: 17px; }
.finish { padding-top: 18px; margin-top: 25px; border-top: 1px solid #b7aea4; }
#piece-finish { margin-left: 12px; }
.colorways { display: flex; gap: 5px; margin-top: 4px; }
.colorways[hidden] { display: none; }
.colorways button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.colorways button::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: 0 0 0 1px rgb(17 17 17 / .18);
}
.colorways button[aria-pressed="true"]::before { outline: 1px solid var(--ink); outline-offset: 3px; }
[data-color="ink"] { --chip: var(--ink); }
[data-color="stone"] { --chip: var(--stone); }
[data-color="clay"] { --chip: var(--clay); }
.sheet-back { margin-top: 20px; }

/* Last frame */
.reset {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 450px;
}
.reset-frame { position: relative; color: var(--bone); background: #352d26; }
.reset-frame > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% 60%; }
.reset-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 17 17 / .55) 0%, transparent 48%);
}
.reset-copy { position: absolute; z-index: 1; top: 12%; left: var(--edge); max-width: 40%; }
.end-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: var(--bone); padding: 20px var(--edge); }
.end-band img { width: clamp(115px, 11vw, 190px); height: auto; }

@media(max-width:760px), (max-aspect-ratio:4/5) {
  .kit-heading { display: block; }
  .kit-heading h2 { font-size: clamp(45px, 9vw, 80px); }
  .kit-heading p { margin-top: 18px; }
  .kit-bar { margin-bottom: 18px; }
  .filters { gap: 16px; }
  .filters button { font-size: 14px; }
  .kit-count { font-size: 9px; }
  .pieces, .pieces:is([data-view="running"], [data-view="strength"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece-photo { aspect-ratio: 1.36; }
  .piece-caption { padding-top: 8px; }
  .piece-open { width: 22px; height: 22px; font-size: 13px; }
  .piece-caption h3 { font-size: clamp(18px, 4vw, 28px); }
  .piece-caption .label { font-size: 9px; letter-spacing: .01em; }
  .pieces:is([data-view="running"], [data-view="strength"]) .piece-photo { height: min(64vw, 48svh); }
  .reset { min-height: 560px; }
  .reset-frame { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--stone); color: var(--ink); }
  .reset-frame > img { position: static; min-height: 0; height: 100%; object-position: 72% 60%; }
  .reset-frame::after { display: none; }
  .reset-copy { position: static; transform: none; max-width: none; padding: 26px var(--edge) 32px; }
  .reset-copy h2 { font-size: clamp(58px, 12vw, 98px); margin: .18em 0; }
  .reset-copy h2 br { display: none; }
  .reset-copy .text-link { margin-top: 14px; }
  .end-band .label { font-size: 9px; letter-spacing: .01em; }
  .end-band img { width: 111px; }
  #piece-sheet { width: min(560px, calc(100% - 24px)); max-height: 92svh; }
  .sheet-top { padding-inline: 14px; }
  .sheet-layout { display: block; }
  .sheet-photo img { height: min(34svh, 350px); }
  .sheet-copy { padding: 20px; }
  .sheet-copy h2 { margin: .18em 0; }
  .sheet-copy p { font-size: 15px; }
  .finish { margin-top: 14px; padding-top: 12px; }
  .sheet-back { margin-top: 8px; }
}
@media(max-width:370px) {
  .filters { gap: 11px; }
  .filters button { font-size: 13px; }
  .signature img { width: 112px; }
  .piece-open { display: none; }
}
@media(min-aspect-ratio:2/1) {
  .reset-frame > img { width: auto; max-width: 100%; object-fit: contain; mask-image: linear-gradient(to right,black 70%,transparent); }
}

/* Studio credit in the end band, same mark as the other Skydome demo sites. */
.end-credit { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); flex-wrap: wrap; }
.end-band .studio { display: inline-flex; align-items: baseline; gap: .5em; white-space: nowrap; color: var(--stone); font-size: 13px; }
.end-band .studio:hover, .end-band .studio:focus-visible { color: var(--bone); }
.studio-mark { height: 1.3em; width: auto; transform: translateY(.22em); }
.studio-dot { fill: var(--clay); transition: transform .3s; transform-origin: 4041px 650px; }
.end-band .studio:hover .studio-dot { transform: scale(1.35); }
