/* Projected light across the existing photographic composition. */
.hero { --px: 0px; --py: 0px; --travel: 0px; --turn: 0deg; }
.horizon { position: absolute; pointer-events: none; z-index: -2; inset: 0; overflow: hidden;
  mask-image: linear-gradient(transparent 16%, #0009 44%, #000 87%, transparent); }
.horizon::before { content: ""; position: absolute; inset: 20% -20% -50%;
  background: radial-gradient(ellipse at 43% 74%, #38cab026, transparent 53%);
  transform: translate3d(var(--px), var(--py), 0); }
.horizon i { display: block; position: absolute; left: -19%; bottom: -45%; width: 138%; height: 90%;
  border-radius: 50%; border: 1px solid transparent; border-top-color: #b9edda44; border-left-color: #99dcd32b;
  transform: translateY(calc(var(--travel) * -.32)) rotate(calc(-12deg + var(--turn))); }
.horizon i:nth-child(2) { bottom: -54%; border-top-color: #a2d9cf30; transform: rotate(8deg); }
.horizon i:nth-child(3) { left: 13%; width: 80%; height: 105%; bottom: -82%; border-top-color: #b7d2ae38; }
.frames { perspective: 1050px; }
.frames img { --depth: 1; --tilt: -1deg; --from: 18px; --wait: 0ms;
  box-shadow: 0 22px 65px -28px #040b16ab, 0 1px 1px #fcffff44 inset;
  transform: translate3d(calc(var(--px) * var(--depth)), calc((var(--py) + var(--travel)) * var(--depth)), 0)
    rotateY(calc(var(--turn) * var(--depth))) rotateZ(var(--tilt)); }
.frames .frame-shop { --depth: .65; --wait: 40ms; }
.frames .frame-loft { --depth: 1.15; --tilt: -2.5deg; --from: -18px; }
.frames .frame-cafe { --depth: .85; --tilt: 2deg; --wait: 90ms; }
.frames .frame-food { --depth: 1.35; --tilt: 1deg; --wait: 130ms; }
.frames .frame-book { --depth: 1.05; --tilt: -1.6deg; --wait: 170ms; }
.hero .demo, .hero .btn { transition: translate .22s ease, background-color .2s, box-shadow .2s; }
.hero .demo:hover, .hero .btn:hover { translate: 0 -2px; }
.hero .btn-primary:hover { box-shadow: 0 8px 30px #0097ff45; }
.hero .demo:active, .hero .btn:active { translate: 0 1px; }
@media (prefers-reduced-motion: no-preference) {
  .frames img { animation: frame-arrival 980ms cubic-bezier(.16,.8,.24,1) var(--wait) both; }
  @keyframes frame-arrival { from { opacity: .24; translate: var(--from) 32px; scale: .95; } to { opacity: 1; translate: 0 0; scale: 1; } }
  .arrive { animation: surface-arrival 650ms cubic-bezier(.2,.8,.22,1) var(--delay,0ms) backwards; }
  @keyframes surface-arrival { from { opacity: .3; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}
#experience { scroll-margin-top: 76px; }
.tour-demo { color: white; padding-block: clamp(44px, 6vw, 84px); }
.notebook .shell { aspect-ratio: 1040 / 643; }
.tour-window {
  /* Screen opening in the 1040 × 643 notebook photograph. */
  position: absolute;
  inset: 1.1% 10.1% 14.62%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.4% 1.4% 0 0;
  background: #172027;
}
.tour-poster, .tour-frame, .tour-start {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0;
}
.tour-window .tour-poster { z-index: 1; height: 100%; object-fit: cover; pointer-events: none; }
.tour-frame { background: #172027; }
.tour-window.is-live .tour-poster { display: none; }
.tour-start {
  z-index: 2;
  display: grid; align-items: end; justify-items: center; padding-bottom: clamp(18px, 3.5vw, 42px);
  color: #fff; text-decoration: none;
  background: linear-gradient(0deg, #0b141b80, transparent 37%);
}
.tour-start[hidden], .tour-close[hidden] { display: none; }
.tour-start:focus-visible { outline-offset: -4px; }
.tour-start span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border: 1px solid #ffffff69; border-radius: 999px; background: #121c24db;
  box-shadow: 0 3px 15px #0003; color: white; font-weight: 650; font-size: 15px;
}
.tour-start:hover span, .tour-start:focus-visible span { background: #112431; border-color: #fff; }
.tour-caption, .tour-status { width: min(79.8%, 838px); margin-inline: auto; }
.tour-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #edf4f5; }
.tour-caption strong { font-weight: 600; }
.tour-actions { display: flex; align-items: center; gap: 14px; }
.tour-actions :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; color: #d4eeff; font: inherit; font-size: 14px; }
.tour-actions a { text-underline-offset: 4px; }
.tour-close { padding: 0; border: 0; background: transparent; cursor: pointer; }
.tour-status { color: #e0e9ed; font-size: 14px; }
@media(max-width:719px) {
  #experience { scroll-margin-top: 70px; }
  .tour-demo { padding: 12px 16px 40px; border-radius: 0; background: transparent; }
  .notebook .shell { display: none; }
  .tour-window {
    position: relative; inset: auto; width: 100%; height: clamp(320px, 64svh, 460px);
    border: 1px solid #c6e1dc50; border-radius: 18px; box-shadow: 0 14px 38px #08141a3b;
  }
  .tour-caption, .tour-status { width: 100%; }
  .tour-caption { margin-top: 8px; font-size: 14px; }
  .tour-actions { gap: 10px; }
  .tour-actions :is(a,button) { font-size: 13px; }
  .frames img { --travel: clamp(-18px, var(--mobile-travel,0px), 0px); }
}
@media(orientation: landscape) and (max-height: 500px) {
  .tour-demo { padding-block: 16px; }
  .tour-demo .notebook { max-width: min(100%, 125svh); }
  .tour-window { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .frames img, .horizon i, .horizon::before { transform: none; }
  .hero .demo:hover, .hero .btn:hover { translate: none; }
}

/* A single glint travels the horizon on arrival. Its gradient tails off
   before the photographs settle, leaving the room previews in focus. */
@media (prefers-reduced-motion: no-preference) {
  .horizon::after { content: ""; position: absolute; left: -19%; bottom: -45%; width: 138%; height: 90%;
    border-radius: 50%; padding: 1.5px; opacity: 0; transform: rotate(-12deg);
    background: conic-gradient(from -70deg, transparent 0deg 28deg, #8cf6db33 41deg, #d2fff4dc 54deg, transparent 57deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    animation: horizon-light 2.4s cubic-bezier(.18,.65,.32,1) .12s 1; }
  @keyframes horizon-light {
    0% { opacity: 0; rotate: -12deg; }
    26% { opacity: 1; }
    78% { opacity: .8; }
    100% { opacity: 0; rotate: 12deg; }
  }
}
@media(max-width:719px) {
  .hero .frames { mask-image: radial-gradient(ellipse 28% 18% at 50% 44%, transparent 4%, #0008 65%, #000 120%); }
}
