@import url("./typography.css");

.brand-intro[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #030409;
  color: #ecd499;
  box-shadow: none;
  overscroll-behavior: contain;
}
.brand-intro::backdrop { background: transparent; backdrop-filter: none; }
.brand-intro:focus { outline: none; }
html:has(.brand-intro[open]) { overflow: hidden; }
.brand-intro__mark {
  display: grid;
  justify-items: center;
  width: min(365px, 74vw, 58svh);
}
.brand-intro__mark img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: lighten;
}
.brand-intro__line {
  width: 34%;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #39342b;
}
.brand-intro__line::after { content: ""; display: block; height: 100%; background: #e7cc8f; transform-origin: left; }
.brand-intro__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #d6c9ab;
  font: 500 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.brand-intro[open] .brand-intro__skip:focus-visible { outline: 2px solid #e7cc8f; outline-offset: -2px; box-shadow: none; }
/* With reduced motion, only an explicit replay receives this attribute.
   These three rules must win over the pages' universal animation:none!important. */
.brand-intro[data-animated] { animation: brand-intro-dismiss 380ms ease-in 1900ms both !important; }
.brand-intro[data-animated] .brand-intro__mark img { animation: brand-intro-appear 750ms ease-out both !important; }
.brand-intro[data-animated] .brand-intro__line::after { animation: brand-intro-line 1350ms cubic-bezier(.32,.02,.2,1) 280ms both !important; }
@keyframes brand-intro-appear {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes brand-intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes brand-intro-dismiss { from { opacity: 1; } to { opacity: 0; } }
@media print { .brand-intro[open] { display: none; } }
