:root {
  --page-inset-y: clamp(24px, 3.5vw, 56px);
  --page-inset-x: clamp(24px, 3.5vw, 56px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #30332b;
  background: #f6f5f0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
html { scrollbar-gutter: stable; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  padding: var(--page-inset-y) var(--page-inset-x);
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 48px;
}
.name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .85;
}
.name::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  background: #ffbe26;
  vertical-align: baseline;
}
.masthead nav { display: flex; gap: clamp(24px, 3vw, 40px); }
.masthead nav a {
  position: relative;
  padding: 12px 0;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -.04em;
  line-height: 1.2;
}
.masthead nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}
.masthead nav a:hover::after,
.masthead nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
main { flex: 1; display: grid; place-items: center; padding: 64px 0 40px; }
.work { width: min(72vw, 880px, calc(65svh * 4 / 3)); }
.stage { aspect-ratio: 4 / 3; position: relative; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 450ms cubic-bezier(.2, .6, .3, 1);
}
.slide.active { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 1px solid #777d65; outline-offset: 7px; }
.pause {
  position: fixed;
  left: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border: 1px solid currentColor;
  background: #f6f5f0;
  color: inherit;
  font: inherit;
  font-size: 12px;
  transform: translateY(100px);
}
.pause:focus { transform: none; }
[hidden] { display: none !important; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  :root { --page-inset-y: 28px; --page-inset-x: 24px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .masthead nav { margin-left: 0; }
  .name { font-size: 34px; }
  .masthead nav { gap: 24px; }
  .masthead nav a { font-size: 14px; padding: 8px 0; }
  main { padding: 52px 0; }
  .work { width: 100%; }
  .stage { aspect-ratio: auto; height: min(58svh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.collection-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  padding: 0 12px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .85;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
@media (max-width: 600px) {
  .collection-title { font-size: 34px; line-height: .95; }
  .collection-title span { display: block; }
}

/* Poster stays visible until iOS confirms that frames are playing. */
.slide > img, .slide > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide > video { opacity: 0; }
.slide.playing > video { opacity: 1; }
.slide.playing > img { opacity: 0; }
