/* Authoritative 1.0.1 layout and entrance presentation. */
html.intro-pending #main, html.intro-pending .topbar,
html.intro-pending .scroll-progress { visibility: hidden; }
:root {
  --asoy-header-height: 76px;
  --asoy-page-edge: max(5vw, calc((100vw - 1220px) / 2));
}
html { scroll-padding-top: calc(var(--asoy-header-height) + 20px); }
#langBtn { display: none !important; }
.nav-wrap { min-height: var(--asoy-header-height); gap: 16px; }
.topbar .brand, .nav-links { flex-shrink: 0; }
.nav-links { white-space: nowrap; }
.nav-controls { padding-left: 0; align-items: center; flex: 0 0 auto; gap: 8px; }
.scroll-progress { top: var(--asoy-header-height); }

/* The same selector lives in the header, and outside inert content during the intro. */
#introLang072 {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
}
#introLang072 .language-short { display: none; }
#introLang072 button {
  min-height: 26px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  font-family: Arial, 'Malgun Gothic', sans-serif;
  line-height: 1.2 !important;
}
body.intro-playing #introLang072 {
  position: fixed;
  z-index: 2147483640;
  top: 76px !important;
  right: 27px !important;
}

#asoyGold066 { top: calc(var(--asoy-header-height) + 14px) !important; }
html.asoy-plaque-live100 #asoyGold066,
html.asoy-plaque-live100 #asoyMini070 { opacity: 0 !important; visibility: hidden !important; }

/* Fit the original art inside real bounds instead of shrinking the entire layer. */
.hero-copy { display: none !important; }
.hero {
  min-height: max(520px, 100svh);
  padding: 0;
  background: #07111e !important;
  overflow: hidden !important;
}
.hero > [data-zone="hero"] {
  top: calc(var(--asoy-header-height) + 16px);
  bottom: 80px;
  background: #07111e;
}
[data-zone="hero"] img,
[data-zone="hero"] video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
.hero:after { background: linear-gradient(0deg, #07111e, transparent 15%); }

/* The four people and the title remain visible; inquiry text follows the art. */
.contact {
  min-height: 0;
  padding: 0 0 64px;
  background: #07111e;
}
.contact > [data-zone="contact"] {
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1672 / 941;
}
.contact > .wrap { padding-top: 34px; }
.contact:after { display: none; }
[data-zone="contact"] img,
[data-zone="contact"] video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: brightness(1.12) contrast(.98) !important;
}

.poster5-section { padding: 34px 0 54px; background: #07111e; }
.poster5-frame {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #07111e;
  overflow: hidden;
  border: 1px solid rgba(239, 198, 109, .22);
}
.poster5-frame .zone-media { width: 100%; height: 100%; z-index: 0; }
.poster5-frame img,
.poster5-frame video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.asoy-intro { width: 100%; height: 100dvh; max-width: 100vw; overflow: hidden; }

#asoyPS096 {
  max-width: 980px;
  margin: 58px auto 28px;
  padding: 24px 28px;
  border-top: 1px solid rgba(239, 198, 109, .32);
  color: rgba(235, 238, 242, .76);
  font-size: 14px;
  line-height: 1.85;
}
#asoyPS096 strong {
  display: block;
  margin-bottom: 7px;
  color: #efc66d;
  font: italic 600 18px Georgia, serif;
}

/* Reserve real navigation room before links can run into the language control. */
@media (max-width: 1280px) {
  .mobile-menu { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset: var(--asoy-header-height) 0 auto;
    padding: 18px 5%;
    border-bottom: 1px solid var(--line);
    background: #0b1420;
  }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; font-size: 15px; }
}
@media (max-width: 750px) {
  body.intro-playing #introLang072 { top: 17px !important; right: 16px !important; }
  .hero { min-height: 0; height: calc(var(--asoy-header-height) + 230px + 56.28vw); }
  .hero > [data-zone="hero"] { top: calc(var(--asoy-header-height) + 130px); bottom: 100px; }
  .hero-bottom { bottom: 20px; }
  .hero-bottom .actions { gap: 6px; }
  .hero-bottom .btn { padding: 8px 10px; font-size: 11px; }
  .zone-media img, .zone-media video { object-fit: contain !important; object-position: center center !important; }
  .contact { padding-bottom: 40px; }
  .contact > .wrap { padding-top: 26px; }
  .contact h2 { font-size: 32px; }
  #asoyPS096 { margin: 42px 6vw 22px; padding: 20px 0; font-size: 12px; }
}
@media (max-width: 600px) {
  :root { --asoy-header-height: 104px; }
  .nav-wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 6px; padding-block: 12px; }
  .topbar .brand { margin-top: 0; min-height: 30px; }
  .topbar .mark { width: 30px; height: 30px; }
  .topbar .wordmark { font-size: 10px; letter-spacing: .07em; }
  .topbar .wordmark small { font-size: 7px; }
  .nav-controls { width: 100%; gap: 6px; }
  .nav-controls .icon-btn { min-width: 44px; min-height: 44px; padding: 6px; flex-shrink: 0; }
  #introLang072 button { min-width: 28px !important; min-height: 30px !important; padding: 4px 5px !important; font-size: 9px !important; }
  .nav-controls #introLang072 .language-full { display: none; }
  .nav-controls #introLang072 .language-short { display: inline; }
}

