/* The price explode: a small website bursts into its parts as you scroll, each part labelled
   with what it is, then snaps back together just before the price. The stage stays pinned. */
.boom { position: relative; height: 280vh; }
.boom .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1800px; }

/* the words above it, swapped as you scroll */
.boom .cap { position: absolute; left: 0; right: 0; top: calc(84px + 3vh); text-align: center; z-index: 30; pointer-events: none; padding: 0 24px;
  font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.01em;
  opacity: 0; will-change: opacity, transform, filter; }
.boom .cap em { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* everything below is drawn at a fixed 1500 x 900 and scaled to fit the screen */
.boom .stage { position: absolute; left: 50%; top: 58%; width: 1500px; height: 900px; margin: -450px 0 0 -750px; transform-style: preserve-3d; }
.boom .site { position: absolute; left: 390px; top: 225px; width: 720px; height: 450px; transform-style: preserve-3d; font-family: Inter, system-ui, sans-serif; }
.boom .base { position: absolute; inset: 0; border-radius: 18px; background: #2b1d14; box-shadow: 0 50px 110px -40px rgba(27,26,46,.55); }
.boom .part { position: absolute; will-change: transform; transform-style: preserve-3d; }

/* the parts, where they sit when the site is whole */
.boom .p-lock { left: 0; top: 0; width: 720px; height: 38px; border-radius: 18px 18px 0 0; background: #1e1e24; display: flex; align-items: center; justify-content: center; }
.boom .p-lock .addr { display: flex; align-items: center; gap: 7px; width: 300px; justify-content: center; font-size: 12px; color: #c9c8d3; background: #2a2a31; border-radius: 6px; padding: 5px 10px; }
.boom .p-lock svg { width: 12px; height: 12px; color: var(--mint); }
.boom .p-nav { left: 0; top: 38px; width: 720px; height: 46px; background: #f7f1e8; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 12px; font-weight: 500; color: #2b1d14; }
.boom .p-nav b { font: 700 17px Fraunces, serif; }
.boom .p-nav b i { font-style: normal; color: #c4572f; }
.boom .p-nav u { text-decoration: none; margin-left: 16px; }
.boom .p-head { left: 22px; top: 100px; width: 354px; padding: 12px; border-radius: 14px; background: #2b1d14; color: #f7f1e8; }
.boom .p-head h4 { font: 600 38px/1.04 Fraunces, serif; margin: 0 0 12px; }
.boom .p-head p { font-size: 13px; line-height: 1.5; color: #d9c9b6; margin: 0; }
.boom .p-photo { left: 392px; top: 108px; width: 296px; height: 222px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.boom .p-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boom .p-call { left: 34px; top: 284px; height: 40px; padding: 0 20px; border-radius: 99px; background: #c4572f; color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.boom .p-call svg { width: 15px; height: 15px; }
.boom .p-chat { left: 34px; top: 338px; width: 236px; height: 44px; border-radius: 14px; background: #f7f1e8; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 6px; font-size: 12px; color: #2b1d14; }
.boom .p-chat img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.boom .p-hours { left: 0; top: 396px; width: 720px; height: 54px; border-radius: 0 0 18px 18px; background: #3a2a1f; color: #f7f1e8; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 13px; }
.boom .p-hours b { color: var(--mint); font-weight: 600; }
.boom .p-hours .pen { display: flex; align-items: center; gap: 6px; color: #d9c9b6; }
.boom .p-hours .pen svg { width: 14px; height: 14px; }
.boom .p-phone { left: 640px; top: 190px; width: 116px; height: 232px; border-radius: 22px; background: #111; padding: 7px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.boom .p-phone .scr { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: #2b1d14; color: #f7f1e8; font-size: 8px; }
.boom .p-phone .scr b { display: block; background: #f7f1e8; color: #2b1d14; font: 700 10px Fraunces, serif; padding: 9px 8px 7px; }
.boom .p-phone .scr img { width: 100%; height: 84px; object-fit: cover; display: block; }
.boom .p-phone .scr h5 { font: 600 13px/1.05 Fraunces, serif; margin: 8px 8px 6px; }
.boom .p-phone .scr i { display: block; margin: 0 8px; border-radius: 99px; background: #c4572f; text-align: center; font-style: normal; font-weight: 600; padding: 5px 0; }

/* the labels: what each part is, and that it's included */
.boom .tag { position: absolute; white-space: nowrap; padding: 10px 16px 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(27,26,46,.35); font: 600 15px/1.25 Inter, system-ui, sans-serif; color: var(--ink); opacity: 0; transform: translateZ(1px); }
.boom .tag em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 600; color: #1f9d83; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.boom .tag::before { content: ""; position: absolute; background: var(--violet); opacity: .45; }
.boom .tag::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(109,92,255,.18); }
/* label to the top, bottom, left or right of its part, joined by a short line */
.boom .t-t { left: 50%; bottom: calc(100% + 34px); translate: -50% 0; }
.boom .t-b { left: 50%; top: calc(100% + 34px); translate: -50% 0; }
.boom .t-l { right: calc(100% + 40px); top: 50%; translate: 0 -50%; }
.boom .t-r { left: calc(100% + 40px); top: 50%; translate: 0 -50%; }
.boom .t-t::before, .boom .t-b::before { left: 50%; width: 1px; height: 26px; }
.boom .t-t::before { top: 100%; } .boom .t-b::before { bottom: 100%; }
.boom .t-t::after { left: calc(50% - 4.5px); top: calc(100% + 26px); }
.boom .t-b::after { left: calc(50% - 4.5px); bottom: calc(100% + 26px); }
.boom .t-l::before, .boom .t-r::before { top: 50%; height: 1px; width: 32px; }
.boom .t-l::before { left: 100%; } .boom .t-r::before { right: 100%; }
.boom .t-l::after { top: calc(50% - 4.5px); left: calc(100% + 32px); }
.boom .t-r::after { top: calc(50% - 4.5px); right: calc(100% + 32px); }

/* the small progress pill along the bottom */
.boom .prog { position: absolute; left: 50%; bottom: 26px; width: 140px; height: 6px; margin-left: -70px; border-radius: 99px; background: rgba(27,26,46,.1); overflow: hidden; z-index: 30; }
.boom .prog i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--peach)); }

/* phones: a tall 800 x 1400 stage, hung below the words; the parts burst up and down, with bigger labels */
@media (max-width: 700px) {
  .boom .stage { width: 800px; height: 1400px; top: 190px; margin: 0 0 0 -400px; transform-origin: 50% 0; }
  .boom .site { left: 40px; top: 420px; }
  .boom .tag { font-size: 26px; padding: 16px 24px 16px 20px; border-radius: 20px; }
  .boom .tag em { font-size: 19px; }
  .boom .prog { display: none; }
}

/* reduced motion: one still picture, the site already burst open with every label showing */
@media (prefers-reduced-motion: reduce) {
  .boom { height: auto; }
  .boom .pin { position: relative; height: 100vh; min-height: 560px; }
  .boom .cap.mid { opacity: 1; }
  .boom .tag { opacity: 1; }
  .boom .prog { display: none; }
}
