@font-face {
  font-family: Gilroy;
  src: url("assets/fonts/gilroy-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Gilroy, sans-serif;
  color: #242424;
  background: #fff;
  font-synthesis: none;
  --circle-size: max(600px, min(68vw, 94svh));
  --rotation-duration: 180s;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; font-weight: 400; }
.page { min-height: 100svh; display: grid; place-content: center; }
.composition {
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  inset: 0;
  animation: orbit var(--rotation-duration) linear infinite;
  will-change: transform;
}
.orbit-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12.2%;
  height: 12.2%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(var(--angle));
}
.gallery-tile {
  position: relative;
  flex-shrink: 0;
}
.orbit-photo { position: absolute; }
.tile-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 440ms cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery-tile:hover { z-index: 2; }
  .gallery-tile:hover .tile-media {
    transform: translate3d(0, -5px, 0) scale(1.07);
    transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
  }
}
.message { position: relative; width: 296px; z-index: 1; }
h1 { margin: 0 0 18px; line-height: 0; }
.logo { display: block; width: 66px; height: auto; }
p { font-size: 16px; line-height: 1.19; margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
button:focus-visible { outline: 1px solid #242424; outline-offset: 5px; }
.mobile-strip { display: none; }
.motion-toggle {
  position: fixed;
  bottom: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  color: #777;
  background: #fff;
  cursor: pointer;
  z-index: 2;
}
.motion-toggle:hover { color: #242424; background: #f5f5f5; }
.motion-toggle svg { width: 20px; height: 20px; display: block; }
.motion-toggle .play-icon { display: none; }
.is-paused .orbit, .is-paused .film { animation-play-state: paused; }
.is-paused .pause-icon { display: none; }
.is-paused .play-icon { display: block; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(-50%); } }

@media (min-width: 761px) and (max-height: 650px) {
  :root { --circle-size: min(81vw, 725px); }
  .page { min-height: calc(var(--circle-size) + 64px); }
}

@media (max-width: 760px) {
  .page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 44px;
    padding: 56px 0 70px;
    overflow: hidden;
  }
  .composition { width: 100%; height: auto; padding: 0 32px; }
  .orbit { display: none; }
  .message { width: min(100%, 290px); }
  h1 { margin-bottom: 24px; }
  p { line-height: 1.4; margin-bottom: 20px; }
  .mobile-strip { display: block; width: 100%; overflow: hidden; }
  .film { display: flex; width: max-content; animation: drift 180s linear infinite; will-change: transform; }
  .film-group { display: flex; align-items: center; gap: 10px; padding-right: 10px; }
  .film .gallery-tile { width: 108px; height: 108px; }
  .motion-toggle { bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-media { transition: none; }
  .orbit, .film { animation: none; will-change: auto; }
  .motion-toggle { display: none; }
  .mobile-strip { overflow-x: auto; scrollbar-width: none; }
  .film-group[aria-hidden="true"] { display: none; }
}
