/* ============================================================
   Motues — two acts
   Act one  : full-screen columns of photographs, drifting slowly.
   Act two  : the same wall, held still in a fixed order.
   ============================================================ */

.page-home {
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.site {
  position: relative;
  background: var(--bg);
}

/* --- act one: the drift ---------------------------------------- */

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--bg);
}

/* the chrome belongs to the hero only — it scrolls away with it */
.stage .topbar { position: absolute; }
.stage .vignette { position: absolute; }

.marquee {
  --gap: clamp(6px, 0.7vw, 12px);
  position: absolute;
  inset: -9% 0;
  z-index: 1;
  display: flex;
  gap: var(--gap);
  padding: 0 var(--gap);
}

.col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.col__track {
  display: flex;
  flex-direction: column;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.col__set {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  /* the trailing pad makes one set exactly half the track: a seamless 50% loop */
  padding-bottom: var(--gap);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

/* keep drifting under the cursor; only the viewer pauses it */
html.lb-open .col__track { animation-play-state: paused; }

/* --- a single frame -------------------------------------------- */

.shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 1.5);
  overflow: hidden;
  background-color: #101013;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  -webkit-tap-highlight-color: transparent;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.93) contrast(1.02) brightness(0.88);
  transform: scale(1.002);
  transition:
    opacity 1.2s var(--ease),
    transform 1.6s var(--ease-out),
    filter 0.8s var(--ease);
}

.shot.is-loaded img { opacity: 1; }

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03) brightness(1);
}

.shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(4, 4, 6, 0.62), rgba(4, 4, 6, 0));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.shot:hover::after,
.shot:focus-visible::after { opacity: 1; }

.shot__cap {
  position: absolute;
  left: clamp(10px, 1vw, 16px);
  right: clamp(10px, 1vw, 16px);
  bottom: clamp(9px, 0.9vw, 14px);
  display: flex;
  align-items: baseline;
  gap: 9px;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.shot:hover .shot__cap,
.shot:focus-visible .shot__cap {
  opacity: 1;
  transform: none;
}

.shot__num {
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

.shot__title {
  font-size: clamp(13px, 1.05vw, 17px);
  font-style: italic;
  letter-spacing: 0.01em;
}

.shot__cn {
  margin-left: auto;
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.22em;
  opacity: 0.7;
}

/* the hero is a mood, not a browser: frames there are never clickable */
.stage .shot { cursor: default; }
.stage .shot::after { display: none; }
.stage .shot:hover img { transform: scale(1.002); filter: saturate(0.93) contrast(1.02) brightness(0.88); }

/* --- scrim + editorial text ------------------------------------ */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.78) 9%,
      rgba(5, 5, 7, 0.4) 18%, rgba(5, 5, 7, 0.1) 27%, rgba(5, 5, 7, 0) 36%),
    linear-gradient(to bottom, rgba(5, 5, 7, 0.58) 0%, rgba(5, 5, 7, 0) 17%);
}

.intro {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 4.6vh, 52px);
  z-index: 45;
  pointer-events: none;
  animation: rise 1.4s var(--ease-out) 0.15s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow .sep { margin: 0 0.7em; opacity: 0.5; }

.intro__title {
  margin: 14px 0 0;
  font-size: clamp(34px, 5.1vw, 84px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(5, 5, 7, 0.55);
}

.intro__title em {
  font-style: italic;
  color: #ece2d0;
}

.hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  animation: rise 1.4s var(--ease-out) 0.5s both;
  transition: opacity 0.4s var(--ease);
}

.hint:hover { opacity: 0.72; }

.hint__line {
  width: clamp(18px, 2.2vw, 34px);
  height: 1px;
  background: rgba(242, 237, 228, 0.22);
}

.hint__arrow {
  display: inline-block;
  margin-left: 4px;
  animation: nudge 2.6s var(--ease) infinite;
}

@keyframes nudge {
  0%, 70%, 100% { transform: translateY(0); }
  80%           { transform: translateY(3px); }
}

/* --- act two: the gallery -------------------------------------- */

.archive {
  --gap: clamp(8px, 0.8vw, 14px);
  position: relative;
  z-index: 3;
  padding: clamp(64px, 10vh, 120px) var(--gap) clamp(36px, 6vh, 72px);
  background: var(--bg);
}

.archive::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gap);
  right: var(--gap);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(242, 237, 228, 0.16), transparent);
}

.archive__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(10px, 2.4vw, 40px) clamp(26px, 4vh, 52px);
  padding-bottom: clamp(14px, 2vh, 22px);
  border-bottom: 1px solid var(--line);
}

.archive__hint { text-align: right; }

.archive__cols {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}

.archive__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.archive .shot { cursor: zoom-in; }

.archive__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(48px, 8vh, 92px) clamp(10px, 2.4vw, 40px) 0;
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--line);
}

.archive__top {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.4s var(--ease);
}

.archive__top span {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
}

.archive__top:hover { color: var(--fg); }
.archive__top:hover span { transform: translateY(-3px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* the lightbox locks the page behind it */
html.lb-open body { overflow: hidden; }

/* --- responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .intro {
    bottom: clamp(78px, 12vh, 112px);
  }

  .intro__title { font-size: clamp(32px, 7.4vw, 60px); }

  .hint {
    left: var(--gutter);
    right: auto;
    bottom: clamp(22px, 4vh, 34px);
  }

  .archive__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .archive__hint { display: none; }

  .hint .eyebrow { letter-spacing: 0.26em; }
}
