.home-covers {
  --stall-paper: #fff9e8;
  --stall-yellow: #ffda38;
  --stall-blue: #2346b3;
  --stall-ink: #172a3a;
  position: relative;
}

.cover-track {
  display: flex;
  height: calc(100svh - var(--header-height, 56px) - 3rem);
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cover-track::-webkit-scrollbar { display: none; }
.cover-track > [data-cover] {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.stall-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 90px);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  padding: clamp(82px, 7vw, 120px) clamp(22px, 7vw, 140px) 60px;
  color: var(--stall-ink);
  background: var(--stall-paper);
}

.stall-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #fff5 0 1px, transparent 1px 7px), var(--stall-yellow);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 32% 100%);
  pointer-events: none;
}

.stall-cover-copy { position: relative; z-index: 1; }
.stall-edition {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  background: var(--stall-blue);
  color: white;
  font-size: .92rem;
  font-weight: 750;
  transform: rotate(-3deg);
}

.stall-cover h1 {
  margin: 0;
  max-width: 8em;
  color: var(--stall-blue);
  font-size: var(--text-display, clamp(2.75rem, 6vw, 4.5rem));
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: var(--leading-display, 1.08);
  text-wrap: balance;
}

:lang(en) .stall-cover h1 { max-width: 12em; font-size: var(--text-display, clamp(2.75rem, 6vw, 4.5rem)); }
.stall-cover h1 span { display: block; white-space: nowrap; }
.stall-line { margin: 16px 0 20px; font-size: clamp(1rem, 1.6vw, 1.5rem); font-weight: 700; }
.stall-ticket {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 0 22px;
  border: 1px solid var(--stall-ink);
  background: var(--stall-yellow);
  font-weight: 750;
}

.stall-ticket > * { padding: 8px 12px; }
.stall-ticket strong { border-inline-end: 1px dashed var(--stall-ink); }
.stall-ended { margin: -10px 0 14px; font-weight: 750; }
.stall-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 16px;
  color: white;
  background: var(--stall-blue);
  border: 2px solid var(--stall-blue);
  border-radius: 4px;
  font-weight: 750;
}

.stall-link:hover { background: var(--stall-paper); color: var(--stall-blue); }
.stall-collage {
  position: relative;
  justify-self: center;
  width: min(100%, 690px);
  aspect-ratio: 1.36;
}

.stall-photo {
  position: absolute;
  margin: 0;
  padding: clamp(4px, 1vw, 11px);
  background: #fffef9;
  border: 1px solid #26334b36;
  box-shadow: 4px 8px 0 #162d6333;
}

.stall-photo img { display: block; width: 100%; height: auto; }
.stall-photo-group { width: 77%; left: 5%; top: 4%; transform: rotate(-7deg); }
.stall-photo-cat { width: 38%; right: 1%; bottom: 0; transform: rotate(10deg); }
.stall-photo-tree { width: 27%; left: 0; bottom: -5%; transform: rotate(-11deg); }
.stall-stamp {
  position: absolute;
  bottom: 4%;
  left: 33%;
  padding: 4px 8px;
  border: 2px solid currentColor;
  color: var(--stall-blue);
  background: var(--stall-paper);
  transform: rotate(-7deg);
  font-size: clamp(.63rem, 1.1vw, .95rem);
  font-weight: 800;
}

/* Switcher is the footer of the cover, under the slides. Not a second bar. */
.cover-controls:not([hidden]) {
  position: relative;
  z-index: 2;
  top: auto;
  right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .15rem .35rem;
  width: 100%;
  max-width: none;
  height: 3rem;
  margin: 0;
  padding: 0 clamp(12px, 4vw, 40px);
  border: 0;
  border-radius: 0;
  background: var(--color-background);
  color: var(--color-muted-foreground);
  box-shadow: none;
  backdrop-filter: none;
}

.cover-controls button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 .4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--color-muted-foreground) 88%, transparent);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.cover-controls button[data-cover-select]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: .4rem;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-muted-foreground) 80%, transparent);
  vertical-align: .05em;
}

.cover-controls button[aria-pressed="true"] {
  background: transparent;
  color: color-mix(in srgb, var(--color-foreground) 78%, transparent);
}

.cover-controls button[aria-pressed="true"]::before {
  background: color-mix(in srgb, var(--color-foreground) 55%, transparent);
  box-shadow: none;
}

.cover-controls button:not([aria-pressed="true"]):hover {
  background: transparent;
  color: var(--color-foreground);
}

.cover-controls .cover-arrow {
  min-width: 32px;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent);
}

.home-covers :focus-visible, .stall-products :focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }
.cover-controls button:focus-visible { outline-offset: 2px; }

.stall-products {
  scroll-margin-top: 0;
  margin: 24px 0;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid #dfd3ad;
  background: #fff9e8;
}

