/* Voyage East: paper, window, margin. Layers: masthead 100, index 105, drawer 110;
   the native photograph dialog occupies the browser's top layer. */
:root {
  --motion-ink: 220ms;
  --motion-paper: 640ms;
  --motion-opening: 1200ms;
  --ease-paper: cubic-bezier(.22,.68,.12,1);
}
.home-hero-media { position: relative; overflow: hidden; }
.hero-paper { position: absolute; inset-block: 0; width: 51%; z-index: 2; background: var(--bg); pointer-events: none; }
.hero-paper--left { left: 0; }
.hero-paper--right { right: 0; }
.home-hero-heading .eyebrow::before { transform-origin: left; }

/* A pair of photographs is a small invitation, separate from booking. */
.story-mount { position: relative; }
.home-page .hangzhou-slide[hidden] { display: none; }
.home-page .hangzhou-carousel .hangzhou-slide { object-position: 50% 55%; filter: none; }
.hangzhou-controls { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding-top: 12px; color: var(--ve-teal); }
.hangzhou-controls button { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 24px; }
.hangzhou-controls button:hover { color: var(--ve-cinnabar); }
.hangzhou-controls button:focus-visible { outline: 2px solid var(--ve-teal); outline-offset: 2px; }
.hangzhou-controls [role="status"] { min-width: 36px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.story-mount .journey-preview-media { position: relative; }
.story-alternate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.story-mount .story-alternate { transition: opacity var(--motion-paper) var(--ease-paper), transform 900ms var(--ease-paper); }
.story-mount.is-turned .story-alternate { opacity: 1; }
.story-caption { display: grid; grid-template-columns: 36px 1fr auto; align-items: baseline; gap: 14px; position: relative; z-index: 1; margin: -24px 0 0 28px; padding: 18px 0 0 20px; background: var(--bg); }
.story-caption-count { font-family: var(--font-serif); color: var(--ve-teal); font-size: 25px; font-variant-numeric: tabular-nums; }
.story-caption-text { color: var(--fg2); font-size: 12px; line-height: 1.6; }
.story-turn { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; color: var(--ve-teal); }
.story-turn span { transition: transform var(--motion-ink) var(--ease-paper); }
.story-turn:hover span, .story-turn:focus-visible span { transform: translateX(4px); }
.story-mount + .journey-preview-copy { padding-top: 20px; }
.journey-preview-copy h2, .experience-card-copy h3 { transition: transform var(--motion-paper) var(--ease-paper); }
.journey-preview-copy .editorial-link span, .experience-card-cta span { display: inline-block; transition: transform var(--motion-paper) var(--ease-paper); }
.journey-preview-card:focus-within .journey-preview-copy h2, .experience-card:focus-within h3 { transform: translateX(4px); }
.journey-preview-card:focus-within .editorial-link span, .experience-card:focus-within .experience-card-cta span { transform: translateX(5px); }
.experience-card-link:focus-visible { outline-offset: 10px; }
@media (hover: hover) and (pointer: fine) {
  .journey-preview-card:hover .journey-preview-copy h2, .experience-card:hover h3 { transform: translateX(4px); }
  .journey-preview-card:hover .editorial-link span, .experience-card:hover .experience-card-cta span { transform: translateX(5px); }
  .story-mount:hover .journey-preview-media img { transform: scale(1.04); }
}

/* One cross-section composition. The photograph sits across the paper seam. */
.home-page .private-journeys-preview { margin-top: 48px; padding-top: 0; }
.home-page .private-journeys-grid > figure { position: relative; margin-top: -48px; }

/* An illustrated contents leaf, not a replacement for the direct navigation links. */
.nav-entry { display: inline-flex; align-items: center; gap: 5px; }
.nav-index-toggle { min-width: 28px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; color: inherit; }
.nav-index-toggle span { display: block; font-size: 18px; font-weight: 300; transition: transform var(--motion-ink) var(--ease-paper); }
.nav-index-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-index { position: fixed; z-index: 105; top: var(--editorial-header); right: clamp(24px,5vw,56px); width: min(740px,calc(100vw - 48px)); padding: 28px; background: var(--bg); border: 1px solid var(--rule); border-top: 2px solid var(--ve-teal); box-shadow: 0 18px 32px rgba(25,40,35,.09); }
.nav-index[hidden] { display: none; }
.nav-index-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.nav-index-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); margin-bottom: 12px; }
.nav-index-list { display: flex; flex-direction: column; }
.nav-index-item { display: block; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.nav-index-item:first-child { padding-top: 0; }
.nav-index-item strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 27px; line-height: 1.1; transition: transform var(--motion-paper) var(--ease-paper); }
.nav-index-item small { display: block; margin-top: 9px; color: var(--fg2); font-size: 12px; }
.nav-index-item.is-previewed strong { transform: translateX(6px); color: var(--ve-teal); }
.nav-index-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.nav-index-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav-index-photo img:last-child { opacity: 0; }
.nav-index-photo-caption { margin-top: 12px; font-size: 12px; color: var(--fg2); }
.nav-index-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; font-size: 12px; }
.nav-index-foot a { text-decoration: underline; text-underline-offset: 5px; }
.nav-index-foot button { min-width: 44px; min-height: 44px; }
.nav-drawer.open { transform: none; }
.nav-drawer::before { content: ""; position: fixed; inset: 0 0 auto; height: 84px; background: var(--ve-teal); z-index: 1; pointer-events: none; }
.nav-drawer-close { position: fixed; z-index: 2; }
.nav-drawer-entry { display: grid; grid-template-columns: 1fr 44px; align-items: center; }
.nav-drawer-entry > a { min-width: 0; }
.nav-drawer-entry > .nav-index-toggle { min-height: 58px; }
.drawer-index { grid-column: 1 / -1; padding: 18px 0 26px; }
.drawer-index[hidden] { display: none; }
.nav-drawer-links .drawer-index a { display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding: 10px 0; border: 0; align-items: center; font-family: var(--font-sans); }
.drawer-index img { width: 62px; height: 62px; object-fit: cover; }
.drawer-index strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.1; }
.drawer-index small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; }

