/* Master Build — scroll film above the 360 tour (js/fly.js) */
.fly { position: relative; background: var(--palm-deep); color: #fff; --focus: var(--gold); }
.fly-track { position: relative; height: 900vh; }
.fly-stage { position: sticky; top: var(--fly-top, 0px); height: calc(100vh - var(--fly-top, 0px)); height: calc(100svh - var(--fly-top, 0px)); overflow: hidden; }
.fly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--palm-deep); }
.fly-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,36,.15), rgba(15,43,36,.85)); opacity: 0; pointer-events: none; }
.fly-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,43,36,.55) 0, rgba(15,43,36,0) 22%, rgba(15,43,36,0) 62%, rgba(15,43,36,.7) 100%); }

.fly-skip { position: absolute; z-index: 9; top: 1rem; right: 1rem; font: 600 .8125rem/1 var(--font); color: #fff; background: rgba(15,43,36,.55);
  padding: .6rem .85rem; border-radius: 999px; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
.fly-skip:hover { background: rgba(15,43,36,.8); }
.fly-kicker { position: absolute; z-index: 3; top: 1.15rem; left: clamp(1rem, 4vw, 3rem); font: 600 .8125rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 0; }
.fly-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.fly-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Corner statements: letters slide in from a blur, the block leaves to the left */
.fly-s { position: absolute; z-index: 4; left: clamp(1rem, 4vw, 3rem); bottom: clamp(2.5rem, 9vh, 6rem); max-width: 34rem; visibility: hidden;
  --in: 0; --out: 0; transform: translateX(calc(var(--out) * -2.5rem)); filter: blur(calc(var(--out) * .75rem)); opacity: calc(1 - var(--out)); }
.fly-s.on { visibility: visible; }
.fly-s--r { left: auto; right: clamp(1rem, 4vw, 3rem); text-align: right; }
.fly-s--t { bottom: auto; top: clamp(3.5rem, 12vh, 7rem); }
.fly-big { margin: 0; font: 700 clamp(2.6rem, 7.4vw, 6.4rem)/.9 var(--display); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.fly-big [data-l] { display: block; }
.fly-big .hl { color: var(--accent); }
.fly-big i { font-style: normal; display: inline-block;
  --d: clamp(0, calc(var(--in) * 2.2 - var(--k) * .07), 1);
  opacity: var(--d); transform: translateY(calc((1 - var(--d)) * .35em)); filter: blur(calc((1 - var(--d)) * 12px)); }
.fly-s p { margin: 1rem 0 0; font: 400 clamp(1rem, 1.35vw, 1.15rem)/1.5 var(--font); color: #e8f1ec; max-width: 28rem; opacity: clamp(0, calc(var(--in) * 2 - 1), 1); text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.fly-s--r p { margin-left: auto; }

/* Echo: one line, repeated in outline behind itself */
.fly-echo { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; --t: 0; }
.fly-echo p { margin: 0; font: 700 clamp(2.4rem, 8vw, 7.5rem)/.95 var(--display); letter-spacing: -.02em; }
.fly-echo .o { position: absolute; left: 0; right: 0; color: transparent; -webkit-text-stroke: 1px rgba(207,227,214,.55); }
.fly-echo .o1 { transform: translateY(calc(-1.05em - var(--t) * .5em)); opacity: .7; }
.fly-echo .o2 { transform: translateY(calc(-2.1em - var(--t) * 1em)); opacity: .35; }
.fly-echo .o3 { transform: translateY(calc(1.05em + var(--t) * .5em)); opacity: .7; }
.fly-echo .o4 { transform: translateY(calc(2.1em + var(--t) * 1em)); opacity: .35; }
.fly-echo .m { position: relative; }
.fly-echo .m b { color: var(--accent); font-weight: inherit; }

/* Frosted showroom panel + stats drum */
.fly-details { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(60rem, calc(100% - 2rem)); margin: 0; translate: -50% -50%;
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: 16px; opacity: 0; visibility: hidden;
  background: rgba(15,43,36,.42); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.fly-details.on { visibility: visible; }
.fly-details img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.fly-details h3 { margin: 0 0 .5rem; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--display); }
.fly-details p { margin: 0 0 .9rem; color: #e8f1ec; font-size: 1rem; line-height: 1.5; }
.fly-addr { font-size: .9rem !important; color: var(--mint) !important; }
.fly-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.1rem 0; padding: 1rem 0; border-block: 1px solid rgba(255,255,255,.18); list-style: none; }
.fly-stats li { display: flex; flex-direction: column; gap: .2rem; }
.fly-stats strong { font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.fly-stats span { font-size: .8125rem; color: var(--mint); line-height: 1.3; }
.fly-details .btn { margin-right: .5rem; }

/* Star warp into the showreel */
.fly-star { position: absolute; z-index: 6; left: 50%; top: 50%; width: 22vmax; height: 22vmax; opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.04); }
.fly-star svg { width: 100%; height: 100%; display: block; fill: var(--accent); }
.fly-reel { position: absolute; z-index: 7; inset: 0; overflow: hidden; background: var(--palm-deep); visibility: hidden; clip-path: inset(50%); }
.fly-reel video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%; }
.fly-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,36,0) 45%, rgba(15,43,36,.85)); pointer-events: none; }
.fly-end { position: absolute; z-index: 8; left: clamp(1rem, 4vw, 3rem); right: clamp(1rem, 4vw, 3rem); bottom: clamp(2rem, 8vh, 5rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem;
  opacity: 0; transform: translateY(1.5rem); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); visibility: hidden; }
.fly-end.on { opacity: 1; transform: none; visibility: visible; }
.fly-end h3 { margin: 0; font: 700 clamp(2.4rem, 6.5vw, 5.5rem)/.92 var(--display); letter-spacing: -.02em; }
.fly-end h3 span { color: var(--accent); }
.fly-end p { margin: .6rem 0 0; color: #e8f1ec; max-width: 30rem; }

@media (max-width: 760px) {
  .fly-track { height: 760vh; }
  .fly-details { grid-template-columns: 1fr; max-height: calc(100svh - 2rem); overflow: auto; }
  .fly-details img { aspect-ratio: 16 / 9; max-height: 22vh; }
  .fly-skip { top: .75rem; right: .75rem; }
  .fly-kicker { top: .95rem; max-width: 55%; line-height: 1.3; }
}

/* Reduced motion: no pinning, no scrubbing — a still frame, the words, and the reel with controls */
.fly--static .fly-track { height: auto; }
.fly--static .fly-stage { position: relative; height: auto; display: grid; gap: 2rem; padding: 4rem clamp(1rem, 4vw, 3rem); }
.fly--static .fly-canvas { position: relative; height: 56vw; max-height: 70vh; border-radius: 10px; }
.fly--static .fly-stage::after, .fly--static .fly-shade, .fly--static .fly-star, .fly--static .fly-bar, .fly--static .fly-skip, .fly--static .fly-echo { display: none; }
.fly--static .fly-s, .fly--static .fly-details, .fly--static .fly-reel, .fly--static .fly-end { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; translate: none;
  visibility: visible; opacity: 1; transform: none; filter: none; clip-path: none; text-align: left; --in: 1; --out: 0; width: auto; }
.fly--static .fly-s p { margin-left: 0; }
.fly--static .fly-reel { aspect-ratio: 16 / 9; border-radius: 10px; }
.fly--static .fly-reel video { transform: none; }
.fly--static .fly-kicker { position: static; }
