/* The opening layer. An inline check in the head marks the page (html.leaf-opening) before the first paint, so the
   dark cover is up at once; the script then takes over (html.leaf-opening-active). If the script never arrives, the
   cover removes itself, so the site can always be reached. */
html.leaf-opening-active { overflow: hidden; }
.leaf-entrance[hidden] { display: none !important; }
html.leaf-opening .leaf-entrance[hidden] { display: block !important; }
html.leaf-opening:not(.leaf-opening-active) .leaf-entrance { animation: leaf-entrance-failsafe 1ms 3s forwards; }
@keyframes leaf-entrance-failsafe { to { visibility: hidden; } }
.leaf-entrance { position: fixed; inset: 0; z-index: 100000; isolation: isolate; display: block; overflow: hidden; background: transparent; opacity: 1; touch-action: none; }
.leaf-entrance.is-exiting { opacity: 0; pointer-events: none; transition: opacity 430ms cubic-bezier(0.25, 0.7, 0.3, 1); }
.leaf-entrance__picture { position: absolute; inset: 0; background: #030103; pointer-events: none; --gate-aperture: 0px; --gate-feather: 1px; }
/* the banner shows through a soft-edged circle that grows from the gate, at the centre of the frame */
.leaf-entrance__picture.is-opening {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--gate-aperture), #000 calc(var(--gate-aperture) + var(--gate-feather)));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--gate-aperture), #000 calc(var(--gate-aperture) + var(--gate-feather)));
}
.leaf-entrance__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #030103; opacity: 0; pointer-events: none; transition: opacity 130ms ease; }
.leaf-entrance.has-picture .leaf-entrance__film { opacity: 1; }
/* tall screens get the portrait film whole, so the logo and the gate stay in frame */
@media (max-aspect-ratio: 4 / 5) { .leaf-entrance__film { object-fit: contain; } }
.leaf-entrance__skip {
  position: absolute; inset-inline-end: max(18px, env(safe-area-inset-right), env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0 18px; border-radius: 999px;
  background: rgb(40 24 39 / 0.85); border: 1px solid rgb(247 221 222 / 0.44); color: #fff7ee;
  font: 600 0.84rem/1.2 var(--font); cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, transform 190ms var(--ease-out);
}
.leaf-entrance__skip:focus-visible { outline: 2px solid #f2acd7; outline-offset: 4px; }
.leaf-entrance__skip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .leaf-entrance__skip:hover { background: #573544; border-color: #f2acd7; } }
/* the headline's own entrance waits for the reveal instead of playing unseen under the cover */
html.leaf-opening:not(.leaf-opening-reveal) .hero__line > span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .leaf-entrance.is-exiting, .leaf-entrance__film, .leaf-entrance__skip { transition: none; } }
