.sri-welcome {
  --welcome-acid: #c6ff3b;
  --welcome-ember: #ff6a2a;
  --welcome-rose: #ff4f8b;
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  height: min(760px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink, #f5f5ef);
  background: #0b0806;
  border: 0;
  border-radius: var(--radius, 8px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .78);
}

.sri-welcome:not([open]) {
  display: none;
}

.sri-welcome::backdrop {
  background: rgba(5, 2, 1, .88);
  backdrop-filter: blur(12px) saturate(.58);
}

.sri-welcome__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  min-height: 100%;
  isolation: isolate;
}

.sri-welcome__shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--welcome-acid) 0 38%, var(--welcome-ember) 38% 72%, var(--welcome-rose) 72% 100%);
  pointer-events: none;
}

.sri-welcome__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px);
  background: #0b0806;
}

.sri-welcome__copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: clamp(24px, 5vw, 64px);
  left: clamp(40px, 6vw, 88px);
  height: 1px;
  background: linear-gradient(90deg, var(--welcome-acid), var(--welcome-ember), transparent 82%);
  opacity: .72;
}

.sri-welcome__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.sri-welcome__brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.sri-welcome__brand p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.sri-welcome__brand strong {
  color: var(--ink, #f5f5ef);
  font-family: var(--font-display, "Barlow Condensed", Impact, sans-serif);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.sri-welcome__brand span {
  color: var(--welcome-acid);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sri-welcome__title {
  max-width: 10ch;
  margin: 0;
  color: var(--ink, #f5f5ef);
  font-family: var(--font-display, "Barlow Condensed", Impact, sans-serif);
  font-size: clamp(4rem, 7.1vw, 6rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-transform: uppercase;
}

.sri-welcome__title span {
  display: block;
  color: var(--welcome-ember);
}

.sri-welcome__summary {
  max-width: 53ch;
  margin: clamp(24px, 4vw, 38px) 0 0;
  color: #e2e0d8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

.sri-welcome__features {
  display: grid;
  gap: 7px;
  max-width: 56ch;
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: #c7c2b9;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .875rem;
  line-height: 1.5;
}

.sri-welcome__features li::marker {
  color: var(--welcome-acid);
}

.sri-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

.sri-welcome__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--welcome-acid);
  border-radius: 4px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 180ms cubic-bezier(.22, 1, .36, 1),
    border-color 180ms cubic-bezier(.22, 1, .36, 1),
    color 180ms cubic-bezier(.22, 1, .36, 1),
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.sri-welcome__action--primary {
  color: #050505;
  background: var(--welcome-acid);
}

.sri-welcome__action--secondary {
  color: var(--ink, #f5f5ef);
  background: transparent;
  border-color: #62564d;
}

.sri-welcome__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  min-width: 70px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink, #f5f5ef);
  background: rgba(8, 8, 6, .84);
  border: 1px solid rgba(245, 245, 239, .42);
  border-radius: 4px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), color 180ms cubic-bezier(.22, 1, .36, 1);
}

.sri-welcome__action:hover,
.sri-welcome__action:focus-visible {
  transform: translateY(-2px);
}

.sri-welcome__action--primary:hover,
.sri-welcome__action--primary:focus-visible {
  background: var(--welcome-ember);
  border-color: var(--welcome-ember);
}

.sri-welcome__action--secondary:hover,
.sri-welcome__action--secondary:focus-visible,
.sri-welcome__close:hover,
.sri-welcome__close:focus-visible {
  color: #050505;
  background: var(--ink, #f5f5ef);
  border-color: var(--ink, #f5f5ef);
}

.sri-welcome__action:active,
.sri-welcome__close:active {
  transform: scale(.98);
}

.sri-welcome__action:focus-visible,
.sri-welcome__close:focus-visible {
  outline: 3px solid var(--welcome-acid);
  outline-offset: 3px;
}

.sri-welcome__posters {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #17100c;
}

.sri-welcome__poster {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #141410;
  border: 0;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .58);
}

.sri-welcome__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) contrast(1.04);
}

.sri-welcome__poster--main {
  inset: 0;
  border: 0;
  box-shadow: none;
}

.sri-welcome__poster--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 8, 6, .76), transparent 35%),
    linear-gradient(0deg, rgba(11, 8, 6, .72), transparent 42%);
}

.sri-welcome__poster--top {
  top: 38px;
  right: 28px;
  width: 42%;
  height: 42%;
  transform: rotate(2.5deg);
  box-shadow: 8px 8px 0 var(--welcome-acid);
}

.sri-welcome__poster--bottom {
  right: 42px;
  bottom: 42px;
  width: 48%;
  height: 38%;
  transform: rotate(-2deg);
  box-shadow: -8px 8px 0 var(--welcome-ember);
}

.sri-welcome__poster-label {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 22px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  color: var(--welcome-acid);
  border-top: 1px solid currentColor;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sri-welcome[open] .sri-welcome__copy {
  animation: sri-welcome-copy-in 500ms cubic-bezier(.16, 1, .3, 1) both;
}

.sri-welcome[open] .sri-welcome__posters {
  animation: sri-welcome-poster-in 620ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes sri-welcome-copy-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sri-welcome-poster-in {
  from { opacity: 0; transform: scale(1.025); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (max-width: 820px) {
  .sri-welcome {
    width: min(680px, calc(100vw - 28px));
    height: min(900px, calc(100dvh - 28px));
    overflow-y: auto;
  }

  .sri-welcome__shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, 36dvh) auto;
  }

  .sri-welcome__posters {
    grid-row: 1;
  }

  .sri-welcome__copy {
    grid-row: 2;
    justify-content: flex-start;
    padding: 34px 28px 46px;
  }

  .sri-welcome__copy::after {
    right: 28px;
    bottom: 24px;
    left: 28px;
  }

  .sri-welcome__brand {
    margin-bottom: 18px;
  }

  .sri-welcome__title {
    max-width: 12ch;
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .sri-welcome__summary {
    margin-top: 22px;
  }

  .sri-welcome__poster--top {
    top: 18px;
    right: 22px;
    height: 52%;
  }

  .sri-welcome__poster--bottom {
    right: 34px;
    bottom: 24px;
    height: 46%;
  }
}

@media (max-width: 520px) {
  .sri-welcome {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .sri-welcome__shell {
    min-height: 100dvh;
    grid-template-rows: minmax(168px, 24dvh) auto;
  }

  .sri-welcome__copy {
    padding: 22px 18px max(36px, env(safe-area-inset-bottom));
  }

  .sri-welcome__copy::after {
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 20px;
  }

  .sri-welcome__title {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .sri-welcome__summary {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .sri-welcome__brand img {
    width: 44px;
    height: 44px;
  }

  .sri-welcome__brand {
    margin-bottom: 16px;
  }

  .sri-welcome__features {
    gap: 5px;
    margin-top: 14px;
  }

  .sri-welcome__actions {
    display: grid;
    margin-top: 24px;
  }

  .sri-welcome__action {
    width: 100%;
  }

  .sri-welcome__close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .sri-welcome__poster--top {
    right: 14px;
    width: 38%;
  }

  .sri-welcome__poster--bottom {
    right: 20px;
    width: 42%;
  }

  .sri-welcome__poster-label {
    right: 18px;
    bottom: 14px;
    left: 18px;
    font-size: .62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sri-welcome[open] .sri-welcome__copy,
  .sri-welcome[open] .sri-welcome__posters {
    animation: none;
  }

  .sri-welcome__action,
  .sri-welcome__close {
    transition-duration: .01ms;
  }
}
