/* The welcome is isolated from storefront styles and appears only on a first visit. */
dialog.studio-welcome {
  --welcome-navy: #131921;
  --welcome-yellow: #ffd814;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--welcome-navy);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  text-align: left;
}
.studio-welcome::backdrop { background: #131921; }
.studio-welcome *, .studio-welcome *::before, .studio-welcome *::after { box-sizing: border-box; }
.studio-welcome .studio-welcome__portrait {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: 52% 0%;
}
.studio-welcome .studio-welcome__shade {
  position: absolute;
  inset: 0;
  min-height: 720px;
  background: linear-gradient(90deg, #131921 0%, #131921 41%, rgba(19,25,33,.98) 48%, rgba(19,25,33,.87) 59%, rgba(19,25,33,.12) 76%, rgba(19,25,33,.06) 100%);
  pointer-events: none;
}
.studio-welcome .studio-welcome__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px clamp(28px, 5vw, 80px) 40px;
}
.studio-welcome .studio-welcome__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.studio-welcome .studio-welcome__filters { position: absolute; pointer-events: none; }
.studio-welcome .studio-welcome__brand { width: 252px; height: 84px; object-fit: contain; filter: url(#studio-welcome-brand-alpha); }
.studio-welcome .studio-welcome__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid #aab3bc;
  border-radius: 8px;
  background: #131921;
  color: #fff;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.studio-welcome .studio-welcome__close span { font-size: 26px; font-weight: 400; }
.studio-welcome .studio-welcome__content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 53%; max-width: 660px; padding: 48px 0 32px; }
.studio-welcome #studio-welcome-title { max-width: 19ch; margin: 0 0 24px; color: #fff; font-size: clamp(38px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.studio-welcome #studio-welcome-title:focus { outline: none; }
.studio-welcome .studio-welcome__tagline { max-width: 43ch; margin: 0 0 28px; color: #ffd814; font-size: 16px; font-weight: 400; line-height: 1.45; letter-spacing: normal; }
.studio-welcome .studio-welcome__intro { max-width: 47ch; margin: 0 0 16px; color: #e3e6e6; font-size: 18px; line-height: 1.55; }
.studio-welcome .studio-welcome__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.studio-welcome .studio-welcome__primary, .studio-welcome .studio-welcome__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/1.35 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.studio-welcome .studio-welcome__primary { color: #0f1111; background: #ffd814; border-color: #ffd814; }
.studio-welcome .studio-welcome__primary:hover { color: #0f1111; background: #f7ca00; border-color: #f7ca00; text-decoration: none; }
.studio-welcome .studio-welcome__secondary { color: #fff; background: #131921; border-color: #aab3bc; }
.studio-welcome .studio-welcome__secondary:hover, .studio-welcome .studio-welcome__close:hover { color: #fff; background: #232f3e; border-color: #fff; }
.studio-welcome .studio-welcome__primary:active, .studio-welcome .studio-welcome__secondary:active, .studio-welcome .studio-welcome__close:active { transform: translateY(1px); }
.studio-welcome a:focus-visible, .studio-welcome button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.studio-welcome .studio-welcome__details { margin: 18px 0 0; color: #e3e6e6; font-size: 13px; line-height: 1.6; }
.studio-welcome .studio-welcome__details span { color: #e3e6e6; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .studio-welcome[open] .studio-welcome__content { animation: studio-welcome-enter 180ms ease-out; }
  @keyframes studio-welcome-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 900px) {
  .studio-welcome .studio-welcome__portrait { width: 70%; object-position: 53% 0%; }
  .studio-welcome .studio-welcome__shade { background: linear-gradient(90deg, #131921 0%, #131921 34%, rgba(19,25,33,.94) 48%, rgba(19,25,33,.75) 60%, rgba(19,25,33,.2) 85%); }
  .studio-welcome .studio-welcome__content { width: 66%; }
}
@media (max-width: 600px) {
  .studio-welcome .studio-welcome__portrait { top: 72px; width: 100%; height: 38svh; min-height: 300px; object-position: 50% 0%; }
  .studio-welcome .studio-welcome__shade { min-height: 100%; background: linear-gradient(180deg, rgba(19,25,33,.52) 0%, rgba(19,25,33,.04) 22%, #131921 40%, #131921 100%); }
  .studio-welcome .studio-welcome__frame { padding: 8px 24px max(24px, env(safe-area-inset-bottom)); }
  .studio-welcome .studio-welcome__header { min-height: 56px; gap: 12px; }
  .studio-welcome .studio-welcome__brand { width: 186px; height: 62px; }
  .studio-welcome .studio-welcome__close { min-width: 48px; padding: 8px 12px; gap: 8px; font-size: 12px; }
  .studio-welcome .studio-welcome__content { justify-content: flex-end; width: 100%; padding: 23svh 0 0; }
  .studio-welcome #studio-welcome-title { max-width: 22ch; font-size: clamp(30px, 8.1vw, 40px); line-height: 1.1; margin-bottom: 16px; }
  .studio-welcome .studio-welcome__tagline { font-size: 14px; line-height: 1.4; max-width: 39ch; margin-bottom: 20px; }
  .studio-welcome .studio-welcome__intro { font-size: 16px; line-height: 1.45; margin-bottom: 12px; }
  .studio-welcome .studio-welcome__actions { align-items: stretch; width: 100%; gap: 10px; }
  .studio-welcome .studio-welcome__primary, .studio-welcome .studio-welcome__secondary { width: 100%; padding: 12px 16px; font-size: 14px; }
  .studio-welcome .studio-welcome__details { margin-top: 16px; font-size: 12px; }
}
@media (max-width: 360px) {
  .studio-welcome .studio-welcome__frame { padding-inline: 20px; }
  .studio-welcome .studio-welcome__brand { width: 160px; height: 54px; }
  .studio-welcome .studio-welcome__close { gap: 5px; padding-inline: 9px; }
}

/* Pillow stays discreet; research appears only after the mascot is opened. */
.studio-welcome .studio-welcome__evidence {
  position: fixed;
  z-index: 3;
  right: 40px;
  bottom: 40px;
  width: 104px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow-wrap: break-word;
}
.studio-welcome .studio-welcome__evidence [hidden] { display: none !important; }
.studio-welcome .hero-pillow__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 104px;
  min-height: 112px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font: 400 12px/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.studio-welcome .hero-pillow__trigger:hover { background: transparent; }
.studio-welcome .hero-pillow__trigger:hover .hero-pillow__label { text-decoration: underline; text-underline-offset: 3px; }
.studio-welcome .hero-pillow__visual {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
}
.studio-welcome .hero-pillow__visual canvas,
.studio-welcome .hero-pillow__fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.studio-welcome .hero-pillow__visual.pillow-ready .hero-pillow__fallback { display: none; }
.studio-welcome .hero-pillow__label {
  display: block;
  color: #e3e6e6;
  white-space: nowrap;
  text-shadow: 0 1px 4px #131921, 0 1px 8px #131921;
}
.studio-welcome .hero-pillow__trigger:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.studio-welcome .ai-evidence__bubble {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(100% + 12px);
  width: 330px;
  max-width: calc(100vw - 48px);
  max-height: min(420px, calc(100dvh - 280px));
  margin: 0;
  padding: 12px 17px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5d9d9;
  border-radius: 16px;
  background: #fff;
  color: #0f1111;
  box-shadow: 0 8px 28px #0003;
}
.studio-welcome .hero-pillow__close {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  min-width: 40px;
  margin: 0 0 8px auto;
  padding: 6px 9px;
  border: 1px solid #d5d9d9;
  border-radius: 7px;
  background: #fff;
  color: #565959;
  font: 400 12px/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.studio-welcome .hero-pillow__close:hover { color: #0f1111; background: #f7fafa; border-color: #888c8c; }
.studio-welcome .ai-evidence__fact { margin: 0; padding: 0; border: 0; }
.studio-welcome .ai-evidence__claim { margin: 0 0 10px; color: #0f1111; font-size: 15px; line-height: 1.45; font-weight: 400; }
.studio-welcome .ai-evidence__claim strong { font-weight: 700; }
.studio-welcome .ai-evidence__source { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
.studio-welcome .ai-evidence__bubble a { color: #2162a1; text-decoration: underline; text-underline-offset: 2px; }
.studio-welcome .ai-evidence__details { color: #565959; font-size: 11px; line-height: 1.45; }
.studio-welcome .ai-evidence__details summary { width: fit-content; padding: 4px 0; cursor: pointer; }
.studio-welcome .ai-evidence__details p { margin: 6px 0 0; }
.studio-welcome .ai-evidence__controls { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e3e6e6; }
.studio-welcome .ai-evidence__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 42px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #888c8c;
  border-radius: 7px;
  background: #fff;
  color: #0f1111;
  font: 400 12px/1.25 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.studio-welcome .ai-evidence__controls button:hover { background: #f7fafa; border-color: #565959; }
.studio-welcome .ai-evidence__controls span { min-width: 36px; color: #565959; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.studio-welcome .ai-evidence__bubble button:focus-visible,
.studio-welcome .ai-evidence__bubble a:focus-visible,
.studio-welcome .ai-evidence__bubble summary:focus-visible { outline: 3px solid #007185; outline-offset: 3px; }
@media (min-width: 601px) and (max-width: 900px) {
  .studio-welcome .studio-welcome__evidence { right: 28px; bottom: 28px; }
}
@media (max-width: 600px) {
  .studio-welcome .studio-welcome__evidence { position: absolute; top: 230px; right: 20px; bottom: auto; width: 80px; }
  .studio-welcome .hero-pillow__trigger { width: 80px; min-height: 90px; gap: 3px; font-size: 11px; }
  .studio-welcome .hero-pillow__visual { width: 72px; height: 72px; }
  .studio-welcome .ai-evidence__bubble {
    top: calc(100% + 10px);
    right: 4px;
    bottom: auto;
    width: calc(100vw - 48px);
    max-height: calc(100dvh - 364px);
    padding: 11px 16px 14px;
  }
}
@media (max-width: 600px) and (max-height: 600px) {
  .studio-welcome .ai-evidence__bubble { position: fixed; top: 88px; right: 24px; bottom: auto; max-height: calc(100dvh - 112px); }
}
