*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0e0e0d;
  --fg: #f4f1ea;
  --muted: #77746d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

h3 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.3;
}

.spotlight {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

/* ─────────── Chrome ─────────── */

.spotlight-nav,
.spotlight-footer {
  position: absolute;
  left: 0;
  right: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  z-index: 3;
  pointer-events: none;
}

.spotlight-nav {
  top: 0;
}

.spotlight-nav p {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1rem;
}

.spotlight-footer {
  bottom: 0;
  align-items: flex-end;
}

.spotlight-footer p {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hint {
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.6s var(--ease);
}

.hint.is-hidden {
  opacity: 0;
}

/* ─────────── Marquee strip ─────────── */

.spotlight-marquee {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  display: flex;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.spotlight-marquee-track {
  display: flex;
  flex-shrink: 0;
  will-change: transform;
}

.item {
  flex-shrink: 0;
  width: clamp(12rem, 19vw, 19rem);
  padding: 0 0.45rem;
}

.item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: #1c1c1a;
  transform: scale(var(--img-scale, 1));
  transition: filter 0.6s var(--ease);
}

.item figcaption {
  margin-top: 0.45rem;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ─────────── Content ─────────── */

.spotlight-content {
  position: relative;
  width: min(30rem, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 9rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 2;
}

.spotlight-content h1,
.spotlight-content h3 {
  text-align: center;
}

.spotlight-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spotlight-copy p:first-child {
  text-align: right;
}

.line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}

@media (max-width: 760px) {
  .spotlight-copy {
    grid-template-columns: 1fr;
  }

  .spotlight-copy p:first-child {
    text-align: left;
  }

  .spotlight-footer p:not(.hint) {
    display: none;
  }

  .spotlight-footer {
    justify-content: center;
    text-align: center;
  }
}
