:root {
  --paper: #f3f0ea;        /* the warm paper of the page */
  --ink: #161513;          /* the studio name and the text */
  --muted: #8b857a;        /* small print */
  --line: rgba(22, 21, 19, .12); /* the 1 px edge of every photo */
  --accent: #b5532f;       /* the single accent: the place under the newest photo, the link under the pointer */
}

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

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

/* a whisper of grain on the paper */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .47  0 0 0 0 .42  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 5;
}

.top, .bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 clamp(14px, 3.4vw, 40px);
  font-size: clamp(10.5px, min(1.2vw, 1.8vh), 12.5px);
  color: var(--muted);
  z-index: 4;
  pointer-events: none;
}

.top { top: clamp(12px, 3.4vh, 32px); }
.bottom { bottom: clamp(12px, 3.4vh, 32px); }

.brand {
  color: var(--ink);
  font-weight: 640;
  font-variation-settings: "wdth" 110;
  letter-spacing: -.01em;
}
.brand span { color: var(--muted); font-weight: 480; }

.series { text-align: right; }

.links { display: flex; gap: clamp(12px, 2vw, 22px); pointer-events: auto; }

.links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 520;
  display: inline-block;
  transition: color .3s ease, font-variation-settings .45s cubic-bezier(.3, 1.6, .5, 1);
  font-variation-settings: "wdth" 100;
}

@media (hover: hover) {
  .links a:hover { color: var(--accent); font-variation-settings: "wdth" 125; }
}

.center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: clamp(6px, 1.4vh, 14px);
  pointer-events: none;
  z-index: 1;
}

.name {
  font-size: clamp(54px, min(15vw, 21vh), 210px);
  line-height: .86;
  font-weight: 660;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 118;
  color: var(--ink);
}

.line {
  font-size: clamp(11px, min(1.4vw, 2vh), 14px);
  color: var(--muted);
  letter-spacing: .01em;
}

.trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* one photograph of the trail: the wrapper moves (GSAP), the image inside only fills it */
.shot {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgba(30, 24, 14, .08),
    0 10px 22px -10px rgba(30, 24, 14, .32),
    0 26px 50px -24px rgba(30, 24, 14, .28);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the soft light that crosses a photo when it lands */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 260% 100%;
  background-position: var(--sheen, 120%) 0;
  pointer-events: none;
}

.caption {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;   /* above the whole trail, whatever the photos' own order */
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  font-size: clamp(10.5px, min(1.15vw, 1.8vh), 12px);
  font-weight: 560;
  color: var(--accent);
  background: rgba(243, 240, 234, .92);
  border: 1px solid rgba(22, 21, 19, .08);
  border-radius: 999px;
  padding: 3.5px 9px;
  overflow: hidden;
}

.caption span { display: block; }

.hint { transition: opacity .6s ease; }

@media (max-width: 560px) {
  .series { display: none; }
}
