/* =========================================================
   Motion: loaded on every page. Driven by the "motion" section
   at the end of site.js. Everything is switched off for people
   who ask their device for reduced motion.
   ========================================================= */

/* Page arrives softly */
.js main { animation: m-page .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes m-page { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress line */
.m-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand, #F15A3C), color-mix(in srgb, var(--brand, #F15A3C) 40%, #F15A3C)); }

/* Hero entrance: copy rises in sequence, headline words slide up from a mask */
.m-rise { animation: m-rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes m-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.m-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.m-w > span, .m-wi { display: inline-block; animation: m-word 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--w, 0) * 70ms + 80ms); }
@keyframes m-word { from { transform: translateY(110%) rotate(3deg); } to { transform: none; } }
.m-pop { animation: m-pop 1.2s cubic-bezier(.2, .7, .2, 1) .35s both; }
@keyframes m-pop { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }

/* Scroll reveals (base styles live in home.css; these add variety) */
.js [data-reveal="left"] { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { transform: none; }

/* Cursor sheen on cards */
.m-host { position: relative; }
.m-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%); }
.m-host:hover > .m-sheen { opacity: 1; }

/* Button shine sweep */
.btn-primary, .btn-navy, .btn-white, .ev-btn:not(.ev-btn-line):not(.ev-btn-ghost):not(.ev-btn-gold) {
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .32) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat; }
.btn-primary:hover, .btn-navy:hover, .btn-white:hover, .ev-btn:not(.ev-btn-line):not(.ev-btn-ghost):not(.ev-btn-gold):hover { background-position: -40% 0; transition: background-position .9s ease, transform .25s, box-shadow .25s, background-color .25s, color .25s; }
.ev-btn-gold { background-color: #C9A56E; background-image: linear-gradient(120deg, #A57C46, #E9D3A4 50%, #B8925A); background-size: 200% 100%; color: #2B140A !important; }
.ev-btn-gold:hover { background-position: 100% 0 !important; }

/* Add to cart: a dot flies to the cart, the cart bounces */
.m-fly { position: fixed; z-index: 300; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; background: var(--brand, #F15A3C); box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 6px 16px rgba(0, 0, 0, .25); }
.m-bump { animation: m-bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes m-bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }

/* Idle float for the home deck cards and hero product cards */
.deck-card { animation: m-bob 6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1.2s); }
@keyframes m-bob { 50% { translate: 0 -8px; } }
.ev-float-a { animation: m-bob 7s ease-in-out infinite; }
.ev-float-b { animation: m-bob 8s ease-in-out -3s infinite; }

/* Everra extras */
.ev-ribbon:hover .ev-marq { animation-play-state: paused; }
.js .ev-story-art[data-reveal] { opacity: 1; transform: none; clip-path: inset(14% 10% 0 10% round 999px 999px 28px 28px); transition: clip-path 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .ev-story-art[data-reveal].in { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }
.js .ev-story-art[data-reveal] img { transform: scale(1.15); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.js .ev-story-art[data-reveal].in img { transform: scale(1); }
.js .ev-story-art[data-reveal].in:hover img { transform: scale(1.05); }
.ev-arch.has-photo { transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.ev-hero-photo { animation: m-kenburns 18s ease-in-out infinite alternate; }
@keyframes m-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.ev-tag.sold, .stock-tag { animation: m-pulse 2.8s ease-in-out infinite; }
@keyframes m-pulse { 50% { box-shadow: 0 0 0 6px rgba(73, 34, 13, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(73, 34, 13, .25); } }

/* Links in nav: underline grows from the left */
.ev-nav a, .site-nav a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease; }
.ev-nav a:hover { background-size: 100% 1px; border-color: transparent !important; }

/* Reduced motion (html.calm is set by site.js) */
html.calm main,.calm .m-rise,.calm .m-w > span,.calm .m-wi,.calm .m-pop,.calm .deck-card,.calm .ev-float-a,.calm .ev-float-b,.calm .ev-hero-photo,.calm .ev-tag.sold,.calm .stock-tag,.calm .m-bump { animation: none !important; }
.calm .m-progress,.calm .m-sheen,.calm .m-fly { display: none; }
html.calm .ev-story-art[data-reveal] { clip-path: none; }
html.calm .ev-story-art[data-reveal] img { transform: none; }

/* ---------- Everra transition + "queen experience" welcome ---------- */
.evx { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; text-align: center; color: #FAF5EF; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(201, 111, 115, .38), rgba(201, 111, 115, 0) 70%), radial-gradient(60% 50% at 50% 110%, rgba(184, 146, 90, .35), rgba(184, 146, 90, 0) 70%), #2B140A;
  transition: opacity .5s ease; font-family: "Figtree", "Plus Jakarta Sans", system-ui, sans-serif; }
.evx.on { opacity: 1; pointer-events: auto; }
.evx-go { clip-path: circle(0% at 50% 50%); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), opacity .2s; }
.evx-go.on { clip-path: circle(150% at 50% 50%); }
.evx-logo { display: block; font-family: "Ovo", Georgia, serif; font-size: clamp(3.4rem, 11vw, 7rem); line-height: 1; letter-spacing: .01em;
  background: linear-gradient(110deg, #E9D3A4 20%, #FFF6E0 40%, #E9D3A4 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: evx-shine 2.4s linear infinite; }
.evx-logo.sm { font-size: 1.6rem; margin-top: 26px; opacity: .9; }
@keyframes evx-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.evx-line { margin: 18px 0 26px; font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(250, 245, 239, .75); }
.evx-bar { display: block; width: 180px; height: 1px; margin: 0 auto; background: rgba(250, 245, 239, .2); overflow: hidden; }
.evx-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #B8925A, #F3E2BC); transform-origin: 0 50%; transform: scaleX(0); }
.evx-go.on .evx-bar i { transition: transform 1.3s cubic-bezier(.4, 0, .2, 1) .2s; transform: scaleX(1); }
.evx-go .evx-in > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.evx-go.on .evx-in > * { opacity: 1; transform: none; }
.evx-go.on .evx-line { transition-delay: .35s; }
.evx-go.on .evx-bar { transition-delay: .45s; }
.evx-go.on .evx-logo { transition-delay: .25s; }

.evx-hello { opacity: 1; cursor: pointer; transition: opacity .8s ease, transform .9s cubic-bezier(.7, 0, .2, 1); }
.evx-hello.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.evx-crown { width: 74px; height: auto; display: block; margin: 0 auto 20px; animation: evx-crown 1s cubic-bezier(.2, .8, .2, 1) .1s both, evx-glow 3s ease-in-out 1.1s infinite; }
@keyframes evx-crown { from { opacity: 0; transform: translateY(-18px) scale(.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes evx-glow { 50% { filter: drop-shadow(0 0 14px rgba(243, 226, 188, .7)); } }
.evx-kicker { display: block; font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: #E9D3A4; animation: m-rise .8s cubic-bezier(.2, .7, .2, 1) .35s both; }
.evx-title { margin: 12px 0 0; font-family: "Ovo", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; color: #FAF5EF; animation: m-rise 1s cubic-bezier(.2, .7, .2, 1) .5s both; padding: 0 20px; }
.evx-title em { font-style: normal; background: linear-gradient(110deg, #C96F73, #F2D6CF 50%, #C96F73); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: evx-shine 3s linear infinite; }
.evx-hello .evx-logo.sm { animation: m-rise .8s .8s both, evx-shine 2.4s linear infinite; }
.evx-skip { margin-top: 30px; font: 600 .76rem "Figtree", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #2B140A; background: linear-gradient(120deg, #A57C46, #E9D3A4 50%, #B8925A); border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; animation: m-rise .8s 1s both; }
.evx-hello::before, .evx-hello::after { content: "✦"; position: absolute; color: #E9D3A4; opacity: .6; animation: evx-twinkle 2.4s ease-in-out infinite; }
.evx-hello::before { top: 22%; left: 20%; font-size: 1.2rem; }
.evx-hello::after { bottom: 24%; right: 18%; font-size: .9rem; animation-delay: 1.2s; }
@keyframes evx-twinkle { 50% { opacity: .1; transform: scale(.6) rotate(45deg); } }
html.evx-lock { overflow: hidden; }
html.calm .evx, html.calm .evx * { animation: none !important; transition-duration: .01s !important; }
html.calm .evx-go { clip-path: none; }
html.evx-lock .m-rise, html.evx-lock .m-w > span, html.evx-lock .m-wi, html.evx-lock .m-pop { animation-play-state: paused; }
