/* Mira / ENKA: one finite, dark-to-light architectural brand entrance. */
.brand-intro,
.intro-skip { display: none; }

html.intro-enabled body[data-app="public"] .brand-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #050d1c;
  color: #fff;
  pointer-events: auto;
  animation: enka-cinema-stage 3000ms linear both;
}
.brand-intro .intro-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  opacity: .12;
  transform: scale(1.06);
  animation: enka-cinema-scene 3000ms cubic-bezier(.16,.65,.2,1) both;
}
.brand-intro .intro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,rgba(4,12,28,.95),rgba(10,27,52,.72) 50%,rgba(4,12,28,.88));
  opacity: 1;
  animation: enka-cinema-shade 3000ms cubic-bezier(.2,.65,.25,1) both;
}
.brand-intro .intro-light {
  position: absolute;
  inset: -25%;
  background: linear-gradient(112deg,transparent 28%,rgba(174,211,238,.035) 38%,rgba(210,233,248,.28) 48%,rgba(124,190,221,.1) 57%,transparent 68%);
  opacity: 0;
  transform: translateX(-60%);
  animation: enka-cinema-light 2400ms cubic-bezier(.2,.6,.25,1) 180ms both;
  pointer-events: none;
}
.brand-intro .intro-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 48px);
  text-align: center;
  color: #fff;
}
.brand-intro .intro-kicker {
  font: 500 11px/1.6 'DM Sans',Arial,sans-serif;
  letter-spacing: .2em;
  color: #d2e2ee;
  margin-bottom: 28px;
  opacity: 0;
  animation: enka-cinema-kicker 700ms cubic-bezier(.2,.7,.2,1) 650ms both;
}
.brand-intro .intro-name {
  display: block;
  font: 500 clamp(76px,12.5vw,160px)/.92 'Manrope',Arial,sans-serif;
  letter-spacing: .025em;
  margin-right: -.025em;
  color: #fff;
  text-shadow: 0 3px 35px rgba(4,13,27,.22);
  opacity: 0;
  animation: enka-cinema-name 900ms cubic-bezier(.16,.75,.2,1) 700ms both;
}
.brand-intro .intro-business {
  display: block;
  font: 500 clamp(14px,1.7vw,22px)/1.5 'Manrope',Arial,sans-serif;
  letter-spacing: .35em;
  padding-left: .35em;
  margin-top: 22px;
  color: #f4f8fb;
  opacity: 0;
  animation: enka-cinema-business 750ms cubic-bezier(.2,.7,.2,1) 950ms both;
}
.brand-intro .intro-brand-rule {
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 30px;
  background: #96cadc;
  opacity: 0;
  transform: scaleX(.25);
  animation: enka-cinema-rule 700ms cubic-bezier(.2,.7,.2,1) 1100ms both;
}
.brand-intro .intro-footer {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: max(32px,env(safe-area-inset-bottom));
  text-align: center;
  font: 500 11px/1.6 'DM Sans',Arial,sans-serif;
  letter-spacing: .24em;
  color: #cfdfeb;
  opacity: 0;
  animation: enka-cinema-kicker 600ms ease-out 1250ms both;
}
html.intro-enabled body[data-app="public"] .intro-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: fixed;
  z-index: 9002;
  right: max(24px,env(safe-area-inset-right));
  top: max(24px,env(safe-area-inset-top));
  min-width: 114px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(224,237,246,.32);
  border-radius: 4px;
  background: rgba(10,24,45,.62);
  color: #fff;
  font: 500 12px/1.5 'DM Sans',Arial,sans-serif;
  letter-spacing: .02em;
  backdrop-filter: none;
  pointer-events: auto;
  animation: enka-cinema-stage 3000ms linear both;
}
html.intro-enabled body[data-app="public"] .intro-skip:hover { background: rgba(32,54,82,.9); }
html.intro-enabled body[data-app="public"] .intro-skip:focus-visible { outline: 3px solid #a7dfef; outline-offset: 4px; }

@keyframes enka-cinema-stage {
  0%,82% { opacity: 1; visibility: visible; pointer-events: auto; }
  99% { opacity: 0; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes enka-cinema-scene {
  0%,10% { opacity: .12; transform: scale(1.06); }
  46% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes enka-cinema-shade {
  0%,12% { opacity: 1; }
  45%,100% { opacity: .5; }
}
@keyframes enka-cinema-light {
  0% { opacity: 0; transform: translateX(-60%); }
  35% { opacity: .82; }
  80% { opacity: .25; }
  100% { opacity: 0; transform: translateX(55%); }
}
@keyframes enka-cinema-kicker {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enka-cinema-name {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes enka-cinema-business {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enka-cinema-rule {
  from { opacity: 0; transform: scaleX(.25); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (max-width:760px) {
  html.intro-enabled body[data-app="public"] .brand-intro,
  html.intro-enabled body[data-app="public"] .intro-skip { animation-duration: 2400ms; }
  .brand-intro .intro-scene { animation-duration: 2400ms; object-position: 55% center; }
  .brand-intro .intro-shade { animation-duration: 2400ms; }
  .brand-intro .intro-light { animation-duration: 1900ms; animation-delay: 100ms; }
  .brand-intro .intro-brand { width: calc(100% - 40px); }
  .brand-intro .intro-kicker { font-size: 10px; letter-spacing: .12em; margin-bottom: 24px; animation-delay: 420ms; animation-duration: 520ms; }
  .brand-intro .intro-name { font-size: clamp(64px,21vw,110px); animation-delay: 480ms; animation-duration: 650ms; }
  .brand-intro .intro-business { font-size: clamp(12px,3.5vw,18px); letter-spacing: .27em; padding-left: .27em; margin-top: 19px; animation-delay: 680ms; animation-duration: 570ms; }
  .brand-intro .intro-brand-rule { margin-top: 26px; width: 42px; animation-delay: 790ms; animation-duration: 530ms; }
  .brand-intro .intro-footer { font-size: 10px; letter-spacing: .16em; bottom: max(25px,env(safe-area-inset-bottom)); animation-delay: 900ms; animation-duration: 500ms; }
  html.intro-enabled body[data-app="public"] .intro-skip { top: max(15px,env(safe-area-inset-top)); right: max(15px,env(safe-area-inset-right)); min-width: 108px; padding-inline: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  html.intro-enabled body[data-app="public"] .brand-intro,
  html.intro-enabled body[data-app="public"] .intro-skip { display: none !important; animation: none !important; pointer-events: none !important; }
  .brand-intro *, .brand-intro *::before, .brand-intro *::after { animation: none !important; transform: none !important; }
}
