/* Separate windows sit inside the existing phone and laptop compositions. */
.living-scene {
  position: absolute;
  inset: 0 0 auto;
  height: 64%;
  overflow: hidden;
  border-radius: 7% 7% 3% 3%;
  pointer-events: none;
  contain: layout paint;
  background: #efdab3;
}
.living-scene svg, .living-scene canvas, .living-scene picture, .living-scene picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.living-scene canvas { opacity: 0; transition: opacity 600ms ease; }
.living-scene[data-ready][data-active] canvas { opacity: 1; }
.feature .living-scene {
  width: 48%;
  height: 100%;
  border-radius: 9% 5% 5% 9%;
}
.guide .living-scene { width: 42%; }
.service-copy, .feature-copy, .service > .arrow { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .living-scene canvas { opacity: 0 !important; transition: none; } }
@media (max-width: 700px) {
  /* The old poster included dock icons; the real fixed dock now supplies those. */
  .poster::after { content: ''; position: absolute; inset: 87% 0 0; background: #fcebc8; pointer-events: none; }
  .service .living-scene { height: 60%; border-radius: 8% 8% 3% 3%; }
  .chef .living-scene, .spa .living-scene { height: 55%; }
  .feature .living-scene { width: 43%; border-radius: 10% 6% 6% 10%; }
}

/* A separate paper caption keeps artwork clear of every service heading. */
.service { background: linear-gradient(135deg,#fff0ce,#fae5b9); }
.service-copy { top: calc(64% + .75cqw); bottom: auto; }
@media (max-width: 700px) {
  .service-copy { top: calc(60% + 1.6cqw); bottom: auto; }
  .chef .service-copy, .spa .service-copy { top: calc(55% + 1.6cqw); bottom: auto; }
}

/* Fit the whole illustrated spread to each bespoke frame; never crop its turning edge. */
.guide .living-scene canvas { object-fit: fill; }


/* Phone v3: natural card flow gives every painting its complete 3:2 window. */
@media (max-width: 700px) {
  .poster { aspect-ratio: auto; background-size: 100% auto; }
  .poster::after { inset: 86.9cqw 0 0; z-index: 0; }
  .site-header { height: 15.13cqw; }
  .hero { height: 88cqw; }
  .experiences {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 2cqw 1.2cqw; padding: 86.9cqw 1.1cqw 0;
  }
  .service { position: relative; inset: auto; width: auto; height: auto; overflow: hidden; }
  .service .living-scene { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3/2; }
  .service .service-copy { position: relative; inset: auto; padding: 1.6cqw 3.6cqw 3cqw; min-height: 14.5cqw; }
  .service > .arrow { bottom: 1.8cqw; }
  .discover { position: relative; z-index: 1; display: grid; gap: 2cqw; padding: 2cqw 1.4cqw 27cqw; }
  .feature { position: relative; inset: auto; width: 100%; height: 17.3cqw; border-block: 1px solid #b4b89a; }
  .chef .chef-wide { display: none; }
  .chef .chef-compact { display: block; }
}
@media (min-width: 701px) { .chef .chef-compact { display: none; } }

/* A sky-colored art edge blends with Safari's solid status-area fallback.
   Only the painting is blended; the real logo and controls remain crisp. */
@media (max-width: 700px) {
  .poster {
    --top-safe: env(safe-area-inset-top, 0px);
    background-image: linear-gradient(to bottom,#9fcbd6 0,#9fcbd6 calc(var(--top-safe) + 1px),#9fcbd6d9 calc(var(--top-safe) + 2.1cqw),#9fcbd666 calc(var(--top-safe) + 4.2cqw),#9fcbd600 calc(var(--top-safe) + 7cqw)),url('/assets/phone-art-0e68ed5ef4.webp');
    background-size: 100% calc(var(--top-safe) + 7cqw),100% auto;
    background-position: center top,center var(--top-safe);
  }
  .poster::after { top: calc(86.9cqw + var(--top-safe)); }
  .site-header, .hero { top: var(--top-safe); }
  /* Match the 2cqw row gap above the first pair of service cards. */
  .experiences { padding-top: calc(88.9cqw + var(--top-safe)); }
}

/* The lagoon needs garden and roof above its water, especially on a phone. */
@media (max-width: 700px) {
  .feature.bali { height: 25cqw; }
  .bali .feature-copy { top: 50%; transform: translateY(-50%); }
  .bali > .arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* Both invitations share exactly the same image window on each screen. */
.guide .living-scene { width: 48%; border-radius: 9% 5% 5% 9%; }
.guide .living-scene picture img { object-fit: fill; }
.guide .feature-copy { left: 51%; }
@media (min-width: 701px) {
  .feature .feature-copy { top: 50%; transform: translateY(-50%); }
  .guide h2 { font-size: 2.65cqw; transform: none; white-space: normal; line-height: 1.05; padding-right: 2.4cqw; }
  .guide p { font-size: 1.7cqw; }
}
@media (max-width: 700px) {
  .feature.guide { height: 25cqw; }
  .guide .living-scene { width: 43%; border-radius: 10% 6% 6% 10%; }
  .guide .feature-copy { left: 45.5%; top: 50%; transform: translateY(-50%); }
  .guide .feature-button .arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
}
