/* Opening scene: a giant faint wordmark, the 3D camera, the studio's line, and the prints
   that slide out when the camera is clicked. Without WebGL it is a quiet typographic cover. */
.intro {
  position: relative;
  height: calc(100svh - var(--masthead-h));
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(138, 90, 36, 0.10), transparent 70%),
    var(--paper);
  isolation: isolate;
}

.intro__wordmark {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  margin: 0;
  padding-left: 2vw;
  transform: translateY(-54%);
  font-family: var(--font-display);
  font-size: 23vw;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

/* the 3D camera fills the scene; it fades in once the model has drawn its first frame */
.intro__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.intro__stage.is-ready { opacity: 1; }
.intro__canvas { display: block; width: 100%; height: 100%; cursor: pointer; }

.intro__copy {
  position: absolute;
  inset: auto 0 clamp(72px, 12vh, 128px) 0;
  z-index: 3;
  pointer-events: none;
}
.intro__title {
  max-width: 13ch;
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.75rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.intro__title em { font-style: italic; color: var(--tungsten); }

/* big words that pass while the camera turns */
.intro__act {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 13vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  visibility: hidden;
  pointer-events: none;
}
.intro__act--a { left: 5vw; top: 16%; }
.intro__act--b { right: 5vw; bottom: 14%; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.intro__act--c {
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  font-family: var(--font-text);
  font-style: normal;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro__foot {
  position: absolute;
  inset: auto 0 var(--space-5) 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.intro__cue,
.intro__shoot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.intro__cue::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: intro-cue 2.4s var(--ease-inout) infinite;
}
@keyframes intro-cue {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.intro__shoot {
  padding: 0 var(--space-4);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(246, 247, 244, 0.7);
  cursor: pointer;
}
.intro__shoot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grease);
}
.intro__shoot[hidden] { display: none; }

/* flash and the closing shade (both driven by JS) */
.intro__flash,
.intro__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}
.intro__flash { background: #fff; }
.intro__shade { z-index: 5; background: var(--ink); visibility: hidden; }

/* prints that slide out of the lens */
.intro__prints { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.print {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(120px, 15vw, 210px);
  margin: 0;
  padding: 8px 8px 26px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 23, 26, 0.12), 0 14px 32px -12px rgba(21, 23, 26, 0.35);
  pointer-events: auto;
  cursor: zoom-in;
}
.print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.print figcaption {
  position: absolute;
  left: 10px;
  bottom: 6px;
  font-family: var(--font-text);
  font-size: var(--step--2);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (max-width: 699px) {
  .intro__wordmark { font-size: 31vw; top: 40%; }
  .intro__title { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .intro__copy { bottom: 88px; }
  .intro__act--a { top: 12%; }
  .intro__act--b { bottom: 30%; }
  .print { width: 116px; padding: 6px 6px 20px; }
}

/* motion off: the scene is a still cover */
html[data-motion="off"] .intro__cue::after { animation: none; transform: none; }
