/* PDF page to live deck. Two layers share one layout; the live layer wipes in over the static one.
   States on .morph (set by morph.js): .is-go .is-click .is-live .is-toast. Sized in container units. */
.morph-wrap { container-type: inline-size; max-width: 880px; margin: 48px auto 0; }
.morph { position: relative; aspect-ratio: 16 / 9.4; font: 400 1.55cqi/1.35 var(--font, -apple-system, sans-serif); color: #161616; text-align: left; user-select: none; border-radius: 1.4cqi; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(0, 0, 0, .3); }
.morph i { display: block; }
.morph p { margin: 0; }

/* Step captions */
.m-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: .8cqi; margin: 0 0 2.2cqi; padding: 0; list-style: none; font-size: max(12px, 1.45cqi); color: #75756f; }
.m-steps li { display: flex; align-items: center; gap: .7cqi; padding: .6cqi 1.4cqi .6cqi .7cqi; border-radius: 99px; background: #f0f0ed; transition: background .3s, color .3s; }
.m-steps b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; color: #161616; font-size: .85em; }
.m-steps li.on { background: #161616; color: #fff; }

/* Shared layout */
.m-layer { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: inherit; background: #fff; }
.m-bar { display: flex; align-items: center; justify-content: space-between; height: 5.2cqi; padding: 0 2cqi; font-size: .85em; }
.m-slide { flex: 1; display: grid; grid-template-columns: 44% 1fr; }
.m-photo { position: relative; overflow: hidden; background: linear-gradient(#9cc8ec, #f9dcc0 70%); }
.m-sun { position: absolute; left: 62%; top: 16%; width: 9cqi; aspect-ratio: 1; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 6cqi #ffd98a; }
.m-hill { position: absolute; left: -20%; right: 10%; bottom: -30%; height: 60%; border-radius: 50%; background: #79b07e; }
.m-hill.b { left: 30%; right: -30%; bottom: -36%; background: #5f9a68; }
.m-tent { position: absolute; left: 14%; bottom: 16%; width: 56%; height: 26%; background: #fff; clip-path: polygon(0 55%, 25% 0, 50% 55%, 75% 0, 100% 55%, 100% 100%, 0 100%); }
.m-copy { display: flex; flex-direction: column; gap: 1.3cqi; padding: 3.2cqi 3.4cqi; }
.m-eye { font-size: .8em; letter-spacing: .12em; text-transform: uppercase; }
.m-h { font-size: 2.1em; line-height: 1.1; }
.m-rows { display: grid; gap: .7cqi; }
.m-rows div { display: flex; justify-content: space-between; }
.m-foot { margin-top: auto; }

/* Static: the dull PDF */
.m-static { font-family: Georgia, "Times New Roman", serif; color: #555; }
.m-static .m-bar { background: #e6e6e3; color: #777; font-family: var(--font, sans-serif); }
.m-static .m-photo { filter: grayscale(1) contrast(.7) brightness(1.1); }
.m-static .m-h { font-weight: 400; color: #333; }
.m-static .m-p { font-size: .92em; }
.m-static .m-rows { gap: 0; border-top: 1px solid #ccc; font-size: .92em; }
.m-static .m-rows div { padding: .6cqi 0; border-bottom: 1px solid #ccc; }
.m-static .m-fine, .m-static .m-foot { font-size: .78em; color: #999; }

/* Live: the same page, brought to life */
.m-live { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.6, 0, .3, 1); }
.m-live .m-bar { justify-content: center; border-bottom: 1px solid #efefec; }
.m-url { display: flex; align-items: center; gap: .8cqi; padding: .5cqi 2cqi; border-radius: 99px; background: #f3f3f1; color: #75756f; }
.m-url i { width: .9cqi; height: .9cqi; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 .4cqi #cdebd8; }
.m-live .m-photo { background: linear-gradient(#f4a582, #fbd38d 45%, #fdecc8 75%); }
.m-live .m-photo > i:not(.m-lights) { animation: m-drift 9s ease-in-out infinite alternate; }
.m-live .m-sun { animation: m-drift 9s ease-in-out infinite alternate, m-glow 3s ease-in-out infinite alternate; }
.m-lights { position: absolute; left: 10%; right: 26%; bottom: 46%; height: 3cqi; background: radial-gradient(circle, #fff6c9 30%, transparent 34%) 0 0 / 3cqi 3cqi repeat-x; border-top: 1px solid rgba(80, 60, 40, .35); border-radius: 0 0 50% 50%; animation: m-twinkle 1.6s steps(2) infinite; }
.m-live .m-eye { color: #c9763f; font-weight: 600; }
.m-live .m-h { font-weight: 700; letter-spacing: -.02em; }
.m-live .m-p { color: #6b6b66; }
.m-seasons div { padding: .9cqi 1.4cqi; border-radius: 1cqi; background: #f5f3ef; transition: background .3s, color .3s, transform .3s; }
.m-seasons div.on { background: #161616; color: #fff; transform: scale(1.02); }
.m-guests { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2cqi; font-size: .92em; }
.m-guests b { display: inline-block; min-width: 2.2em; font-variant-numeric: tabular-nums; }
.m-range { position: relative; height: .7cqi; border-radius: 99px; background: #ecece9; }
.m-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 20%); border-radius: inherit; background: linear-gradient(90deg, #e48f72, #d9a63c); }
.m-thumb { position: absolute; top: 50%; left: var(--p, 20%); width: 2.4cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.m-live .m-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1.4cqi; border-top: 1px solid #efefec; }
.m-total { color: #75756f; font-size: .9em; }
.m-price { display: block; color: #161616; font-size: 1.9em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m-cta { padding: 1cqi 2.2cqi; border-radius: 99px; background: #161616; color: #fff; font-weight: 600; font-size: .9em; animation: m-pulse 2.4s ease-in-out infinite; }

/* Wipe, button, cursor, toast */
.m-wipe { position: absolute; top: 0; bottom: 0; left: 0; width: .5cqi; background: #fff; box-shadow: 0 0 3cqi 1cqi rgba(255, 214, 140, .9); opacity: 0; pointer-events: none; }
.m-btn { position: absolute; left: 50%; top: 52%; translate: -50% -50%; padding: 1.4cqi 3cqi; border: 0; border-radius: 99px; background: #161616; color: #fff; font: 600 1.25em var(--font, sans-serif); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); opacity: 0; scale: .9; transition: opacity .4s, scale .2s; }
.m-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.m-toast { position: absolute; left: 2cqi; bottom: 2cqi; z-index: 2; display: flex; gap: 1.2cqi; align-items: center; padding: 1.2cqi 1.8cqi; border-radius: 1.4cqi; background: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .3); font-family: var(--font, sans-serif); opacity: 0; translate: 0 -1.5cqi; transition: opacity .5s, translate .5s; }
.m-toast i { width: 1.2cqi; height: 1.2cqi; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 .5cqi #cdebd8; }
.m-toast b, .m-toast small { display: block; }
.m-toast small { color: #75756f; font-size: .85em; }

/* States */
.morph.is-go .m-btn { opacity: 1; scale: 1; }
.morph.is-click .m-btn { scale: .94; }
.morph.is-click .m-btn::after { animation: m-ring .6s ease-out; }
.morph.is-live .m-live { clip-path: inset(0 0 0 0); }
.morph.is-live .m-wipe { animation: m-sweep 1.3s cubic-bezier(.6, 0, .3, 1) forwards; }
.morph.is-toast .m-toast { opacity: 1; translate: 0 0; }

@keyframes m-sweep { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes m-drift { to { transform: translateX(-3%) scale(1.04); } }
@keyframes m-glow { to { box-shadow: 0 0 9cqi 1cqi #ffd98a; } }
@keyframes m-twinkle { 50% { opacity: .55; } }
@keyframes m-pulse { 50% { box-shadow: 0 0 0 .9cqi rgba(22, 22, 22, .08); } }
@keyframes m-ring { from { box-shadow: 0 0 0 0 rgba(22, 22, 22, .35); } to { box-shadow: 0 0 0 3cqi rgba(22, 22, 22, 0); } }

@media (max-width: 640px) {
  .morph { aspect-ratio: 4 / 3; font-size: 2.5cqi; }
  .m-steps li:not(.on) { display: none; }
  .m-steps { font-size: 13px; }
  .m-slide { grid-template-columns: 36% 1fr; }
  .m-copy { gap: 1.6cqi; padding: 3cqi; }
  .m-p, .m-eye, .m-static .m-fine { display: none; }
  .m-bar { height: 8cqi; }
  .m-toast { top: 10cqi; bottom: auto; left: 1.5cqi; }
  .m-toast small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .morph *, .morph *::after { animation: none !important; transition: none !important; } }

