.home-opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff9ec;
  clip-path: inset(0 round 0);
}
.opening-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  forced-color-adjust: none;
}
.opening-surface { fill: var(--intimate-fill); }
.opening-word-edge { transform: scaleX(0); transform-origin: 0 0; }
.home-opening--leaving .opening-word-edge {
  animation: opening-sweep 290ms cubic-bezier(.35,0,.25,1) 340ms both;
}
.opening-lockup {
  display: block;
  width: clamp(16rem, 35vw, 25rem);
  max-width: calc(100% - 3rem);
  height: auto;
}
.opening-symbol { animation: opening-seat 950ms cubic-bezier(.38,.06,.27,1) 720ms both; }
.opening-symbol > g[mask] { animation: opening-color 290ms ease-out 680ms both; }
.opening-symbol .relay-face { fill: currentColor; }
.opening-symbol .relay-middle { fill: #23221f; animation: opening-spread 1000ms cubic-bezier(.38,.06,.27,1) 690ms backwards; }
.opening-symbol .relay-rear { fill: #d9c8ae; animation: opening-spread 1160ms cubic-bezier(.38,.06,.27,1) 730ms backwards; }
.opening-trace {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: opening-draw 580ms cubic-bezier(.45,0,.2,1) 60ms both, opening-trace-out 240ms ease-out 800ms forwards;
}
.opening-trace--eye { stroke-width: 3.5; animation-delay: 230ms, 840ms; }
.opening-lockup [data-letter] {
  fill: currentColor;
  animation: opening-letter 330ms cubic-bezier(.2,.7,.25,1) 1340ms both;
}
.opening-lockup [data-letter]:nth-child(2) { animation-delay: 1380ms; }
.opening-lockup [data-letter]:nth-child(3) { animation-delay: 1420ms; }
.opening-lockup [data-letter]:nth-child(4) { animation-delay: 1460ms; }
.opening-lockup [data-letter]:nth-child(5) { animation-delay: 1500ms; }
.opening-lockup [data-letter]:nth-child(6) { animation-delay: 1540ms; }

.home-opening--leaving {
  clip-path: var(--opening-crop, inset(42% 46% round .25em));
  opacity: 0;
  /* The field stays opaque until the entire word has been uncovered. */
  transition: clip-path 700ms cubic-bezier(.75,0,.2,1), opacity 60ms ease-out 640ms;
  pointer-events: none;
}
.home-opening--leaving .opening-lockup {
  transform: scale(.82);
  opacity: 0;
  transition: transform 430ms ease-out, opacity 330ms ease-out;
}

@keyframes opening-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes opening-color { from { opacity: 0; } to { opacity: 1; } }
@keyframes opening-trace-out { to { opacity: 0; } }
@keyframes opening-seat { from { transform: translateX(292px); } to { transform: translateX(0); } }
@keyframes opening-spread { from { transform: translate(0); } }
@keyframes opening-letter { from { opacity: 0; translate: -5px 2px; } to { opacity: 1; translate: none; } }
@keyframes opening-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (forced-colors: active) {
  .opening-lockup { color: CanvasText; forced-color-adjust: none; }
  .opening-symbol .relay-middle { fill: Canvas; }
  .opening-symbol .relay-rear { fill: CanvasText; }
}
@media (prefers-reduced-motion: reduce), print {
  .home-opening { display: none; }
}
