/* Miles Hustler Store (21) · V17: entrance hero, shop map, video gallery, moving product cards, conversion details.
   Tokens: --gold (#d4af37), shining gold #FFD700, black #0A0A0A, urgency red #FF3B30. Motion respects prefers-reduced-motion. */
:root { --shine: #FFD700; --urgent: #FF3B30; --plyr-color-main: #FFD700; --plyr-video-control-color: #f4efe4; }

/* ---------- entrance hero (home, about, contact, shop-entrance) ---------- */
.ent-hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: flex-end; background: #0A0A0A; isolation: isolate; }
.ent-about, .ent-contact, .ent-entrance { min-height: min(70vh, 620px); }
.ent-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: ent-drift 22s ease-in-out infinite alternate; }
@keyframes ent-drift { to { transform: scale(1.12) translateY(-2%); } }
.ent-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0A0A0A 4%, rgba(10,10,10,.72) 38%, rgba(10,10,10,.25) 70%, rgba(10,10,10,.55) 100%); }
.ent-inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 10px; }
.ent-title { font-family: var(--display); font-size: clamp(34px, 7vw, 72px); line-height: 1.02; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.ent-address { display: inline-flex; gap: 6px; align-items: center; color: var(--champagne); margin: 0; font-size: 15px; }
.ent-address svg { width: 18px; height: 18px; flex: none; }
.ent-actions { margin-top: 10px; }
.ent-hero .home-slogan { font-family: var(--serif); font-size: clamp(18px, 2.6vw, 24px); margin: 0; }

/* gold logo with a tiny shining ball that pulses */
.logo-ball { position: relative; display: inline-block; width: max-content; margin-bottom: 4px; }
.logo-ball img { height: 120px; width: auto; filter: drop-shadow(0 0 18px rgba(255,215,0,.45)); }
.logo-ball i { position: absolute; top: 6px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--shine) 45%, #b8860b 80%);
  box-shadow: 0 0 10px 3px rgba(255,215,0,.75); animation: ball-pulse 2.2s ease-in-out infinite; }
@keyframes ball-pulse { 0%, 100% { transform: scale(.85); box-shadow: 0 0 6px 2px rgba(255,215,0,.5); } 50% { transform: scale(1.2); box-shadow: 0 0 18px 7px rgba(255,215,0,.85); } }
@media (max-width: 599px) { .logo-ball img { height: 84px; } }
/* brand logo in the header gets the same tiny light */
.brand { position: relative; }
.brand::after { content: ''; position: absolute; left: 44px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--shine); box-shadow: 0 0 8px 2px rgba(255,215,0,.7); animation: ball-pulse 2.6s ease-in-out infinite; pointer-events: none; }
@media (max-width: 899px) { .brand::after { left: 32px; } }

/* ---------- visit / split sections ---------- */
.ent-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .ent-split { grid-template-columns: 1.1fr .9fr; } }
.ent-steps { padding-left: 1.2em; line-height: 1.7; }
.ent-side-video, .home-visit-photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(212,175,55,.35); box-shadow: 0 20px 60px rgba(0,0,0,.5); display: block; }
.ba { position: relative; margin: 0; max-width: 480px; justify-self: center; width: 100%; }
.ba > img, .ba-before img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.ba-before { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; border-radius: 20px 0 0 20px; border-right: 3px solid var(--shine); }
.ba-before img { width: auto; height: 100%; max-width: none; aspect-ratio: auto; }
.ba input { position: absolute; left: 0; right: 0; bottom: 14px; width: 90%; margin: 0 auto; }

/* ---------- map ---------- */
.map-card { border: 1px solid rgba(212,175,55,.3); border-radius: 20px; padding: 12px; background: var(--panel); }
.map-canvas, .map-frame { width: 100%; border-radius: 14px; border: 0; background: #1c1913; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.mh-pin { position: relative; }
.mh-pin-ball { position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--shine) 50%, #b8860b); box-shadow: 0 0 10px 3px rgba(255,215,0,.8); }
.mh-pin-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--shine); animation: pin-ring 1.8s ease-out infinite; }
@keyframes pin-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #15120c; color: var(--ivory); border: 1px solid rgba(212,175,55,.5); }
.leaflet-popup-content p { margin: 4px 0; } .leaflet-popup-content a { color: var(--gold); }
.leaflet-container { font-family: var(--font); }

/* ---------- video gallery + lightbox ---------- */
.vg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.vg-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
@media (min-width: 900px) { .vg-grid { grid-template-columns: repeat(4, 1fr); } }
.vg-item[hidden] { display: none; }
.vg-card { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; color: var(--ivory); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.vg-card img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; display: block; transition: transform .6s ease; }
.vg-card:hover, .vg-card:focus-visible { transform: scale(1.04); border-color: var(--shine); box-shadow: 0 12px 34px rgba(255,215,0,.18); }
.vg-card:hover img { transform: scale(1.08); }
.vg-play { position: absolute; left: 50%; top: 45%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(10,10,10,.55); border: 2px solid var(--shine); animation: play-pulse 2.4s ease-in-out infinite; }
.vg-play::after { content: ''; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--shine); }
@keyframes play-pulse { 50% { box-shadow: 0 0 0 10px rgba(255,215,0,0); transform: scale(1.06); } 0% { box-shadow: 0 0 0 0 rgba(255,215,0,.45); } }
.vg-dur { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); font: 700 12px/1.6 var(--font); }
.vg-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-weight: 600; font-size: 14px; }
.vg-modal { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.88); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 12px; }
.vg-modal[hidden] { display: none; }
.vg-box { position: relative; width: min(100%, 460px); }
.vg-stage video, .vg-stage .plyr { width: 100%; max-height: 78vh; border-radius: 16px; background: #000; }
.vg-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--ivory); font-size: 14px; }
.vg-now { text-align: center; flex: 1; }
.vg-close { position: absolute; top: -46px; right: 0; width: 42px; height: 42px; border: 1px solid rgba(255,215,0,.5); border-radius: 50%; background: rgba(0,0,0,.6); color: var(--ivory); font-size: 24px; cursor: pointer; }
body.vg-open { overflow: hidden; }
.plyr--video .plyr__controls { background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }

