:root { --accent: #8f7af6; --page-gutter: 8px; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
p, h1, h2 { margin: 0; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wordmark { display: block; position: relative; height: 81px; color: #000; text-decoration: none; font-size: 42px; line-height: 40.477px; letter-spacing: -.42px; }
.wordmark span { position: absolute; top: 0; }
.wordmark__a, .wordmark__sp { left: 0; }
.wordmark__li { left: 67px; }
.wordmark__ce, .wordmark__o1 { left: 30%; }
.wordmark .wordmark__sp, .wordmark .wordmark__o1, .wordmark .wordmark__o2, .wordmark .wordmark__n { top: 40px; }
.wordmark__o2 { right: 47px; }
.wordmark__n { right: 0; }
.hero { position: relative; isolation: isolate; z-index: 1; overflow: visible; padding: 248px var(--page-gutter) 60px; }
.hero .wordmark { z-index: 10; }
.hero-copy { container-type: inline-size; position: relative; z-index: 10; margin-top: 20px; width: min(400px, 100%); pointer-events: none; }
.hero-copy h1 { font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
.about-link { display: inline-block; margin-top: 20px; color: var(--accent); font-size: 24px; line-height: 1.26; pointer-events: auto; text-underline-offset: 2px; }
.collage-item { position: absolute; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.collage-item:focus { outline: none; }
.collage-item.is-dragging { cursor: grabbing; }
.collage-item img, .collage-item video { display: block; pointer-events: none; }
.collage-item--portrait { left: 8px; top: 6px; width: 237px; height: 237px; z-index: 2; }
.collage-item--portrait video { width: 100%; height: 100%; object-fit: cover; }
.collage-item--times, .collage-item--poster, .collage-item--experiment, .collage-item--trophy { display: none; }
.works { padding: 0 var(--page-gutter); }
.works-title { position: relative; height: 49px; font-size: 42px; line-height: 40.477px; font-weight: 400; letter-spacing: -.42px; }
.works-title span { position: absolute; }
.works-title span:nth-child(2) { left: 18%; letter-spacing: .84px; }
.works-title span:nth-child(3) { left: 51%; }
.works-title span:nth-child(4) { right: 0; }
.project + .project { margin-top: 80px; }
.project-heading { display: grid; grid-template-columns: 51% 49%; margin-bottom: 18px; font-size: 24px; line-height: 1.2; letter-spacing: -.48px; }
.project-heading h2 { font: inherit; }
.project-media { display: flex; flex-direction: column; gap: 8px; }
.project-media > img, .project-media > video { display: block; width: 100%; height: auto; border-radius: 0; }
#about {
  scroll-margin-top: 0;
  min-height: 100svh;
  padding-top: 8px;
}
@media (min-width: 700px) {
  .hero { height: 840px; padding: 6px 12px 0; }
  .hero .wordmark { margin: 0 -4px 0 0; }
  .wordmark__ce { left: 33.5%; }
  .wordmark__o1 { left: 46%; }
  .wordmark__o2 { right: 24px; }
  .hero-copy { position: absolute; top: 107px; left: 12px; width: min(330px, 48%); margin: 0; }
  .collage-item--portrait { left: 12px; top: max(322px, var(--portrait-start, 322px)); width: 345px; height: 345px; }
  .collage-item--times { display: block; left: 56%; top: 112px; width: 380px; height: 468px; z-index: 1; }
  .collage-item--times video { width: 100%; height: 100%; object-fit: cover; }
  .collage-item--experiment { display: block; left: 51%; top: 517px; width: 351.997px; height: 282.654px; z-index: 3; }
  /* GIF frames occupy x=159..350, y=5..485 inside a 500px canvas.
     Match the drag box to the artwork, leaving the animation unchanged. */
  .collage-item--trophy { display: block; left: calc(16.667% + 153.684px); top: 248px; width: 191px; height: 480px; z-index: 4; }
  .collage-item--trophy img { position: absolute; left: -159px; top: -5px; width: 500px; height: 500px; max-width: none; object-fit: contain; }
  .works-title span:nth-child(2) { left: 29%; }
  .works-title span:nth-child(3), .project-heading p { left: auto; }
  .works-title span:nth-child(3) { left: 67.4%; }
  .works-title span:nth-child(4) { left: 84.6%; right: auto; }
  .project-heading { grid-template-columns: 67.4% 32.6%; }
}
@media (min-width: 1100px) {
  .hero { padding: 4px 11px 0; }
  .wordmark__ce { left: 46.9%; }
  .wordmark__o1 { left: 55.5%; }
  .wordmark__o2 { right: 49px; }
  .hero-copy { left: 11px; width: min(330px, calc(25.714vw - 27px)); }
  .about-link { margin-top: 22px; }
  .collage-item--portrait { top: 108px; left: 67.643%; width: min(24.643vw, 420px); height: auto; aspect-ratio: 1; }
  .collage-item--times { top: 108px; left: 25.714%; width: min(27.143vw, 460px); height: auto; aspect-ratio: 380 / 468; }
  .collage-item--times video { position: absolute; inset: 0; }
  .collage-item--poster { display: block; top: 344px; left: 11px; width: 309px; height: 369px; z-index: 1; }
  .collage-item--poster img, .collage-item--poster video { width: 100%; height: 100%; object-fit: cover; }
  .collage-item--experiment { left: 40.5714286%; top: 448px; }
  .collage-item--trophy { left: calc(75% + 151.014px); top: 186px; }
  .works-title { height: 42px; }
  .works-title span:nth-child(2) { left: 16.5%; }
  .works-title span:nth-child(3) { left: 67.1%; }
  .works-title span:nth-child(4) { left: 75.4%; }
  .project-heading { grid-template-columns: 67.1% 32.9%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.homepage .contact-links {
  visibility: hidden;
  opacity: 0;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}
.homepage .contact-links.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .homepage .contact-links { transition: none; }
}

/* Keep the six individual posters in the original three paired rows. */
.project-media.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.text-nowrap { white-space: nowrap; }

@media (min-width: 1100px) {
  .hero-copy h1 > .text-nowrap { white-space: normal; }
}
@media (max-width: 349px) {
  .hero-copy h1 > .text-nowrap { white-space: normal; }
}