/* Photography: a contact sheet and a generous reading frame. */
.photo-dialog { overflow: auto; }
.photo-dialog-toolbar { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.photo-dialog figure { position: relative; }
.photo-dialog figcaption { min-height: 2.5em; }
.photo-dialog .photo-stage { position: relative; height: min(70dvh,820px,max(120px,calc(94dvh - 240px))); overflow: hidden; }
.photo-dialog .photo-stage > img { display: block; height: 100%; }
.photo-previous-image { position: absolute; inset: 0; pointer-events: none; }
.photo-contact-sheet { display: flex; gap: 8px; overflow-x: auto; padding: 12px 3px 4px; margin-top: 14px; scrollbar-width: thin; }
.photo-contact-sheet button { position: relative; flex: 0 0 48px; width: 48px; height: 48px; opacity: .55; border-bottom: 2px solid transparent; padding: 0 0 5px; transition: opacity var(--motion-ink); }
.photo-contact-sheet button[aria-current="true"] { opacity: 1; border-color: var(--ve-cinnabar); }
.photo-contact-sheet button:hover, .photo-contact-sheet button:focus-visible { opacity: 1; }
.photo-contact-sheet img { width: 100%; height: 100%; object-fit: cover; }
.photo-flight { position: fixed; pointer-events: none; overflow: hidden; z-index: 3; }
.photo-flight img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
@media (max-width: 1200px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 900px) {
  .story-caption { grid-template-columns: 28px 1fr; gap: 6px 12px; margin-left: 20px; padding-left: 16px; }
  .story-turn { grid-column: 2; justify-self: start; }
  .home-page .private-journeys-preview { margin-top: 28px; }
  .home-page .private-journeys-grid > figure { margin-top: -28px; }
}
@media (max-width: 600px) {
  .photo-dialog .photo-stage { height: min(50dvh,max(120px,calc(94dvh - 230px))); }
  .photo-dialog figcaption { font-size: 13px; }
  .photo-contact-sheet { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-paper { display: none; }
  .story-mount .story-alternate, .nav-index-toggle span, .nav-index-item strong,
  .journey-preview-copy h2, .experience-card-copy h3, .photo-contact-sheet button { transition: none; }
  .journey-preview-card:hover .journey-preview-copy h2, .journey-preview-card:focus-within .journey-preview-copy h2,
  .experience-card:hover h3, .experience-card:focus-within h3, .nav-index-item.is-previewed strong { transform: none; }
  .story-mount:hover .journey-preview-media img { transform: none; }
}
