/* ===== Scroll scenes: building, WhatsApp, work-order journey ===== */
.scene { position: relative; height: var(--len, 300vh); z-index: 2; }
.scene-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.sand { color: var(--lime); font-weight: 600; }

/* ---------- Building ---------- */
.scene-building .scene-sticky { grid-template-columns: 1fr 1.15fr; gap: 40px; }
.scene-copy h2 { margin-bottom: 18px; }
.scene-copy p { max-width: 430px; }
.b-stats { display: flex; gap: 34px; margin-top: 36px; }
.b-stats div { display: flex; flex-direction: column; gap: 4px; }
.b-stats b { font: 600 44px/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.b-stats span { color: var(--muted); }
.b-stats .hot b { color: #f0a27f; }
.tower-wrap { position: relative; height: min(78vh, 620px); }
#tower { width: 100%; height: 100%; overflow: visible; }
.floor { transition: none; will-change: transform, opacity; }
.floor .top { fill: rgba(214, 178, 106, 0.10); stroke: rgba(236, 217, 176, 0.75); stroke-width: 1.1; }
.floor .left { fill: #0c4d44; stroke: rgba(236, 217, 176, 0.35); stroke-width: 1; }
.floor .right { fill: #08362f; stroke: rgba(236, 217, 176, 0.35); stroke-width: 1; }
.floor .win { stroke: rgba(236, 217, 176, 0.5); stroke-width: 1.4; stroke-linecap: round; }
.floor .win.lit { stroke: #f3e2bd; filter: drop-shadow(0 0 3px rgba(243, 226, 189, 0.9)); }
.roof .top { fill: rgba(214, 178, 106, 0.22); }
.ground { fill: none; stroke: rgba(214, 178, 106, 0.25); stroke-dasharray: 3 6; }
.pin { opacity: 0; transform: translateY(-10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.pin.on { opacity: 1; transform: none; }
.pin .dot { fill: #f0a27f; }
.pin .halo { fill: none; stroke: #f0a27f; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }
.pin line { stroke: rgba(240, 162, 127, 0.7); stroke-width: 1; stroke-dasharray: 3 3; }
.pin rect { fill: rgba(10, 18, 16, 0.92); stroke: rgba(240, 162, 127, 0.5); }
.pin text { fill: var(--text); font: 500 13px var(--sans); }
.pin text.sub { fill: var(--muted); font-size: 11px; }
@keyframes halo { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* ---------- WhatsApp chat ---------- */
.scene-chat .scene-sticky { grid-template-columns: 1fr auto; gap: 70px; }
.chat-copy { position: relative; min-height: 300px; }
.steps-bar { display: flex; gap: 8px; margin-bottom: 30px; max-width: 260px; }
.steps-bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.steps-bar i::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--f, 0)); transform-origin: right; }
.step { position: absolute; inset: 40px 0 auto 0; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1), filter 0.6s ease; pointer-events: none; }
.step.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step h2 { margin: 10px 0 16px; }
.step p { max-width: 440px; font-size: 17px; }

.phone {
  position: relative; width: 330px; height: min(680px, 86vh); border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2a2f2d, #0d1110 40%, #1a1f1d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 90px rgba(47, 165, 143, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 36px; background: #0b1412; z-index: 0; }
.phone > * { position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 52px 18px 12px; background: #0f2420; border-radius: 34px 34px 0 0; }
.wa-head b { display: block; font-size: 14px; font-weight: 600; }
.wa-head small { color: #8fd3c1; font-size: 11.5px; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 6px; flex: none; }
.wa-avatar img { width: 100%; height: 100%; display: block; }
.wa-body {
  flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px;
  background: #0b1412 radial-gradient(rgba(214, 178, 106, 0.05) 1px, transparent 1px) 0 0 / 18px 18px;
  scroll-behavior: smooth;
}
.wa-day { align-self: center; font-size: 11px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.msg-w {
  max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 13.5px; line-height: 1.7;
  display: none; animation: pop 0.45s cubic-bezier(.2, 1.2, .3, 1) both;
}
.msg-w.on, .wa-sys.on { display: block; }
.msg-w.in { align-self: flex-start; background: #1b2a27; border-top-right-radius: 4px; }
.msg-w.out { align-self: flex-end; background: #0f5a4e; border-top-left-radius: 4px; }
.msg-w.typing { padding: 12px 14px; }
.msg-w.typing.on { display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
.voice-note { display: flex; align-items: center; gap: 10px; width: 190px; }
.vn-play { width: 0; height: 0; border-right: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vn-wave { flex: 1; height: 22px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 2px, transparent 2px 5px); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8 L4 3 L8 12 L12 5 L16 15 L20 2 L24 11 L28 6 L32 17 L36 4 L40 10 L44 1 L48 14 L52 6 L56 12 L60 3 L64 16 L68 7 L72 11 L76 4 L80 13 L84 6 L88 10 L92 5 L96 12 L100 8 V20 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8 L4 3 L8 12 L12 5 L16 15 L20 2 L24 11 L28 6 L32 17 L36 4 L40 10 L44 1 L48 14 L52 6 L56 12 L60 3 L64 16 L68 7 L72 11 L76 4 L80 13 L84 6 L88 10 L92 5 L96 12 L100 8 V20 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.voice-note small { color: #bfe3d9; }
.wa-photo { position: relative; width: 220px; border-radius: 10px; overflow: hidden; margin: -3px -6px; }
.wa-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ph-tag { position: absolute; bottom: 8px; right: 8px; padding: 2px 9px; border-radius: 6px; background: var(--lime); color: #0b0d06; font-size: 11.5px; font-weight: 600; }
.wo-chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(214, 178, 106, 0.1); border-right: 3px solid var(--lime); }
.wo-chip span { color: var(--lime); font-size: 11px; }
.wo-chip small { color: var(--muted); }
.wa-sys { display: none; align-self: center; font-size: 11.5px; padding: 4px 12px; border-radius: 8px; background: rgba(214, 178, 106, 0.12); color: #ecd9b0; animation: pop 0.45s ease both; }
.wa-sys.done { background: rgba(47, 165, 143, 0.18); color: #8fd3c1; }
.stars { color: var(--lime); letter-spacing: 3px; margin-top: 2px; }
.wa-input { display: flex; align-items: center; gap: 10px; margin: 8px 6px 6px; }
.wa-input span { flex: 1; padding: 9px 16px; border-radius: 22px; background: #16211f; color: var(--muted); font-size: 13px; }
.wa-input i { width: 38px; height: 38px; border-radius: 50%; background: #0f5a4e; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* ---------- Work-order journey ---------- */
.scene-journey .scene-sticky { align-content: center; gap: 70px; grid-template-rows: auto auto; }
.j-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.j-clock { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.j-clock b { font: 600 64px/1 var(--sans); color: var(--lime); font-variant-numeric: tabular-nums; direction: ltr; }
.j-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 190px; }
.j-line { position: absolute; top: 172px; right: 10%; left: 10%; height: 2px; background: rgba(255, 255, 255, 0.1); }
.j-line i { position: absolute; inset: 0; background: linear-gradient(270deg, var(--teal), var(--lime)); transform-origin: right; transform: scaleX(var(--f, 0)); box-shadow: 0 0 14px rgba(214, 178, 106, 0.6); }
.j-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); position: relative; transition: color 0.4s; }
.j-stage::before { content: ""; position: absolute; top: -24px; width: 12px; height: 12px; border-radius: 50%; background: #1b2422; border: 2px solid rgba(255, 255, 255, 0.18); transition: all 0.4s; }
.j-stage b { font-weight: 500; font-size: 15px; }
.j-stage.on { color: var(--text); }
.j-stage.on::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px rgba(214, 178, 106, 0.15), 0 0 18px rgba(214, 178, 106, 0.7); }
.j-card {
  position: absolute; top: 0; right: 0; width: 250px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(var(--x, 0)); will-change: transform;
  border-color: rgba(214, 178, 106, 0.35); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(214, 178, 106, 0.12);
}
.j-card-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 6px; }
.j-status { padding: 1px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text); transition: background 0.3s, color 0.3s; }
.j-status.hot { background: #e07a4f; color: #fff; }
.j-status.go { background: var(--lime); color: #0b0d06; }
.j-status.done { background: var(--teal); color: #fff; }
.j-who { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: #ecd9b0; }

/* ---------- Polish: hero words, card spotlight, magnetic button ---------- */
.hero h1 .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.35em); animation: wordIn 0.9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
@keyframes wordIn { to { opacity: 1; filter: none; transform: none; } }
.card { --mx: 50%; --my: 50%; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(214, 178, 106, 0.10), transparent 60%);
}
.card:hover::after { opacity: 1; }
.feat, .big, .plan, .heat, .ring-card { position: relative; }
.btn-lime { transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .scene-sticky { position: relative; height: auto; padding: 100px 0; }
  .msg-w, .wa-sys { display: block; }
  .msg-w.typing { display: none; }
  .step { position: relative; inset: auto; opacity: 1; transform: none; filter: none; margin-bottom: 30px; }
  .hero h1 .w { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 960px) {
  .scene-building .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 10px; padding: 70px 0 20px; }
  .scene-building h2 { font-size: 32px; margin-bottom: 8px; }
  .scene-building .scene-copy p { font-size: 14px; }
  .b-stats { margin-top: 14px; gap: 24px; }
  .b-stats b { font-size: 30px; }
  .tower-wrap { height: 46vh; }
  .scene-chat .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; gap: 12px; padding: 66px 0 14px; }
  .chat-copy { width: 100%; min-height: 150px; }
  .steps-bar { margin-bottom: 10px; }
  .step { inset: 16px 0 auto 0; }
  .step h2 { font-size: 26px; margin: 4px 0 6px; }
  .step p { display: none; }
  .chat-copy { min-height: 96px; }
  .wa-head { padding: 40px 14px 10px; }
  .wa-head b { font-size: 13px; }
  .wa-avatar { width: 30px; height: 30px; padding: 5px; }
  .phone { width: min(300px, 82vw); height: auto; min-height: 0; align-self: stretch; border-radius: 36px; }
  .phone::before { border-radius: 28px; }
  .wa-head { padding-top: 46px; border-radius: 28px 28px 0 0; }
  .j-head { flex-direction: column; align-items: flex-start; }
  .j-clock b { font-size: 44px; }
  .scene-journey .scene-sticky { gap: 30px; }
}
@media (max-width: 600px) {
  .scene-journey h2 { font-size: 26px; }
  .j-clock b { font-size: 36px; }
  .j-track { grid-template-columns: 1fr; padding-top: 0; padding-right: 160px; gap: 26px; }
  .j-line { top: 6px; bottom: 6px; right: 140px; left: auto; width: 2px; height: auto; }
  .j-line i { transform-origin: top; transform: scaleY(var(--f, 0)); }
  .j-stage { align-items: flex-start; text-align: right; flex-direction: row; gap: 10px; }
  .j-stage::before { top: 5px; right: -26px; }
  .j-stage b { font-size: 14px; }
  .j-card { width: 124px; padding: 10px 12px; transform: translateY(var(--y, 0)); font-size: 12.5px; }
  .j-card-top { flex-direction: column; gap: 4px; }
  .j-card small { font-size: 11px; }
}