/* ---------- moving product cards ---------- */
.pc-li { position: relative; }
.product-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,215,0,.35); }
.product-media { position: relative; overflow: hidden; }
.product-media img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-media img { transform: scale(1.12); }
/* gold light sweeping across the photo on hover */
.product-media::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,215,0,.22), transparent); transform: skewX(-18deg); opacity: 0; }
.product-card:hover .product-media::after { animation: sweep 1.1s ease forwards; }
@keyframes sweep { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 0; } }
/* slow "fabric breathing" on the featured grids, so the page feels alive without hover (phones) */
@media (hover: none) { .product-grid .product-media img { animation: breathe 9s ease-in-out infinite alternate; } }
@keyframes breathe { to { transform: scale(1.06); } }
.wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,10,.55); color: #f4efe4; font-size: 18px; cursor: pointer; backdrop-filter: blur(4px); transition: transform .2s; }
.wish.is-on { color: var(--urgent); border-color: var(--urgent); }
.wish.beat { animation: heartbeat .6s ease; }
@keyframes heartbeat { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.cart-btn.bump { animation: cart-shake .7s ease 1; }
.cart-btn.bump .cart-count { animation: count-pop .7s ease 1; }
@keyframes cart-shake { 15%, 45%, 75% { transform: rotate(-12deg); } 30%, 60% { transform: rotate(12deg); } 90% { transform: rotate(0); } }
@keyframes count-pop { 40% { transform: scale(1.5); background: var(--shine); } }
.pd-viewers { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--champagne); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--urgent); box-shadow: 0 0 0 0 rgba(255,59,48,.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.offer-timer { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--urgent); font-weight: 700; }
.offer-timer b { font-variant-numeric: tabular-nums; }
.free-bar { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.free-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b8860b, var(--shine)); transition: width .8s ease; }
.btn-gold:active { transform: scale(.97); }
.home-visit-photo { display: block; }

/* ---------- spin wheel ---------- */
.spin { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .spin { grid-template-columns: 440px 1fr; } }
.spin-wheel-wrap { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.spin-wheel-wrap canvas { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 40px rgba(255,215,0,.25); }
.spin-pointer { position: absolute; top: -6px; left: 50%; margin-left: -14px; border-style: solid; border-width: 26px 14px 0; border-color: var(--urgent) transparent transparent; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.spin-result { font-size: 18px; font-weight: 700; color: var(--shine); }
.track-steps { padding-left: 2em; line-height: 1.9; margin-top: 16px; }

/* ---------- header: heart hides on very small screens (wishlist stays in the explore bar) ---------- */
@media (max-width: 479px) { .header-actions a[href$="wishlist/"] { display: none; } }

/* ---------- hidden designer footprint: a whisper, not a banner ---------- */
.site-header { position: sticky; }
.morisson-footprint { position: absolute; font-size: 8px; line-height: 1; opacity: .12; letter-spacing: 2px; color: #666; font-weight: 300; user-select: none; pointer-events: none; white-space: nowrap; }
.mf-header { right: 16px; bottom: 2px; }
.footer-bottom { position: relative; }
.mf-footer { right: 16px; bottom: 6px; }
.logo-ball .egg { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font: 700 11px/1 var(--serif); letter-spacing: 4px; color: var(--shine); opacity: 0; text-shadow: 0 0 12px rgba(255,215,0,.9); transition: opacity .8s; pointer-events: none; }
.logo-ball.egg-on .egg { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ent-video, .logo-ball i, .brand::after, .vg-play, .mh-pin-ring, .live-dot, .product-grid .product-media img { animation: none !important; }
  .product-card, .product-media img, .vg-card, .vg-card img { transition: none; }
}

/* Desktop: the footage is portrait (phone video), so show it sharp as a framed "story" card instead of stretching it. */
@media (min-width: 900px) {
  .ent-hero { align-items: center; background: radial-gradient(ellipse at 78% 50%, rgba(212,175,55,.16), transparent 55%), #0A0A0A; }
  .ent-video { left: auto; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); top: 50%; bottom: auto; width: min(32vw, 360px); height: auto; aspect-ratio: 9 / 16; max-height: 86%;
    transform: translateY(-50%); animation: none; z-index: 0; border-radius: 26px; border: 1px solid rgba(255,215,0,.45); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,215,0,.12); }
  .ent-shade { background: linear-gradient(90deg, #0A0A0A 30%, rgba(10,10,10,.6) 60%, transparent 85%); z-index: -1; }
  .ent-inner { padding-right: min(36vw, 420px); }
}
