/* The arrival is the first screen. States stay a quieter frame underneath. */
.hero.hero--home.hero-arrival {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-bottom: 0;
  padding: 12px 0 28px;
  overflow: hidden;
  border-bottom: 0;
}
.hero-stage {
  display: grid;
  grid-template-columns: minmax(180px, 260px) max-content;
  gap: 8px 36px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.hero-arrival .hero-copy { width: max-content; max-width: 100%; }
.hero-guide { position: relative; align-self: center; }
.hero-guide-flight { transform-origin: 62% 68%; }
.hero-arrival .night-guide { display: block; width: 100%; height: auto; overflow: visible; }
.hero-arrival .hero-reveal h1 { max-width: 12ch; margin-bottom: 12px; }
.hero-arrival .lede { max-width: 34ch; }
.location-note {
  max-width: 42ch;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.location-note[hidden] { display: none; }
.city-find {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  width: max-content;
  max-width: 100%;
  margin-top: 22px;
}
.hero-arrival .city-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
}
.city-search[hidden],
.find-city[hidden] { display: none; }
.hero-arrival .city-find input {
  flex: 1 1 15.5rem;
  width: 15.5rem;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  caret-color: var(--accent);
}
.hero-arrival .city-find input::placeholder { color: #8b97a8; opacity: 1; }
.hero-arrival .city-find input:focus {
  border: 0;
  outline: 2px solid rgba(154, 235, 204, 0.85);
  outline-offset: 3px;
}
.hero-arrival .city-find .city-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #24180d;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}
.hero-arrival .city-find .city-go:hover { background: var(--accent-strong); color: #24180d; opacity: 1; }
.hero-arrival .city-find .city-go:disabled { cursor: progress; opacity: 0.7; }
.find-city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #24180d;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.find-city:hover { background: var(--accent-strong); color: #24180d; }
.find-city:disabled { cursor: progress; opacity: 0.7; }
.city-mode {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
}
.city-mode:hover { color: var(--text); }
.city-choices { margin-top: 16px; }
.city-choices[hidden] { display: none; }
.city-choices p { margin: 0 0 8px; color: var(--text); }
.city-choices ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.city-choices a { font-weight: 700; }
.city-status { min-height: 1.5em; max-width: 46ch; margin: 8px 0 0; color: var(--muted); }
.home-states { margin-top: 28px; padding-top: 8px; }
.home-states .browse-header h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.home-state-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.home-state-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.home-state-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.home-topics { margin-top: 36px; }
#city-choices[hidden], #location-note[hidden] { display: none; }

.home-page .site-header .wrap { max-width: var(--max); }
.home-page main.wrap { max-width: none; padding: 0; }
.home-page .hero.hero-arrival { padding-inline: clamp(18px, 4vw, 36px); }

.home-places { background: var(--bg); color: var(--text); }
.home-homage {
  position: relative;
  display: block;
  height: 72vh;
  min-height: 440px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.home-homage img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.home-homage-card {
  position: absolute;
  left: max(22px, calc((100% - 1180px) / 2 + 28px));
  bottom: 28px;
  max-width: 34ch;
  padding: 18px 22px 16px;
  background: #e8e8e3;
  color: #181715;
}
.home-homage-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.home-homage-arrow {
  display: inline-block;
  margin-left: 0.28em;
  font-family: var(--font-sans);
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: baseline;
}
.home-homage:hover { text-decoration: none; }
.home-homage:hover .home-homage-name { color: #6d6410; }
.home-homage-where { display: block; margin-top: 6px; font-size: 0.95rem; }
.home-places-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(18px, 4vw, 36px) 0;
}
.home-places-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.home-places-copy .lead { margin: 18px 0 0; max-width: 42ch; color: var(--muted); }
.home-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px clamp(18px, 4vw, 36px) 88px;
}
.home-cities a { color: inherit; text-decoration: none; }
.home-cities a:hover { text-decoration: none; }
.home-cities a:hover .cn-name { color: var(--accent-strong); }
.cn-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cn-line { display: block; margin-top: 8px; max-width: 36ch; color: var(--muted); }

@media (min-width: 800px) {
  .hero.hero--home.hero-arrival { min-height: calc(100svh - 132px); padding-bottom: 48px; }
}

@media (max-width: 720px) {
  .hero-stage { grid-template-columns: 1fr; gap: 0; width: 100%; margin-inline: 0; }
  .hero-arrival .hero-copy,
  .city-find { width: auto; }
  .hero-guide { width: min(220px, 64vw); margin-bottom: -8px; }
  .city-find { flex-wrap: wrap; }
  .hero-arrival .city-search { flex: 1 1 100%; }
  .hero-arrival .city-find input { width: auto; }
  .home-homage { height: 68vh; min-height: 420px; }
  .home-homage-card { left: 16px; right: 16px; bottom: 16px; }
  .home-places-copy { padding: 48px 22px 0; }
  .home-cities { grid-template-columns: 1fr; gap: 28px; padding: 40px 22px 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-guide::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 18%;
    right: -8%;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 173, 99, 0.42), rgba(244, 173, 99, 0) 68%);
    opacity: 0;
    animation: lamp-bloom 1.3s ease 1.15s both;
  }
  .hero-guide-flight { animation: guide-arrive 6.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-arrival .hero-reveal {
    animation: lantern-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
  }
  .hero-arrival .night-guide [data-part="flight"] {
    animation: hero-float 5.6s ease-in-out infinite;
    transform-origin: 50% 65%;
  }
  .hero-arrival .night-guide [data-part="lantern"] {
    animation: hero-lantern 5.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 50% 0%;
  }
  .hero-arrival .night-guide [data-part="scarf"],
  .hero-arrival .night-guide [data-part="tassels"] {
    animation: hero-fabric 5.6s ease-in-out -0.35s infinite;
    transform-box: fill-box;
    transform-origin: right top;
  }
  .hero-arrival .night-guide [data-part="eyes"] {
    animation: hero-blink 6.4s linear 1.6s infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .hero-arrival .night-guide [data-part="glow"] { animation: hero-glow 5.6s ease-in-out infinite; }
  .find-city { animation: city-point 1.8s ease-in-out 4.3s 1 both; }
}

@keyframes guide-arrive {
  0% { opacity: 0; transform: translate3d(-68%, 18px, 0) rotate(-2.4deg); }
  22% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
  52% { transform: translate3d(0, 0, 0) rotate(0deg); }
  76% { transform: translate3d(22px, 16px, 0) rotate(1.1deg); }
  100% { transform: none; }
}
@keyframes lantern-reveal {
  from { opacity: 0; filter: blur(8px); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0); }
}
@keyframes lamp-bloom { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-0.45deg); }
  50% { transform: translateY(-6px) rotate(0.45deg); }
}
@keyframes hero-lantern { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes hero-fabric { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2deg); } }
@keyframes hero-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(0.08); } }
@keyframes hero-glow { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
@keyframes city-point {
  0%, 100% { background-color: var(--accent); }
  45% { background-color: var(--accent-strong); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-guide-flight,
  .hero-arrival .hero-reveal,
  .hero-guide::after,
  .find-city,
  .hero-arrival .night-guide [data-part] {
    animation: none !important;
    transform: none;
    opacity: 1;
    filter: none;
    clip-path: none;
  }
}
