/* Home: live 3D warehouse showcase. Uses the quiet-luxury tokens from theme.css. */
.live-warehouse { padding: clamp(80px, 9vw, 130px) 9vw; background: #F4EFE8; color: #2A2623; }
.lw-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px 60px; align-items: end; margin-bottom: 42px; }
.lw-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 12px/1 Jost, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #6E5238; }
.lw-kicker span { width: 6px; height: 6px; border-radius: 50%; background: #8B6B4E; animation: lw-blink 2s infinite; }
.live-warehouse h2 em { color: #8B6B4E; }
.lw-intro p { margin: 0 0 22px; color: #6E6358; font-size: 16px; line-height: 1.7; }
.lw-enquire { display: inline-flex; align-items: center; gap: 16px; padding: 15px 22px; border: 1px solid #2A2623; background: #2A2623; color: #F4EFE8; font: 500 13px Jost, sans-serif; letter-spacing: .04em; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.lw-enquire:hover { background: #8B6B4E; border-color: #8B6B4E; transform: translateY(-2px); }

.lw-stage {
  position: relative; height: clamp(520px, 74vh, 760px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 35%, #FBF8F3 0%, #F1EBE2 55%, #E5DCD0 100%);
  border: 1px solid #DED5C9; box-shadow: 0 40px 80px -50px rgba(42, 38, 35, .45);
}
.lw-canvas { position: absolute; inset: 0; cursor: grab; }
.lw-canvas:active { cursor: grabbing; }
.lw-stage.is-pointing .lw-canvas { cursor: pointer; }
.lw-canvas canvas { display: block; width: 100%; height: 100%; }
.lw-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lw-wire path { fill: none; stroke: #8B6B4E; stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; animation: lw-march 1.1s linear infinite; }
.lw-dot { fill: #8B6B4E; stroke: #FAF7F2; stroke-width: 2; }
.lw-ping { fill: none; stroke: #8B6B4E; transform-box: fill-box; transform-origin: center; animation: lw-ping 1.8s ease-out infinite; }

.lw-status, .lw-note, .lw-hint { position: absolute; margin: 0; padding: 7px 13px; border-radius: 999px; font: 500 11px/1 Jost, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: rgba(250, 247, 242, .82); border: 1px solid rgba(42, 38, 35, .07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
.lw-status { left: 20px; top: 20px; color: #2A2623; display: flex; align-items: center; gap: 8px; }
.lw-status span { width: 6px; height: 6px; border-radius: 50%; background: #8B6B4E; animation: lw-blink 1.6s infinite; }
.lw-note { right: 20px; top: 20px; color: #6E6358; }
.lw-hint { left: 50%; bottom: 20px; transform: translateX(-50%); color: #6E6358; letter-spacing: .08em; text-transform: none; font-size: 12px; }
.lw-loading { position: absolute; inset: 0; display: none; place-items: center; margin: 0; color: #6E6358; font: 500 12px Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.lw-stage.is-loading .lw-loading { display: grid; }

.lw-card {
  position: absolute; left: 0; top: 0; width: 236px; padding: 14px 16px 15px;
  border-radius: 18px; background: rgba(250, 247, 242, .94); border: 1px solid rgba(42, 38, 35, .07);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -24px rgba(42, 38, 35, .4), 0 2px 6px rgba(42, 38, 35, .05);
  will-change: transform; animation: lw-in .4s cubic-bezier(.16, 1, .3, 1);
}
.lw-card[hidden] { display: none; }
.lw-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lw-card h3 { margin: 0; font: 600 15px/1.2 Jost, sans-serif; letter-spacing: 0; }
.lw-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #EFE7DC; }
.lw-icon svg { width: 17px; height: 17px; fill: none; stroke: #8B6B4E; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lw-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 500 11px Jost, sans-serif; letter-spacing: .12em; color: #6E5238; }
.lw-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8B6B4E; animation: lw-blink 1.6s infinite; }
.lw-card dl { margin: 0; display: grid; gap: 6px; }
.lw-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.lw-card dt { color: #6E6358; font-size: 13px; }
.lw-card dd { margin: 0; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-card dd.is-alert { color: #8B6B4E; }
.lw-label { position: absolute; left: 0; top: 0; padding: 4px 9px; border-radius: 6px; background: #2A2623; color: #F4EFE8; font: 500 11.5px Jost, sans-serif; letter-spacing: .02em; pointer-events: none; white-space: nowrap; }
.lw-label[hidden] { display: none; }
.lw-canvas:focus-visible { outline: 2px solid #8B6B4E; outline-offset: -6px; border-radius: 28px; }
.lw-pause { position: absolute; right: 20px; bottom: 16px; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(42, 38, 35, .12); border-radius: 999px; background: rgba(250, 247, 242, .9); color: #2A2623; font: 500 12px Jost, sans-serif; letter-spacing: .06em; cursor: pointer; }
.lw-pause:hover { border-color: #2A2623; }
.lw-pause:focus-visible { outline: 2px solid #8B6B4E; outline-offset: 2px; }
.lw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes lw-blink { 50% { opacity: .35; } }
@keyframes lw-march { to { stroke-dashoffset: -14; } }
@keyframes lw-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes lw-in { from { opacity: 0; } }

@media (max-width: 860px) {
  .live-warehouse { padding: 72px 6vw; }
  .lw-head { grid-template-columns: 1fr; }
  .lw-stage { height: clamp(460px, 70svh, 560px); border-radius: 20px; }
  .lw-note { display: none; }
  .lw-hint { bottom: auto; top: 56px; left: 16px; transform: none; font-size: 11px; }
  .lw-status { left: 16px; top: 16px; }
  .lw-card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none !important; }
  .lw-pause { top: 12px; right: 12px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .lw-kicker span, .lw-status span, .lw-live::before, .lw-wire path, .lw-ping, .lw-card { animation: none; }
}
