/* The trailer shows through the letter faces; the highlight lives on their contours. */
.opening-signature {
  position: absolute;
  z-index: 1;
  top: 65%;
  left: var(--pad);
  width: max-content;
  max-width: calc(100% - 2 * var(--pad));
  transform: translateY(-42%);
  pointer-events: none;
  isolation: isolate;
}

.opening-signature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -73% -40% -70% calc(-1 * var(--pad));
  background: radial-gradient(ellipse 78% 53% at 27% 52%, #080e0b59 0%, #080e0b30 42%, transparent 85%);
  opacity: var(--title-alpha, 1);
}

#opening-title {
  position: relative;
  width: clamp(155px, 15.8vw, 230px);
  margin: 0;
  line-height: 0;
  pointer-events: auto;
  touch-action: auto;
  -webkit-tap-highlight-color: transparent;
}

#opening-title::before { content: ""; position: absolute; inset: -10px -8px; }

.title-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  opacity: var(--title-alpha, 1);
  pointer-events: none;
}

#title-glyphs polygon {
  transform: translateX(calc(var(--title-spread, 0px) * var(--letter, 0)));
}

.title-response { opacity: var(--title-touch, 0); }

.signature-caption {
  margin: clamp(5px, .8svh, 8px) 0 0;
  color: #bfcac2;
  font: 420 clamp(10.5px, .85vw, 12px)/1.45 Geist, Arial, sans-serif;
  letter-spacing: .05em;
  opacity: var(--opening-label, 1);
}

@media (max-width: 680px) {
  #opening-title { width: clamp(132px, 34.5vw, 165px); }
  .signature-caption { margin-top: 6px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .opening-signature { top: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  #title-glyphs polygon { transform: none; }
  .title-response { display: none; }
}

@media (forced-colors: active) {
  .title-face { fill: CanvasText; stroke: none; }
  .title-response { display: none; }
  .signature-caption { color: CanvasText; }
  .opening-signature { background: Canvas; }
}
