/* The opening film is a separate layer over Oblee's established poster identity. */
body.welcome-open { overflow: hidden; }
.welcome-dialog {
  --welcome-dark: #071e17;
  --welcome-accent: #d0e84c;
  --welcome-white: #fffef4;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--welcome-dark);
  color: var(--welcome-white);
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}
body[data-country="GH"] .welcome-dialog {
  --welcome-dark: #23100e;
  --welcome-accent: #f0ce43;
}
.welcome-dialog:not([open]) { display: none; }
.welcome-dialog[open] { display: block; animation: welcome-arrive .55s ease-out both; }
.welcome-dialog::backdrop { background: #071712; backdrop-filter: none; }
.welcome-dialog > .hero-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background: var(--welcome-dark);
}
.hero-motion-ambient { display: none; }
.welcome-dialog .hero-motion::after,
body[data-country="GH"] .welcome-dialog .hero-motion::after {
  background: linear-gradient(90deg, #061b16e8 0%, #061b16bf 35%, #061b162e 76%, #061b1638 100%), linear-gradient(0deg, #0009, transparent 24%, transparent 77%, #0005);
}
body[data-country="GH"] .welcome-dialog .hero-motion::after {
  background: linear-gradient(90deg, #23100ee8 0%, #23100eb5 35%, #23100e21 76%, #23100e38 100%), linear-gradient(0deg, #000a, transparent 24%, transparent 77%, #0005);
}
.welcome-dialog[data-video-layout="portrait"] .hero-motion-ambient {
  position: absolute;
  inset: -30px;
  display: block;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  max-width: none;
  object-fit: cover;
  filter: blur(26px) brightness(.65) saturate(.8);
  opacity: .65;
}
.welcome-dialog[data-video-layout="portrait"] .hero-motion-poster,
.welcome-dialog[data-video-layout="portrait"] .hero-motion-video {
  left: auto;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.welcome-layout {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px clamp(28px, 5vw, 80px) 25px;
  box-sizing: border-box;
}
.welcome-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.welcome-wordmark { display: inline-flex; align-items: center; gap: 4px; font-family: var(--heading); font-size: clamp(35px, 3.3vw, 50px); font-weight: 800; letter-spacing: -.09em; line-height: 1; }
.welcome-wordmark > span { display: inline-flex; color: var(--welcome-accent); font-size: .94em; font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.welcome-wordmark .icon { width: 1em; height: 1em; }
.welcome-tagline { color: #fffef4ba; font-size: 12px; letter-spacing: .16em; font-weight: 600; margin: 0; }
.welcome-skip { min-height: 44px; padding: 10px 0 10px 18px; border: 0; border-bottom: 1px solid #fffef480; background: transparent; color: var(--welcome-white); font-size: 14px; font-weight: 600; }
.welcome-skip:hover { border-color: var(--welcome-accent); color: var(--welcome-accent); }
.welcome-content { align-self: center; padding: clamp(26px, 4vh, 48px) 0 30px; width: fit-content; max-width: 100%; }
.welcome-edition { display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(20px, 3vh, 36px); font-size: 12px; letter-spacing: .17em; font-weight: 600; color: var(--welcome-white); }
.welcome-edition-mark { font-size: 26px; line-height: 1; color: var(--welcome-accent); }
.welcome-edition-mark .icon { width: 26px; height: 26px; }
body[data-country="GH"] .welcome-dialog .hero-motion-poster,
body[data-country="GH"] .welcome-dialog .hero-motion-video { object-position: center; }
.welcome-dialog h1 { margin: 0; color: var(--welcome-white); font-weight: 700; line-height: 1; }
.welcome-dialog .welcome-script-title { margin-bottom: 20px; width: min(69vw, 960px); max-width: 100%; }
.welcome-script-lead { display: block; width: 39%; margin: 0 0 0 6px; color: var(--welcome-white); }
.welcome-script-main { display: block; width: 100%; margin: -4px 0 0 -6px; color: var(--welcome-accent); }
.welcome-script-lead svg,
.welcome-script-main svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 5px #04191070); }
.handwriting-stroke,
.handwriting-underline { stroke-dasharray: 1; stroke-dashoffset: 0; }
.welcome-dialog[data-welcome-reveal="ready"] .handwriting-stroke,
.welcome-dialog[data-welcome-reveal="ready"] .handwriting-underline { stroke-dashoffset: 1; }
.welcome-dialog[data-welcome-reveal="writing"] .handwriting-stroke {
  animation: oblee-write var(--write-duration, .45s) linear var(--write-delay, 0s) both;
}
.welcome-dialog[data-welcome-reveal="writing"] .handwriting-underline {
  animation: oblee-write .65s ease-out 5.15s both;
}
@keyframes oblee-write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
#welcome-copy { font-size: clamp(18px, 1.65vw, 23px); line-height: 1.5; margin: 0 0 25px 4px; max-width: 400px; color: #fffef4eb; }
.welcome-destinations { display: flex; gap: 10px; margin-left: 3px; }
.welcome-destinations button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid #fffef45c; background: #071e1770; border-radius: 3px; color: var(--welcome-white); font-size: 14px; font-weight: 600; }
.welcome-destinations button[aria-pressed="true"] { color: #103e2d; background: var(--welcome-white); border-color: var(--welcome-white); }
.welcome-destinations button:hover { border-color: var(--welcome-accent); }
.welcome-destinations .country-flag { width: 22px; height: 16px; }
.welcome-actions { display: flex; align-items: center; gap: 22px; margin: 25px 0 0 3px; }
.welcome-enter { display: inline-flex; align-items: center; justify-content: center; background: var(--welcome-accent); color: #0b2b1f; border: 1px solid var(--welcome-accent); border-radius: 3px; min-width: 182px; min-height: 56px; padding: 14px 26px; font-family: var(--heading); font-size: 17px; font-weight: 700; transition: background .18s, transform .18s; }
.welcome-enter:hover { background: var(--welcome-white); border-color: var(--welcome-white); transform: translateY(-2px); }
.welcome-actions > p { margin: 0; color: #fffef4bf; font-size: 13px; line-height: 1.5; }
.welcome-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-right: 150px; }
.welcome-location { display: grid; gap: 5px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .13em; }
.welcome-location-note { font-size: 10px; letter-spacing: .14em; color: #fffef4a3; }
.welcome-manifesto { font-size: 10px; letter-spacing: .12em; margin: 0 0 3px; color: #fffef4a3; }
.welcome-gh { display: none; }
body[data-country="GH"] .welcome-ng { display: none; }
body[data-country="GH"] .welcome-gh { display: inline; }
.welcome-dialog .hero-motion-toggle { position: fixed; right: clamp(28px, 5vw, 80px); bottom: 22px; color: var(--welcome-white); border: 1px solid #fffef45c; background: #0b1d1780; box-shadow: none; backdrop-filter: blur(10px); border-radius: 3px; }
.welcome-dialog .hero-motion-toggle:hover { background: #0b1d17d9; border-color: var(--welcome-white); }
.welcome-dialog button:focus-visible { outline: 3px solid var(--welcome-white); outline-offset: 5px; }
.welcome-dialog .welcome-enter:focus-visible { outline-color: var(--welcome-accent); }
@keyframes welcome-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1600px) { .welcome-dialog .hero-motion-toggle { right: calc((100vw - 1600px) / 2 + 80px); } }
@media (max-width: 1000px) { .welcome-manifesto { display: none; } .welcome-tagline { font-size: 11px; } }
@media (max-width: 760px) {
  .welcome-layout { padding: 20px 25px 24px; min-height: 100%; }
  .welcome-tagline { display: none; }
  .welcome-wordmark { font-size: 38px; }
  .welcome-dialog[data-video-layout="portrait"] .hero-motion-poster,
  .welcome-dialog[data-video-layout="portrait"] .hero-motion-video { inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .welcome-dialog .hero-motion::after { background: linear-gradient(180deg, #061b163b, #061b161c 15%, #061b16a8 36%, #061b16e0 70%, #061b16e8); }
  body[data-country="GH"] .welcome-dialog .hero-motion::after { background: linear-gradient(180deg, #23100e3b, #23100e1c 15%, #23100ea8 36%, #23100ee0 70%, #23100ee8); }
  body[data-country="GH"] .welcome-dialog .hero-motion-poster,
  body[data-country="GH"] .welcome-dialog .hero-motion-video { object-position: 65% center; }
  .welcome-content { align-self: end; padding: 110px 0 38px; width: 100%; }
  .welcome-edition { font-size: 11px; margin-bottom: 23px; }
  .welcome-dialog .welcome-script-title { width: 100%; }
  .welcome-script-lead { width: 56%; margin-left: 3px; }
  .welcome-script-main { width: 100%; margin: 0; }
  #welcome-copy { margin-left: 0; font-size: 18px; line-height: 1.5; margin-bottom: 22px; }
  .welcome-destinations { margin-left: 0; }
  .welcome-actions { margin-left: 0; margin-top: 23px; gap: 20px; }
  .welcome-enter { min-width: 165px; font-size: 16px; }
  .welcome-bottom { min-height: 44px; padding-right: 0; }
  .welcome-location { font-size: 11px; line-height: 1.4; }
  .welcome-location-note { display: none; }
  .welcome-dialog .hero-motion-toggle { right: 25px; bottom: 24px; font-size: 14px; padding: 10px 12px; }
}
@media (max-width: 370px) {
  .welcome-layout { padding-inline: 20px; }
  .welcome-script-lead { width: 58%; }
  .welcome-content { padding-top: 80px; padding-bottom: 28px; }
  .welcome-actions { gap: 14px; }
  .welcome-actions > p { font-size: 12px; }
  .welcome-enter { min-width: 152px; padding-inline: 20px; }
  .welcome-dialog .hero-motion-toggle { right: 20px; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .welcome-layout { padding-top: 18px; padding-bottom: 18px; }
  .welcome-content { padding: 20px 0; }
  .welcome-edition { margin-bottom: 13px; }
  .welcome-dialog .welcome-script-title { width: min(63vw, 810px); margin-bottom: 10px; }
  .welcome-script-lead { width: 32%; }
  #welcome-copy { font-size: 18px; margin-bottom: 16px; }
  .welcome-actions { margin-top: 17px; }
  .welcome-enter { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-dialog[open] { animation: none; }
  .welcome-enter { transition: none; }
  .welcome-dialog .handwriting-stroke,
  .welcome-dialog .handwriting-underline { animation: none !important; stroke-dashoffset: 0 !important; }
}
