/* Opening presentation: scoped to the intro, preserving the live valley. */
.intro {
  background: radial-gradient(ellipse at 50% 44%, rgba(16,20,24,.56) 0%, rgba(16,20,24,.28) 54%, rgba(9,14,18,.40) 100%),
    linear-gradient(180deg, rgba(9,14,18,.12), rgba(9,14,18,.08) 55%, rgba(9,14,18,.40));
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}
.intro > .eyebrow { color: #f4efe6; font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .26em; text-shadow: 0 2px 12px #000; }
.intro .intro-title { font-size: clamp(44px, 10vw, 140px); line-height: .98; letter-spacing: .025em; text-shadow: 0 4px 32px rgba(0,0,0,.48); }
.intro .btn-enter { margin-top: clamp(28px, 5vh, 48px); min-height: 52px; background: #f4efe6; color: #26251f; border-color: #f4efe6; font-weight: 600; backdrop-filter: none; }
.intro .btn-enter:hover { background: #fffaf0; border-color: #fffaf0; }
.intro .intro-note { color: #f4efe6; line-height: 1.6; text-shadow: 0 2px 8px #000; }
.intro .intro-note .link { display: inline-block; padding: 10px 4px; color: #f4efe6; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.intro button:focus-visible { outline: 3px solid #e7a64a; outline-offset: 5px; }
@media (max-width: 480px) {
  .intro .intro-title { font-size: clamp(34px, 10vw, 48px); }
  .intro > .eyebrow { max-width: 28ch; line-height: 1.8; }
  .intro .btn-enter { padding: 16px 26px; letter-spacing: .18em; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .intro .intro-title { font-size: clamp(32px, 12vh, 60px); }
  .intro .btn-enter { margin-top: 18px; min-height: 44px; padding: 12px 26px; }
  .intro .intro-note { margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intro .fade-up { animation: none; opacity: 1; transform: none; }
  .intro, .intro .btn-enter { transition: none; }
}

/* Quick ways in from the welcome screen: a visitor from a post can jump straight to the place they saw. */
.intro .intro-places { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 560px; margin: 14px auto 0; padding: 0 16px; }
.intro .intro-places span { width: 100%; text-align: center; color: #f4efe6; opacity: .8; font-size: 13px; letter-spacing: .04em; text-shadow: 0 2px 8px #000; }
.intro .intro-places button { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(244,239,230,.45); background: rgba(10,8,6,.35); color: #f4efe6; font: 600 14px/1 system-ui, -apple-system, sans-serif; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.intro .intro-places button:hover, .intro .intro-places button:focus-visible { background: #d29a3a; border-color: #d29a3a; color: #1a1206; }

/* The arrival: letterbox bars while the camera comes down, calm lines on the way, then the title letter by letter. */
.letterbox i { position: fixed; left: 0; right: 0; height: 11vh; background: #050403; z-index: 40; pointer-events: none; transition: transform 1.6s cubic-bezier(.7,0,.2,1); }
.letterbox i:first-child { top: 0; transform: translateY(-100%); }
.letterbox i:last-child { bottom: 0; transform: translateY(100%); }
body.arriving .letterbox i { transform: none; }
@media (max-aspect-ratio: 3/4) { .letterbox i { height: 7vh; } }
.intro-caption { position: fixed; left: 50%; bottom: calc(11vh + 26px); z-index: 41; margin: 0; width: min(90vw, 760px); transform: translateX(-50%); text-align: center; pointer-events: none;
  color: #f4efe6; font: italic 500 clamp(17px, 2.3vw, 28px)/1.3 "Cormorant Garamond", Georgia, serif; letter-spacing: .02em; text-shadow: 0 2px 18px rgba(0,0,0,.75); opacity: 0; }
.intro-caption.on { animation: caption-in 3s ease both; }
@keyframes caption-in { 0% { opacity: 0; transform: translate(-50%, 10px); filter: blur(4px); } 22%, 78% { opacity: 1; transform: translate(-50%, 0); filter: none; } 100% { opacity: 0; transform: translate(-50%, -6px); filter: blur(3px); } }
.intro-skip { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(11vh + 18px); z-index: 42; padding: 10px 16px; border: 1px solid rgba(244,239,230,.35); border-radius: 999px;
  background: rgba(8,6,4,.35); color: #f4efe6; font: 600 13px/1 system-ui, -apple-system, sans-serif; letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: caption-fade .8s ease both; }
.intro-skip[hidden] { display: none; }
@keyframes caption-fade { from { opacity: 0; } }
@media (max-aspect-ratio: 3/4) { .intro-caption { bottom: calc(7vh + 22px); } .intro-skip { bottom: calc(7vh + 64px); right: 50%; transform: translateX(50%); } }

.intro .intro-title .it-line { display: block; }
.intro .intro-title .ch { display: inline-block; opacity: 0; transform: translateY(.35em) scale(1.04); filter: blur(10px);
  animation: ch-in 1.1s cubic-bezier(.2,.7,.1,1) both; animation-delay: calc(.35s + var(--i) * .06s); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }
.intro .intro-local { margin: 14px 0 0; color: #f0c46a; font: 500 clamp(16px, 2vw, 22px)/1.2 "Noto Sans Devanagari", system-ui, sans-serif; letter-spacing: .12em; text-shadow: 0 2px 14px rgba(0,0,0,.7);
  opacity: 0; animation: caption-fade 1.4s ease 1.5s both; animation-name: local-in; }
@keyframes local-in { from { opacity: 0; letter-spacing: .4em; } to { opacity: .95; letter-spacing: .12em; } }
.intro .intro-rule { display: block; width: 120px; height: 1px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, #d29a3a, transparent); transform: scaleX(0); animation: rule-in 1.2s cubic-bezier(.2,.7,.1,1) 1.9s both; }
@keyframes rule-in { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro .intro-title .ch, .intro .intro-local, .intro .intro-rule { animation: none; opacity: 1; transform: none; filter: none; }
  .letterbox, .intro-caption { display: none; }
}
