.cindy-intro {
  position: absolute;
  inset: 0;
  overflow: clip;
  isolation: isolate;
  touch-action: manipulation;
  background: transparent;
  color: var(--ink, #f2f2ef);
}
.cindy-intro[hidden], .cindy-intro [hidden] { display: none !important; }
.cindy-intro__strip,
.cindy-intro__frame,
.cindy-intro__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cindy-intro__strip { overflow: visible; user-select: none; pointer-events: none; }
/* Keep the reel's seams outside the visible edges while the opening still holds. */
.intro-first-paint, .cindy-intro__strip { inset: -1%; width: 102%; height: 102%; }
.cindy-intro[data-phase="cover"] .cindy-intro__strip > .cindy-intro__frame { visibility: hidden; }
.cindy-intro:is([data-phase="reel"], [data-phase="reveal"]) .cindy-intro__strip { will-change: transform; }
.cindy-intro__frame {
  display: block;
  bottom: auto;
  top: calc(var(--position, 0) * -100%);
  height: calc(100% + 1px);
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  filter: grayscale(1);
  color: transparent;
  pointer-events: none;
  user-select: none;
}
.cindy-intro__cover, .intro-signature-plane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.intro-signature {
  position: absolute; top: 47%; left: 50%; transform: translate(-50%,-50%);
  font: 400 clamp(30px,4.8vw,96px)/1.2 var(--brand-type);
  white-space: nowrap; color: white; text-shadow: 0 1px 5px #0004;
}
.intro-first-paint {
  position: absolute;
  filter: grayscale(1);
  pointer-events: none;
}
.intro-first-paint, .cindy-intro__frame:first-child {
  object-fit: cover;
  object-position: 50% 40%;
}
/* Keep the chess players together in the narrow composition. */
@media (max-aspect-ratio: 3/4) {
  .cindy-intro__cover { background: #101010; }
  .cindy-intro__cover::before {
    content: ""; position: absolute; inset: -8%;
    background: center / cover url("../images/h02.jpg");
    filter: grayscale(1) blur(28px) brightness(.48);
  }
  .intro-signature { top: 50%; }
  .cindy-intro__cover .cindy-intro__frame, .cindy-intro__cover .intro-first-paint {
    inset: 50% auto auto 50%; width: 205%; height: auto;
    transform: translate(-52%, -50%);
    -webkit-mask-image: linear-gradient(transparent, black 12%, black 86%, transparent);
    mask-image: linear-gradient(transparent, black 12%, black 86%, transparent);
  }
}
.cindy-intro__film {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #090909;
  pointer-events: none;
}

.cindy-intro__blink {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: white;
  pointer-events: none;
}
.cindy-intro__cue, .cindy-intro__gate {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72em;
  min-height: 48px;
  margin: 0;
  padding: 8px 11px;
  border: 0;
  color: inherit;
  background: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cindy-intro__cue {
  bottom: max(26px, env(safe-area-inset-bottom));
  color: #f4f4f0;
  font-size: 13px;
  line-height: 1;
  letter-spacing: normal;
  text-shadow: 0 1px 5px #111, 0 0 15px #222;
  transition: opacity .14s linear;
}
.cindy-intro__cue svg, .cindy-intro__gate svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cindy-intro__cue span:last-child { display: none; }
.cindy-intro:is([data-phase="reel"], [data-phase="reveal"]) .cindy-intro__cue {
  opacity: 0;
  pointer-events: none;
}
.cindy-intro__gate {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: normal;
}
.cindy-intro__gate .label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .34em;
  text-decoration-color: color-mix(in srgb, currentColor 46%, transparent);
}
.cindy-intro__gate svg { width: 17px; height: 17px; flex-basis: 17px; transition: transform .24s ease; }
.cindy-intro__gate:hover svg, .cindy-intro__gate:focus-visible svg { transform: translateX(3px); }
.cindy-intro__cue:focus-visible,.cindy-intro__gate:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
@media (pointer: coarse) {
  .cindy-intro__cue { bottom: max(22px,env(safe-area-inset-bottom)); }
  .cindy-intro__cue span:nth-last-child(2) { display: none; }
  .cindy-intro__cue span:last-child { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .cindy-intro__cue, .cindy-intro__gate svg, .cindy-intro__film { transition: none; }
}

/* Extend the opening button over the photograph while keeping its label in place. */
.cindy-intro[data-phase="cover"] .cindy-intro__cue {
  inset: 0;
  width: 100%;
  transform: none;
  align-items: flex-end;
  padding-bottom: calc(max(26px, env(safe-area-inset-bottom)) + 16px);
}
@media (pointer: coarse) {
  .cindy-intro[data-phase="cover"] .cindy-intro__cue {
    padding-bottom: calc(max(22px, env(safe-area-inset-bottom)) + 16px);
  }
}
.cindy-intro__skip-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 700px) and (max-aspect-ratio: 3/4) {
  .cindy-intro__cover::before { background-image: url("./phone/h02.webp"); }
}
