:root {
  --night: #000000;      /* the dark room */
  --room: #141313;       /* the faint light in the middle of the room */
  --paper: #f3efe8;      /* the title and the signature */
  --ash: #909090;        /* small texts */
  --smoke: #5e5e5e;      /* captions and crop marks */
  --line: rgba(243, 239, 232, .22);
  --serif: 'Fraunces Variable', 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans Variable', 'Instrument Sans', system-ui, sans-serif;
  --print-w: min(36vw, 46vh);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--night); }
body { overflow: hidden; color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.stage { position: relative; width: 100%; height: 100vh; overflow: hidden; background: var(--night); touch-action: none;
  cursor: default; user-select: none; -webkit-user-select: none; }

/* the room: a faint light in the middle, darker at the edges */
.room { position: absolute; inset: 0; pointer-events: none; }
.room__glow { position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, var(--room) 0%, rgba(20, 19, 19, .4) 45%, transparent 75%); }

/* the two prints, at the same place in every layer */
.print { position: absolute; width: var(--print-w); aspect-ratio: 4 / 5; }
.print--a { left: 6%; top: 15%; }
.print--b { right: 6%; bottom: 13%; }

/* crop marks and captions */
.marks { position: absolute; inset: 0; pointer-events: none; }
.marks .print { --lit: 0; }
.crop { position: absolute; width: 14px; height: 14px; opacity: calc(.35 + var(--lit) * .65); }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--smoke); }
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { left: -10px; top: -10px; }
.crop--tl::before, .crop--tl::after { left: 0; top: 0; }
.crop--tr { right: -10px; top: -10px; }
.crop--tr::before, .crop--tr::after { right: 0; top: 0; }
.crop--bl { left: -10px; bottom: -10px; }
.crop--bl::before, .crop--bl::after { left: 0; bottom: 0; }
.crop--br { right: -10px; bottom: -10px; }
.crop--br::before, .crop--br::after { right: 0; bottom: 0; }
.print__cap { position: absolute; left: 0; top: calc(100% + 14px); font-size: 11px; letter-spacing: .03em;
  color: var(--smoke); white-space: nowrap; opacity: calc(.55 + var(--lit) * .45); }
.print__cap em { font-family: var(--serif); font-style: italic; font-size: 12.5px; letter-spacing: 0;
  font-variation-settings: 'opsz' 14, 'wght' 300; }
.print--b .print__cap { left: auto; right: 0; top: auto; bottom: calc(100% + 14px); }

/* the reveal: the photos are always there, the mask is drawn by script.js around the pointer */
.reveal { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at -999px -999px, #000 0, transparent 1px);
  mask-image: radial-gradient(circle at -999px -999px, #000 0, transparent 1px); }
.reveal .print { overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.reveal img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.06) brightness(.94); }
.print--b img { object-position: 38% 50%; }
.reveal--halo { opacity: .3; filter: blur(2px); }

/* the head */
.head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 3.2vh, 28px) clamp(16px, 3.4vw, 40px); font-size: 12px; letter-spacing: .03em; color: var(--ash); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.brand__mark { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }

/* the opening */
.opening { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 0 16px; }
.kicker { font-size: clamp(10.5px, 1.6vh, 13px); letter-spacing: .03em; color: var(--ash); margin-bottom: clamp(8px, 2.4vh, 22px); }
.title { --size: min(14vw, 15.5vh); font-family: var(--serif); font-weight: 100; font-size: var(--size); line-height: .92;
  text-transform: uppercase; letter-spacing: .05em; font-variation-settings: 'opsz' 144, 'wght' 100, 'SOFT' 0, 'WONK' 0;
  display: flex; flex-direction: column; align-items: center; text-shadow: 0 0 .25em rgba(0, 0, 0, .55); }
.title__line { display: flex; align-items: flex-end; position: relative; }
.title__line--one { transform: translateX(-.42em); }
.title__line--two { transform: translateX(.3em); }
.title__word { display: inline-block; }
.title__word .char { display: inline-block; will-change: transform, filter, opacity; }

/* the signature: one stroke, drawn like a pen */
.sign { position: relative; z-index: 1; width: 1em; height: .58em; margin: 0 .09em .04em -.2em; overflow: visible; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .9)) drop-shadow(0 0 10px rgba(0, 0, 0, .5)); }
.sign path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sign__ink { stroke: var(--paper); stroke-width: 1.3; }
.sign__bleed { stroke: var(--paper); stroke-width: 3.2; opacity: .07; filter: blur(1.2px); }

.dates { margin-top: clamp(12px, 3.4vh, 30px); font-size: clamp(10.5px, 1.6vh, 13px); letter-spacing: .03em; color: var(--ash); }

/* the button */
.enter { pointer-events: auto; margin-top: clamp(10px, 2.4vh, 22px); display: inline-flex; align-items: center; gap: 10px;
  height: clamp(36px, 6vh, 46px); padding: 0 clamp(16px, 2vw, 22px); border-radius: 999px; color: var(--paper);
  text-decoration: none; font-size: clamp(12px, 1.8vh, 14px); letter-spacing: .03em; border: 1px solid var(--line);
  background: rgba(243, 239, 232, .02); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .9);
  transition: border-color .5s cubic-bezier(.39, .57, .56, 1), background-color .5s cubic-bezier(.39, .57, .56, 1); }
.enter__label .char { display: inline-block; }
.enter__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s cubic-bezier(.77, 0, .18, 1); }
.enter.is-hover { border-color: rgba(243, 239, 232, .55); background-color: rgba(243, 239, 232, .06); }
.enter.is-hover .enter__arrow { transform: translateX(3px); }
@media (hover: hover) {
  .enter:hover { border-color: rgba(243, 239, 232, .55); background-color: rgba(243, 239, 232, .06); }
  .enter:hover .enter__arrow { transform: translateX(3px); }
}
.enter:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

/* the grain, moving in steps like film */
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .6s steps(1) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
}

/* the drawn pointer of the autopilot */
.hand { position: absolute; z-index: 8; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  fill: #fff; stroke: #111; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }

@media (max-width: 560px), (max-height: 480px) {
  .print__cap { display: none; }
  .crop { width: 10px; height: 10px; }
  .head { font-size: 11px; }
}

/* tall screens: bigger prints, filling the room above and below the title */
@media (max-aspect-ratio: 1/1) {
  :root { --print-w: min(46vw, 40vh); }
  .print--a { left: 5%; top: 12%; }
  .print--b { right: 5%; bottom: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .enter__arrow { transition: none; }
}
