/* A small entry beside the title; the media player exists only while opened. */
.home-title-video {
  display: grid;
  grid-template-columns: max-content minmax(60px, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  margin: 25px 0 23px;
}
.hero > div:first-child { min-width: 0; }
.hero .home-title-video h1 {
  margin: 0 39px 0 0;
  font-size: clamp(32px, 5.5vw, 73px);
  font-size: clamp(32px, 11.8cqw, 73px);
}
.home-guide-play {
  position: relative;
  isolation: isolate;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #f296d1;
  border-radius: 50%;
  background: transparent;
  color: #ffe4f5;
  cursor: pointer;
}
.home-guide-play svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.home-guide-play::before {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border: 2px solid #ff54ca;
  border-radius: inherit;
  box-shadow: 0 0 10px #ff54ca8a, 0 0 21px #ff54ca4f, inset 0 0 8px #ff54ca45;
  opacity: 0;
}
.home-guide-play.is-unseen::before { animation: home-guide-pulse 2.4s ease-in-out infinite; }
.home-guide-play:hover { border-color: #ffd1ef; color: #fff5fc; }
.home-guide-play:focus-visible,
.home-guide-close:focus-visible,
.home-guide-footer a:focus-visible { outline: 3px solid #ff9be0; outline-offset: 5px; }
@keyframes home-guide-pulse { 0%, 100% { opacity: .28; } 50% { opacity: .88; } }

.home-guide-dialog {
  width: min(1120px, calc(100% - 28px));
  max-width: 1120px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  border: 1px solid #ef84c39c;
  border-radius: 18px;
  background: #1d1225;
  color: #fff1fa;
  box-shadow: 0 24px 100px #000b, 0 0 25px #ff54ca1a;
}
.home-guide-dialog::-webkit-scrollbar { display: none; }
.home-guide-dialog::backdrop { background: #080710d9; }
.home-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #ef84c330;
}
.home-guide-header > div { min-width: 0; }
.home-guide-header p {
  margin: 0 0 5px;
  color: #e8b8d6;
  font-size: 12px;
  line-height: 1.4;
}
.home-guide-header h2 { margin: 0; color: #fff1fa; font-size: 23px; line-height: 1.25; }
.home-guide-dialog .home-guide-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #ef84c35e;
  border-radius: 50%;
  background: #ffffff05;
  color: #ffe5f6;
}
.home-guide-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.home-guide-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #08050d;
}
.home-guide-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 5px 18px;
  border-top: 1px solid #ef84c330;
}
.home-guide-footer .home-guide-error { margin: 0 auto 0 0; color: #ffd4e4; font-size: 13px; line-height: 1.4; }
.home-guide-footer [hidden] { display: none; }
.home-guide-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #f3bfdf; font-size: 13px; text-underline-offset: 3px; }
.has-home-guide .hero-art .organic-hero { animation-play-state: paused; }
@media (max-width: 560px) {
  .home-title-video { margin-top: 22px; }
  .home-guide-dialog { width: calc(100% - 20px); border-radius: 14px; }
  .home-guide-header { gap: 10px; padding: 12px 14px; }
  .home-guide-header h2 { font-size: 18px; }
  .home-guide-header p { font-size: 11px; }
  .home-guide-footer { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-guide-play.is-unseen::before { animation: none; opacity: .55; }
}
@media print { .home-guide-play, .home-guide-dialog { display: none !important; } }
