/* Home deck: map on top, sheet underneath (the Grab/Uber pattern), built phone first.
   One screen per idea; the page snaps between them and the pinned globe moves to each screen's slot. */
html:has(body.page-deck) { scroll-snap-type: y mandatory; }
.page-deck .stage.is-over { z-index: 45; } /* the globe flying into the logo passes over the cards and header */

.screen {
  position: relative; display: flex; flex-direction: column; min-height: 100svh;
  padding-top: 64px; scroll-snap-align: start; scroll-snap-stop: always;
}
.screen .globe-slot { flex: 1 1 auto; min-height: 150px; cursor: grab; }

.sheet {
  position: relative; z-index: 2; flex: none;
  padding: 26px var(--gutter) max(22px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(14, 22, 40, .86), rgba(7, 11, 21, .95));
  box-shadow: inset 0 1px 0 rgba(239, 232, 218, .09), 0 -30px 60px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.sheet::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 38px; height: 4px; border-radius: 2px; background: rgba(239, 232, 218, .18); }

/* Type sized for the sheet */
.page-deck .eyebrow { margin-bottom: 14px; }
.page-deck h1 { font-size: clamp(34px, 9.6vw, 64px); }
.page-deck h2 { font-size: clamp(27px, 7.4vw, 44px); max-width: 18ch; }
.page-deck h2 em { font-style: italic; background: linear-gradient(100deg, var(--gold-hi), var(--gold) 40%, #C98F3E); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.page-deck .lede { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
.sheet-lede { margin: 12px 0 0; color: var(--mist); font-size: 15.5px; line-height: 1.55; max-width: 34em; }

/* One main action per screen, full width on phones */
.page-deck .actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 18px; }
.sheet .btn { justify-content: center; }
.sheet > .btn--primary { display: flex; margin-top: 18px; }
.page-deck .actions .btn--quiet { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 42px; color: var(--mist); }

/* Destinations: all six in a 3 x 2 grid, so they are seen in one go. The globe tours them and the one
   it is showing lights up; tapping one turns the globe there. */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 11px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(239, 232, 218, .05); box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .14); color: var(--mist);
  transition: background .3s, box-shadow .3s, color .3s;
}
.chip b { font: 400 17px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chip small { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chip.is-live small { color: var(--gold); }
.chip.is-active { color: var(--paper); background: rgba(230, 184, 99, .1); box-shadow: inset 0 0 0 1px rgba(230, 184, 99, .55); }

/* Screens without the globe: the sheet fills the screen and carries just the content */
.screen--full .sheet { flex: 1; display: flex; flex-direction: column; margin-top: 6px; }
/* No chat demo on this screen anymore (2026-10-26): center the copy and button in the sheet. */
.screen--app .sheet { justify-content: center; }
.screen--services .sheet, .screen--end .sheet { justify-content: center; }

/* How it works: one line, then the live demo fills the screen */
.page-deck .chat {
  flex: 1; height: auto; min-height: 280px; max-width: none; margin-top: 16px; padding: 12px 12px 10px; border-radius: 20px;
  background: rgba(5, 8, 15, .5); box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .1); backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Phones: the mood chips sit in one row that scrolls sideways, so the demo fits the screen */
@media (max-width: 560px) {
  .chips { grid-template-columns: 1.3fr 1fr 1fr; } /* room for "Koh Phangan" */
  .chip { padding: 10px; }
  .chip b { font-size: 16px; }
  .page-deck .chat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .page-deck .chat-chips::-webkit-scrollbar { display: none; }
  .page-deck .chat-chips button { flex: none; }
}

/* Services: all four cards in a 2 x 2 grid; tapping one asks the concierge */
.page-deck .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.page-deck .pillars article { padding: 16px 16px 18px; border-radius: 18px; }
.page-deck .pillars h3 { margin-top: 16px; font-size: 19px; }
.page-deck .pillars p { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }

/* About us, then the company details */
.screen--end h2 { font-size: clamp(34px, 9.4vw, 56px); }
.sheet .foot { margin-top: 28px; padding: 18px 0 0; gap: 12px 20px; }
.sheet .foot-nav { margin-left: 0; flex-wrap: wrap; gap: 8px 18px; }
.sheet .foot-entity { white-space: normal; line-height: 1.6; }
/* Phones: the header already says Local Atlas, and the company details read as short lines */
@media (max-width: 560px) {
  .sheet .foot { flex-direction: column; align-items: flex-start; }
  .sheet .foot-mark { display: none; }
  .sheet .foot-entity span { display: block; height: 0; overflow: hidden; }
}

/* Short phones (iPhone SE): smaller globe area and tighter type so each screen still fits */
@media (max-height: 600px) and (max-width: 560px) {
  .screen .globe-slot { min-height: 96px; }
  .page-deck h1 { font-size: 32px; }
  .page-deck .lede, .sheet-lede { font-size: 14.5px; line-height: 1.5; }
  .sheet { padding-top: 22px; }
  .screen--app .sheet-lede { font-size: 14px; }
  .page-deck .actions { margin-top: 14px; }
  .page-deck .chat { min-height: 224px; }
  .page-deck .chat-mark { display: none; }
  .page-deck .pillars p { display: none; }
  .chip { padding: 9px 10px; }
}

/* Tablet: same layout, wider sheet */
@media (min-width: 561px) {
  .sheet { width: min(100%, 760px); align-self: center; padding: 30px 40px max(28px, env(safe-area-inset-bottom)); }
  .chips { gap: 10px; margin-top: 22px; }
  .chip { padding: 14px 16px; }
  .chip b { font-size: 20px; }
  .page-deck .actions { flex-direction: row; align-items: center; }
  .page-deck .actions .btn--quiet { box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .2); color: var(--paper); }
  .sheet > .btn--primary { display: inline-flex; align-self: flex-start; }
  .page-deck .pillars article { padding: 22px 22px 26px; }
  .page-deck .pillars h3 { font-size: 22px; margin-top: 26px; }
}

/* Laptop: the sheet becomes a panel on the left, globe on the right. Without the globe, the
   screens open up: app copy beside the live demo, services in a row. */
@media (min-width: 901px) {
  .screen { flex-direction: row-reverse; align-items: center; gap: 4vw; height: 100vh; min-height: 620px; padding: 84px var(--gutter) 40px; }
  .screen .globe-slot { align-self: stretch; min-height: 0; }
  .sheet { flex: 0 0 min(580px, 46vw); width: auto; align-self: center; border-radius: 28px; padding: 36px 38px 34px; box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .08), 0 40px 80px -30px rgba(0, 0, 0, .7); }
  .sheet::before { display: none; }
  .chips { margin-top: 24px; }
  .page-deck h1 { font-size: clamp(44px, min(4.6vw, 8.6vh), 72px); }
  .page-deck h2 { font-size: clamp(30px, min(3vw, 5.6vh), 46px); }
  .screen--full .sheet { flex: 1; align-self: stretch; margin: 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .screen--app .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 90px); }
  .page-deck .screen--app .chat { height: min(64vh, 540px); flex: none; margin: 0; padding: 14px; justify-self: end; width: 100%; max-width: 540px;
    background: linear-gradient(160deg, rgba(20, 30, 52, .82), rgba(9, 14, 26, .92)); box-shadow: inset 0 0 0 1px rgba(239, 232, 218, .08), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(230, 184, 99, .25); }
  .page-deck .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
  .page-deck .pillars article { padding: 26px 26px 30px; }
  .page-deck .pillars h3 { font-size: 24px; margin-top: clamp(18px, 4.5vh, 40px); }
  .page-deck .pillars p { font-size: 15px; }
  .screen--end .sheet { align-items: flex-start; }
  .screen--end .sheet .foot { align-self: stretch; }
}

/* Screen dots on the right edge: there is more below, and where you are */
.deck-dots { position: fixed; right: 2px; top: 50%; translate: 0 -50%; z-index: 40; display: flex; flex-direction: column; gap: 2px; }
.deck-dots button { width: 14px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.deck-dots button::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(239, 232, 218, .3); transition: background .3s, height .3s; }
.deck-dots button.is-on::after { height: 14px; border-radius: 3px; background: var(--gold); }
@media (min-width: 901px) { .deck-dots { right: 18px; } }

/* The first card lifts once and settles, the hint that the page moves on with a swipe */
@media (prefers-reduced-motion: no-preference) {
  .screen--hero .sheet { animation: sheet-nudge 1.1s cubic-bezier(.3, .7, .4, 1) 2.6s 1 both; }
}
@keyframes sheet-nudge { 0%, 100% { translate: 0 0; } 35% { translate: 0 -22px; } 65% { translate: 0 0; } 80% { translate: 0 -6px; } }
@media (min-width: 901px) { .screen--hero .sheet { animation: none; } }