.stall-products-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.stall-products-heading h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); }
.stall-products-heading p { margin: 6px 0 0; }
.stall-products-heading a { color: #2346b3; text-decoration: underline; }
.stall-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stall-product-grid li { min-width: 0; background: white; border: 1px solid #dfd3ad; }
.stall-product-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f2e7d6; }
.stall-product-grid h4 { margin: 0; padding: 8px; font-size: .95rem; line-height: 1.4; }

@media (max-width: 1050px) {
  .stall-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .stall-cover { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 82px 22px 40px; }
  .stall-cover::before { clip-path: polygon(0 57%, 100% 50%, 100% 100%, 0 100%); }
  .stall-cover h1 { font-size: var(--text-display, clamp(2.75rem, 6vw, 4.5rem)); max-width: 100%; }
  .stall-cover h1 span { display: inline-block; }
  .cover-controls:not([hidden]) { top: auto; right: auto; }
  :lang(en) .stall-cover h1 { font-size: var(--text-display, clamp(2.75rem, 6vw, 4.5rem)); }
  .stall-line { margin: 8px 0 12px; }
  .stall-ticket { margin-bottom: 12px; }
  .stall-ended { margin-top: 0; }
  .stall-collage { align-self: center; width: min(93%, 390px); }
}

@media (max-width: 540px) {
  .stall-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lab identity cover: one real photograph, spoken line over a scrim.
   The printer canvas is not part of this cover. */
.home-covers .hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 0;
  padding: clamp(4.75rem, 9vh, 6.75rem) clamp(22px, 7vw, 108px) clamp(2.25rem, 5vh, 3.75rem);
  overflow: hidden;
  background: var(--color-background);
}
.home-covers .hero:before { content: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.home-covers .hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(15 15 35 / .28) 0%, transparent 24%, transparent 46%, rgb(15 15 35 / .62) 100%),
    linear-gradient(90deg, rgb(15 15 35 / .9) 0%, rgb(15 15 35 / .68) 34%, rgb(15 15 35 / .22) 62%, rgb(15 15 35 / .1) 100%);
}
.home-covers .hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(38rem, 64%);
}
.home-covers .hero h1 { margin: 0 0 .75rem; color: var(--color-foreground); }
.home-covers .hero h1 span { color: inherit; -webkit-text-stroke: 0; }
.home-covers .hero-sub,
.home-covers .hero-lead { color: var(--color-foreground); }
.home-covers .hero-lead { max-width: 38rem; }
.home-covers .hero-actions { margin-top: 1.2rem; }
.home-covers .hero-actions .text-link {
  display: inline-block;
  padding: 0 0 .12rem;
  border: 0;
  border-bottom: 1px solid var(--color-foreground);
  border-radius: 0;
  background: transparent;
  color: var(--color-foreground);
  font-weight: 650;
}
.home-covers .hero-actions .text-link:hover {
  background: transparent;
  border-bottom-color: var(--color-secondary);
  color: var(--color-foreground);
}
.home-covers .hero-recruit-note,
.home-covers .hero-recruit-note a { color: color-mix(in srgb, var(--color-foreground) 82%, transparent); }

@media (max-width: 780px) {
  .home-covers .hero {
    align-items: flex-end;
    height: 100%;
    min-height: 0;
    padding: 28vh 20px 1.25rem;
  }
  .home-covers .hero-copy { max-width: none; }
  .hero-media img { object-position: center 40%; }
  .home-covers .hero:after {
    background: linear-gradient(180deg, rgb(15 15 35 / .12) 0%, rgb(15 15 35 / .05) 28%, rgb(15 15 35 / .72) 58%, rgb(15 15 35 / .92) 100%);
  }
}

/* Stall prints in the shop use the site tokens. The stall cover keeps its poster. */
.stall-products{
  margin:0 0 clamp(1.35rem, 2.5vw, 2rem);
  padding:0;
  border:0;
  background:transparent;
  color:var(--color-foreground);
}
.stall-products-heading{align-items:end;margin-bottom:1rem}
.stall-products-heading h3{
  font-size:clamp(1.35rem, 2vw, 1.75rem);
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.02em;
  overflow-wrap:break-word;
  text-wrap:balance;
}
.stall-products-heading p{
  max-width:40rem;
  margin:.4rem 0 0;
  color:var(--color-muted-foreground);
  font-size:var(--text-sm);
  line-height:var(--leading-body);
}
.stall-products-heading a{
  color:var(--color-foreground);
  font-size:var(--text-sm);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid color-mix(in srgb, var(--color-foreground) 40%, transparent);
}
.stall-products-heading a:hover{color:var(--color-foreground);border-bottom-color:var(--color-secondary)}
.stall-product-grid{grid-template-columns:repeat(4, minmax(0, 1fr));gap:clamp(.7rem, 1.4vw, 1rem)}
.stall-product-grid li{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:var(--color-card);
  border:1px solid color-mix(in srgb, var(--color-border) 42%, transparent);
  transition:border-color .2s ease;
}
.stall-product-grid li:hover{border-color:color-mix(in srgb, var(--color-secondary) 62%, var(--color-border))}
.stall-product-grid img{
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:contain;
  background:color-mix(in srgb, var(--color-background) 78%, var(--color-card));
}
.stall-product-grid h4{
  margin:0;
  padding:.7rem .75rem .8rem;
  font-size:.95rem;
  font-weight:600;
  line-height:1.35;
  overflow-wrap:break-word;
}
@media (max-width: 1100px){
  .stall-product-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}
}
@media (max-width: 800px){
  .stall-product-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