/* All entrance opacity comes from the single intro clock. */
.intro-title-wrap, .intro-sound { display: none !important; }
.intro-poster { display: block; z-index: 2; transition: none; }
.intro-poster > img { object-fit: contain !important; object-position: center; }
.intro-poster-shade { background: linear-gradient(0deg, #07111e38, transparent 50%); }
.intro-stage-fog {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, #f0f5f5f2, #c0cdd1e8);
}
.intro-progress { z-index: 9; }
#asoyWelcome066, #asoyPlaque095, #asoyGold066 {
  pointer-events: none; opacity: 0; visibility: hidden; transition: none !important;
}
#asoyWelcome066 {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  width: min(90vw, 1000px); transform: translate(-50%, -50%);
  color: #efc66d; text-align: center;
}
#asoyWelcome066 .welcome-main {
  font: 600 clamp(18px, 2.2vw, 36px)/1.4 Georgia, 'Times New Roman', serif;
  letter-spacing: .09em; text-shadow: 0 2px 4px #4b3000, 0 0 22px #ffdd8bcc;
}
#asoyWelcome066 .welcome-note {
  margin: 13px auto 0; max-width: 620px;
  font: 400 clamp(10px, .85vw, 13px)/1.65 Arial, sans-serif;
  letter-spacing: .02em; color: #313c43; text-shadow: 0 1px 4px #ffffffb3;
}
#asoyPlaque095 {
  position: absolute; inset: 0; z-index: 5; display: flex;
  align-items: center; justify-content: center; background: #07111e;
}
#asoyPlaque095 img {
  display: block; width: min(92vw, 1400px); height: auto;
  max-height: 86dvh; object-fit: contain;
  filter: drop-shadow(0 16px 36px #0006);
}
#asoyGold066 {
  position: fixed; z-index: 9001; left: 8vw; color: #efc66d;
  text-align: left; text-shadow: 0 2px 5px #503300, 0 0 25px #ffe6a1ad;
}
#asoyGold066 b {
  display: block; font: italic 600 clamp(42px, 5.2vw, 78px)/.96 Georgia, 'Times New Roman', serif;
  color: #edc56e;
}
#asoyGold066 small {
  display: block; margin-top: 8px; font: 600 clamp(11px, .9vw, 15px)/1.5 Arial, sans-serif;
  letter-spacing: .14em; color: #f4e6be; white-space: nowrap;
}
#asoyMini070 {
  position: relative; flex: 0 0 auto; opacity: 0; visibility: hidden; pointer-events: none;
  margin-right: 4px;
  color: #efc66d; font: italic 600 18px/1.3 Georgia, serif;
  text-shadow: 0 1px 3px #4b3000, 0 0 12px #ffdc8044; white-space: nowrap;
  transition: opacity .35s ease;
}
#asoyMini070.on { opacity: 1; visibility: visible; }
.asoy-title-letter { position: relative; display: inline-block; }
.asoy-letter-glint {
  position: absolute; left: var(--glint-x); top: var(--glint-y);
  width: clamp(6px, .18em, 14px); height: clamp(6px, .18em, 14px);
  margin: -.09em 0 0 -.09em; pointer-events: none;
  background: radial-gradient(circle, #fffef4 0 9%, #ffe5a070 25%, transparent 66%);
  filter: drop-shadow(0 0 2px #ffe5a0a6);
  opacity: 0; transform: scale(.35);
  animation: asoyLetterGlint 6.4s ease-in-out infinite;
  animation-delay: var(--glint-delay);
}
.asoy-letter-glint::before, .asoy-letter-glint::after {
  content: ''; position: absolute; border-radius: 50%;
  background: linear-gradient(90deg, transparent, #fffbe6 48% 52%, transparent);
}
.asoy-letter-glint::before { inset: calc(50% - .5px) -20%; }
.asoy-letter-glint::after { inset: -20% calc(50% - .5px); background: linear-gradient(transparent, #fffbe6 48% 52%, transparent); }
@keyframes asoyLetterGlint {
  0%, 28%, 100% { opacity: 0; transform: scale(.35) rotate(-12deg); }
  11% { opacity: .96; transform: scale(1.15) rotate(0); }
  20% { opacity: .18; transform: scale(.62) rotate(10deg); }
}
html.motion-off .asoy-letter-glint,
.title-motion-paused .asoy-letter-glint,
#asoyGold066.hero-hidden .asoy-letter-glint,
#asoyMini070:not(.on) .asoy-letter-glint { animation-play-state: paused; }
@media (max-width: 600px) {
  #asoyMini070 { font-size: 15px; margin-right: auto; }
}
@media (max-width: 360px) {
  .nav-controls { gap: 5px; }
  #asoyMini070 { font-size: 14px; }
}
@media (max-width: 330px) {
  #asoyMini070 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #asoyMini070 { transition: none; }
  .asoy-letter-glint { display: none; animation: none; }
}
.intro-caption {
  left: 50%; right: auto; top: 57%; bottom: auto; width: 82%; margin: 0;
  transform: translate(-50%, -50%); text-align: center;
  color: #efc66d; font: italic 700 24px/1.5 Georgia, 'Malgun Gothic', serif;
  letter-spacing: .015em; text-shadow: 0 2px 4px #4b3000, 0 0 18px #ffdc808c;
}
@media (max-width: 750px) {
  #asoyWelcome066 .welcome-main { font-size: 17px; letter-spacing: .05em; }
  #asoyWelcome066 .welcome-note { max-width: 82vw; font-size: 10px; }
  #asoyPlaque095 img { width: 96vw; max-height: 82dvh; }
  #asoyGold066 b { font-size: 40px; }
  #asoyGold066 small { font-size: 10px; }
  .intro-caption { width: 88%; font-size: 17px; top: 55%; }
}
