.home-view { padding: 0; }
body[data-view="home"] .topbar { position: absolute; inset: 0 0 auto; width: 100%; z-index: 5; background: none; border-bottom: 0; color: #583d25; justify-content: flex-end; }
body[data-view="home"] .topbar .brand { display: none; }
body[data-view="home"] .brand-seal { border-color: #80552c; color: #80552c; }
body[data-view="home"] .brand small { color: #826342; }
body[data-view="home"] .topbar .nav-home, body[data-view="home"] .topbar nav span { color: #704325; }
.home-banner { position: relative; isolation: isolate; height: min(900px, 100svh); min-height: 680px; overflow: hidden; background: #cdb183; }
.banner-landscape, .banner-landscape > img { display: block; width: 100%; height: 100%; }
.banner-landscape > img { object-fit: cover; object-position: center; }
.home-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, #0b211e); pointer-events: none; }
.banner-copy { position: absolute; left: 8%; top: 16%; width: 39%; max-width: 490px; }
.banner-copy h1 { margin: 0; }
.banner-copy h1 img { width: 100%; height: auto; }
.begin-exploration { position: absolute; left: 9%; bottom: 20%; z-index: 1; background: #18392bbf; border: 1px solid #e1c99777; border-radius: 3px; color: #f2dfb9; font-size: 12px; letter-spacing: .12em; padding: 14px 20px; display: inline-flex; align-items: center; gap: 30px; }
.begin-exploration:hover { color: #fff1d0; background: #173b2cef; border-color: #ead9ae; }
.scene { position: relative; isolation: isolate; }
.scene-backdrop { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: -2; }
.scene-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #061c19b5, #0b24252b 60%, #071d1b70), linear-gradient(#0b211e80, transparent 45%, #0b211e44); }
.scene-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.scene-mist { position: absolute; inset: 25% -40% 10%; background: radial-gradient(ellipse, #d7e2cd15, transparent 60%); animation: mist 18s ease-in-out infinite alternate; }
.scene-content { position: relative; margin-top: -100svh; }
.encounter .overline, .journey-end .overline { color: #d3b67f; }
.encounter { max-width: 1120px; margin: auto; min-height: 670px; padding: 90px 55px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 80px; position: relative; }
.encounter::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 80px; background: linear-gradient(#c3b4895e, transparent); }
.encounter-copy h2 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.7; letter-spacing: .09em; margin-top: 22px; color: #eee9d1; }
.encounter-copy p { color: #becbbb; font-size: 13px; letter-spacing: .04em; line-height: 2.2; margin-top: 22px; }
.encounter-bird .encounter-copy { grid-column: 2; grid-row: 1; }
.encounter-bird .spirit { grid-column: 1; grid-row: 1; }
.spirit { position: relative; width: 100%; height: 370px; padding: 12px; background: none; filter: drop-shadow(0 0 14px #e6d4a53b); text-align: center; transition: filter .4s, transform .4s; }
.spirit:hover, .spirit:focus-visible { filter: drop-shadow(0 0 25px #f5dfa88f); transform: translateY(-7px); }
.silhouette { display: block; width: 100%; height: calc(100% - 70px); background: linear-gradient(135deg, #fff4cf, #cfbf8b); mask-image: var(--figure); mask-position: center; mask-size: contain; mask-repeat: no-repeat; -webkit-mask-image: var(--figure); -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; opacity: .88; animation: glimmer 5s ease-in-out infinite; }
.spirit-bird .silhouette { animation-delay: 1.5s; }
.spirit-beast .silhouette { animation-delay: 3s; }
.spirit-name { display: inline-block; font: 16px/1.7 "Songti SC", serif; letter-spacing: .22em; padding: 6px 17px; margin-top: 4px; color: #eee1bd; border-bottom: 1px solid #c7b38377; }
.spirit-name > span { font: 12px -apple-system, sans-serif; margin-left: 12px; }
.spirit-prompt { display: block; color: #adbcab; font-size: 10px; letter-spacing: .1em; margin-top: 10px; }
.discovered .spirit-name { color: #f2ce81; border-color: #f2ce81; }
.discovered .silhouette { background: linear-gradient(135deg, #ffe2a5, #c5a56d); }
.journey-end { text-align: center; padding: 110px 24px 100px; background: linear-gradient(transparent, #0b211ef2 60%, #0b211e); }
.journey-end h2 { font-size: 38px; line-height: 1.65; letter-spacing: .13em; margin-top: 24px; }
.encounters { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0; }
.encounters > span:first-child { font: 38px/1.1 Georgia, serif; color: #dfd3b7; }
.encounters > span:last-child { color: #a3ad9b; font-size: 12px; text-align: left; }
.encounters small { display: block; font-size: 10px; letter-spacing: .05em; margin-top: 7px; }
.journey-cta { background: #cbb27b; color: #18392c; border-color: #cbb27b; }
.journey-cta:hover { background: #e0c893; }
.art-note { font-size: 10px; color: #93a18e; margin-top: 24px; }

@media (max-width: 1100px) {
  .banner-copy { left: 6%; width: 43%; }
  .encounter { padding: 75px 7%; column-gap: 40px; min-height: 620px; }
  .spirit { height: 330px; }
}
/* Mobile layout is used at every window width. */

  .scene-bg { object-position: 55% center; }
  .scene-backdrop::after { background: linear-gradient(#08201b88, #0c29275e 40%, #071e19a6); }
  .home-banner { height: 100svh; min-height: 640px; }
  .banner-landscape > img { object-position: center; }
  .banner-copy { top: max(90px, 10%); left: 50%; transform: translateX(-50%); width: 74%; max-width: 300px; }
  .begin-exploration { left: 50%; bottom: 5%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; padding: 13px 18px; gap: 23px; }
  .encounter .overline, .journey-end .overline { font-size: 10px; }
  .encounter { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 28px 32px; min-height: 0; }
  .encounter-copy h2 { font-size: 31px; margin-top: 10px; line-height: 1; }
  .encounter-calligraphy { display: block; width: 225px; max-width: 100%; height: 112px; object-fit: contain; }
  .encounter-copy p { font-size: 11px; margin-top: 10px; line-height: 1.95; }
  .spirit { width: 75%; max-width: 280px; height: 260px; align-self: flex-end; padding: 3px; }
  .silhouette { height: calc(100% - 62px); }
  .spirit-mask .silhouette { mask-size: 100% auto; -webkit-mask-size: 100% auto; }
  .spirit-bird { align-self: flex-start; }
  .encounter-bird .encounter-copy { align-self: flex-end; }
  .spirit-name { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; padding: 3px 12px; margin-top: 0; }
  .spirit-name > span { margin-left: 0; }
  .spirit-name .spirit-name-art { display: inline-block; width: 120px; height: 32px; background: currentColor; mask: var(--name-art) center / contain no-repeat; -webkit-mask: var(--name-art) center / contain no-repeat; }
  .spirit-name .spirit-name-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .spirit-prompt { font-size: 9px; margin-top: 6px; }
  .encounter::after { height: 28px; }
  .journey-end { padding: 60px 24px 48px; }
  .journey-end h2 { font-size: 30px; margin-top: 20px; }


body[data-view="home"] .topbar { max-width: 489px; }
