/* Approved brand assets, V5.
   Load after site.css and vivid-v5.css. Use original PNG files unchanged.
   Expected markup: .brand-text (or .brand-logo) contains the unchanged img,
   followed by .brand-readable-name and .brand-readable-tagline spans.
   Natural image height preserves the full banner, including black margins. */

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  grid-template-areas: "brand brand brand brand" ". nav cta .";
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  align-content: center;
  justify-content: normal;
  height: auto;
  min-height: 0;
  max-width: none;
  padding-top: 8px;
  padding-bottom: 17px;
  background: #000;
  border-bottom: 1px solid #735294;
}
.site-header > .brand-text, .site-header > .brand-logo {
  grid-area: brand;
  display: block;
  width: min(100%, 720px);
  min-width: 0;
  max-width: 720px;
  flex-shrink: 1;
  justify-self: center;
  text-align: center;
  line-height: 0;
}
.site-header .brand-text img, .site-header .brand-logo img,
.footer-top .brand-text img, .footer-top .brand-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1983 / 793;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: none;
  mask: none;
  -webkit-mask: none;
  border: 0;
  border-radius: 0;
  animation: none;
}
.site-header nav {
  grid-area: nav;
  display: flex;
  width: auto;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  color: #cbbfd5;
  font-size: 12px;
  line-height: 1.45;
}
.site-header nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 11px 0;
  border-bottom: 0;
}
.site-header .header-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 16px;
  white-space: nowrap;
  padding: 11px 15px;
  color: #f5edff;
  border-color: #9271b4;
  font-size: 12px;
}
.site-header .menu-button { display: none; }
.brand-readable-name, .brand-readable-tagline { display: none; }

/* The banner already contains the studio name and slogan. */
.site-footer { background: #000; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.footer-top .brand-text, .footer-top .brand-logo {
  display: block;
  width: min(100%, 640px);
  min-width: 0;
  line-height: 0;
}
.footer-top > p { display: none; }
.footer-top > a { justify-self: center; font-size: 11px; padding: 8px 0; }
.footer-bottom { margin-top: 25px; }

/* The full Option 3 source, including its original top-left caption.
   This supports either a figure wrapper or an img carrying .studio-seal. */
.studio-seal {
  width: min(100%, 510px);
  margin: 24px 0 0;
  padding: 0;
  background: #03040a;
  border: 1px solid #74618e;
  color: #e4d5f4;
}
.studio-seal img, img.studio-seal {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: none;
  mask: none;
  -webkit-mask: none;
  border-radius: 0;
  animation: none;
}
.studio-seal img { width: 100%; }
img.studio-seal { width: min(100%, 510px); }
.studio-seal figcaption {
  padding: 15px 18px;
  border-top: 1px solid #74618e;
  font-size: 11px;
  line-height: 1.6;
  color: #d4c2e4;
}

/* Match site.js: the menu starts at 800px, desktop resumes at 801px.
   With no JS, the navigation stays visible beneath the banner. */
@media (max-width: 800px) {
  .site-header, .site-header.nav-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "menu" "nav";
    column-gap: 0;
    row-gap: 8px;
    align-items: center;
    align-content: center;
    height: auto;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 12px;
  }
  .site-header > .brand-text, .site-header > .brand-logo {
    width: 100%;
    max-width: none;
  }
  .site-header .header-cta { display: none; }
  .site-header.nav-ready .menu-button {
    grid-area: menu;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 12px;
    color: #eadcf8;
    font-size: 12px;
    border: 0;
    background: none;
    min-height: 44px;
  }
  .site-header nav, .site-header.nav-ready nav.is-open {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    padding: 4px 0 7px;
    margin-top: 0;
    border-top: 1px solid #5a3d73;
  }
  .site-header.nav-ready nav:not(.is-open) { display: none; }
  .site-header nav a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #32213f;
  }
  .site-header nav a[aria-current]::after { display: none; }
  .site-header.nav-ready:has(nav.is-open) {
    height: auto;
    padding-top: 8px;
    padding-bottom: 16px;
  }
  .site-header .brand-text .brand-readable-name,
  .site-header .brand-logo .brand-readable-name,
  .footer-top .brand-text .brand-readable-name,
  .footer-top .brand-logo .brand-readable-name {
    display: block;
    margin-top: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .26em;
    color: #efedf7;
  }
  .site-header .brand-text .brand-readable-tagline,
  .site-header .brand-logo .brand-readable-tagline,
  .footer-top .brand-text .brand-readable-tagline,
  .footer-top .brand-logo .brand-readable-tagline {
    display: block;
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .015em;
    color: #d8c8eb;
  }
  .footer-top .brand-text, .footer-top .brand-logo {
    width: 100%;
    max-width: none;
  }
  .studio-seal { max-width: 440px; margin-top: 20px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 10px; }
  .footer-top .brand-text, .footer-top .brand-logo { width: 100%; }
  .footer-top > a { justify-self: center; padding: 9px 0; }
  .footer-bottom { margin-top: 17px; }
  .studio-seal figcaption { padding: 13px 15px; font-size: 10px; }
}
