/* Mobila Direct · what is on every page: header, menu, footer, drawers, toasts, the drifting background. */

/* ------------------------------------------------------------------ background washes */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; border-radius: 50%; will-change: transform, translate; animation: amb-a 23s ease-in-out infinite alternate; }
.ambient__b { animation-name: amb-b !important; animation-duration: 29s !important; }
.ambient__c { animation-name: amb-c !important; animation-duration: 31s !important; }
@keyframes amb-a { from { transform: translate(-40px, -28px); } to { transform: translate(40px, 30px); } }
@keyframes amb-b { from { transform: translate(48px, 34px); } to { transform: translate(-50px, -36px); } }
@keyframes amb-c { from { transform: translate(-42px, 24px); } to { transform: translate(44px, -26px); } }
.ambient__a { width: 56vw; height: 56vw; left: -17vw; top: calc(18vh - 5vw); background: radial-gradient(closest-side, rgba(143, 196, 250, .42), rgba(143, 196, 250, .22) 40%, rgba(143, 196, 250, .07) 72%, rgba(143, 196, 250, 0)); }
.ambient__b { width: 50vw; height: 50vw; right: -15vw; top: calc(55vh - 5vw); background: radial-gradient(closest-side, rgba(241, 221, 171, .46), rgba(241, 221, 171, .24) 40%, rgba(241, 221, 171, .08) 72%, rgba(241, 221, 171, 0)); }
.ambient__c { width: 44vw; height: 44vw; left: 25vw; top: calc(120vh - 5vw); background: radial-gradient(closest-side, rgba(103, 160, 222, .27), rgba(103, 160, 222, .14) 40%, rgba(103, 160, 222, .04) 72%, rgba(103, 160, 222, 0)); }

/* drawn objects inside a section */
.floaters { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.floater { position: absolute; opacity: .7; }
.floaters.is-on .floater { will-change: translate, rotate; }
.floater svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* the bobbing: a loop the browser runs by itself, paused while the section is off screen */
/* (off screen there is no animation at all, so no layer is kept for it; it restarts from rest) */
.floaters.is-on .floater__art { animation: fl-a var(--bob, 9s) ease-in-out var(--bob-at, 0s) infinite; }
.floaters.is-on .floater__art--b { animation-name: fl-b; }
.floaters.is-on .floater__art--c { animation-name: fl-c; }
@keyframes fl-a { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 30% { transform: translate(5px, -10px) rotate(4deg); } 65% { transform: translate(-4px, 7px) rotate(-3deg); } }
@keyframes fl-b { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 40% { transform: translate(-6px, -9px) rotate(-5deg); } 75% { transform: translate(4px, 6px) rotate(2deg); } }
@keyframes fl-c { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(4px, 8px) rotate(3deg); } 60% { transform: translate(-5px, -10px) rotate(-4deg); } }
.floater--blue { color: #9cc3ee; }
.floater--brass { color: #dcc289; }
.floater--ink { color: #aab6cb; }
.floater--night { color: rgba(255, 255, 255, .16); }
@media (max-width: 899px) {
  .floater { scale: .62; opacity: .5; }
  .floater--wide { display: none; }
}
.sec > .wrap, .hero__in { position: relative; z-index: 1; }

/* the ruler in the left margin: how far down the page */
.ruler { position: fixed; left: 14px; top: 50%; z-index: 40; width: 14px; height: min(46vh, 380px); translate: 0 -50%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: repeating-linear-gradient(to bottom, rgba(12, 20, 36, .34) 0 1px, transparent 1px 8px) 0 0/7px 100% no-repeat,
              repeating-linear-gradient(to bottom, rgba(12, 20, 36, .5) 0 1px, transparent 1px 40px) 0 0/14px 100% no-repeat; }
.ruler__mark { position: absolute; left: -3px; top: calc(var(--p, 0) * 100%); width: 24px; height: 2px; border-radius: 2px; background: var(--g-brand); box-shadow: 0 0 0 3px rgba(103, 160, 222, .18); }
.ruler__mark::after { content: attr(data-n); position: absolute; left: 30px; top: -7px; font: 600 10px/1.5 ui-monospace, Menlo, monospace; color: var(--cobalt); letter-spacing: .06em; }
@media (min-width: 1500px) { html.is-open .ruler { opacity: 1; } }
.has-layer .ruler { opacity: 0 !important; }

/* ------------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; transition: color .4s ease; }
.logo__mark { width: 42px; height: 42px; filter: drop-shadow(0 6px 10px rgba(47, 99, 214, .28)); transition: transform .6s var(--ease-out); }
.logo__words { width: 88px; height: 34px; }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo--light { color: #fff; }

/* ------------------------------------------------------------------ header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 12px var(--gut) 0; pointer-events: none; transition: transform .6s var(--ease-out); }
.hd.is-away { transform: translateY(-120%); }
.has-layer .hd { z-index: 30; }
.hd__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin-inline: auto; height: var(--hd-h); padding: 0 10px 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0);
  transition: background-color .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}
.hd.is-stuck .hd__bar { background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), var(--sh-m); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.hd__nav { display: none; margin-inline: auto; gap: 4px; }
.hd__nav a { position: relative; padding: 10px 15px; border-radius: 999px; font: 550 .94rem/1 var(--f-display); color: var(--ink-2); letter-spacing: -.01em; transition: color .25s, background-color .3s; }
.hd__nav a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--g-brand); translate: -50% 0; scale: 0; transition: scale .4s var(--ease-out); }
.hd__nav a:hover { background: rgba(103, 160, 222, .14); color: var(--ink); }
.hd__nav a.is-on { color: var(--cobalt); }
.hd__nav a.is-on::after { scale: 1; }
.hd__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd__phone { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px; white-space: nowrap; border-radius: 999px; font: 600 .92rem/1 var(--f-display); color: var(--ink); transition: background-color .3s; }
.hd__phone .ic { color: var(--cobalt); }
.hd__phone:hover { background: rgba(103, 160, 222, .14); }
.hd__btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--sh-s); transition: transform .45s var(--ease-out), background-color .3s, color .3s; }
.hd__btn:hover { transform: scale(1.07); }
.hd__cart { background: var(--ink); color: #fff; }
.hd__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--g-brass); color: #2a1e08;
  font: 700 .68rem/1 var(--f-display); scale: 0; transition: scale .4s var(--ease-out); }
.hd__count.is-on { scale: 1; }
.hd__count.is-bump { animation: bump .55s var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.5); } }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(12, 20, 36, .06); }
.lang a { padding: 7px 10px; border-radius: 999px; font: 650 .72rem/1 var(--f-display); letter-spacing: .06em; color: var(--muted); transition: color .2s, background-color .3s, box-shadow .3s; }
.lang a:hover { color: var(--ink); }
.lang a.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-s); }
.hd__lang { display: none; }
@media (min-width: 720px) { .hd__lang { display: inline-flex; } }
/* over a dark opening (the contact page) the header is light until it turns to glass */
body[data-view='contact'] .hd:not(.is-stuck) .logo, body[data-view='contact'] .hd:not(.is-stuck) .hd__nav a, body[data-view='contact'] .hd:not(.is-stuck) .hd__phone { color: #fff; }
body[data-view='contact'] .hd:not(.is-stuck) .hd__nav a:hover, body[data-view='contact'] .hd:not(.is-stuck) .hd__phone:hover { background: rgba(255, 255, 255, .12); }
body[data-view='contact'] .hd:not(.is-stuck) .hd__nav a.is-on, body[data-view='contact'] .hd:not(.is-stuck) .hd__phone .ic { color: var(--brass-l); }
body[data-view='contact'] .hd:not(.is-stuck) .hd__nav a::after { background: var(--g-brass); }
body[data-view='contact'] .hd:not(.is-stuck) .lang { background: rgba(255, 255, 255, .14); }
body[data-view='contact'] .hd:not(.is-stuck) .lang a:not(.is-on) { color: #c4cfe6; }
body[data-view='contact'] .hd:not(.is-stuck) .hd__cart { background: #fff; color: var(--ink); }
@media (min-width: 1100px) {
  .hd__nav { display: flex; }
  .hd__burger { display: none; }
  .hd__bar { padding-left: 20px; }
}
@media (min-width: 1280px) { .hd__phone { display: inline-flex; } .logo__words { width: 98px; height: 38px; } }
@media (max-width: 420px) { .logo__words { width: 76px; height: 30px; } .logo__mark { width: 38px; height: 38px; } }

/* round icon button, used all over */
.round { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--sh-s), inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease-out), background .35s, color .3s, box-shadow .35s; }
.round:hover { transform: scale(1.08); background: var(--ink); color: #fff; }
.round[data-step='-1'] .ic, .round[data-rail='-1'] .ic, .viewer__nav--p .ic { rotate: 180deg; }
.round--go { background: var(--ink); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------ layers: menu sheet, cart drawer */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(238, 242, 248, .86); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .7s var(--ease-io); overflow-y: auto; }
.sheet.is-open { clip-path: circle(150% at calc(100% - 46px) 46px); }
.sheet__in { min-height: 100%; display: flex; flex-direction: column; gap: 26px; padding: 12px var(--gut) 30px; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); padding: 0 10px 0 16px; }
.sheet__nav { display: grid; margin-top: 8px; }
.sheet__nav a { display: flex; align-items: center; justify-content: space-between; padding: 17px 6px; border-bottom: 1px solid var(--line-2); font: 650 clamp(1.6rem, 7vw, 2.4rem)/1.1 var(--f-display); letter-spacing: -.03em; color: var(--ink);
  opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .8s var(--ease-out), color .25s; }
.sheet.is-open .sheet__nav a { opacity: 1; transform: none; }
.sheet__nav a:nth-child(1) { transition-delay: .12s; } .sheet__nav a:nth-child(2) { transition-delay: .17s; } .sheet__nav a:nth-child(3) { transition-delay: .22s; }
.sheet__nav a:nth-child(4) { transition-delay: .27s; } .sheet__nav a:nth-child(5) { transition-delay: .32s; } .sheet__nav a:nth-child(6) { transition-delay: .37s; }
.sheet__nav a .ic { color: var(--cobalt); width: 1em; height: 1em; }
.sheet__nav a:active { color: var(--cobalt); }
.sheet__foot { margin-top: auto; display: grid; gap: 16px; justify-items: center; }
.lang--big a { padding: 12px 20px; font-size: .86rem; }

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__veil { position: absolute; inset: 0; background: rgba(10, 17, 38, .46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s ease; }
.drawer__panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--sh-l);
  transform: translateX(calc(100% + 30px)); transition: transform .65s var(--ease-out); overflow: hidden; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px 26px; }
.drawer__title { display: flex; align-items: baseline; gap: 10px; font: 650 1.45rem/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.drawer__title span { font: 500 .86rem/1 var(--f-text); letter-spacing: 0; color: var(--muted); }
.drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 12px; display: grid; gap: 10px; align-content: start; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 22px 22px; background: #fff; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; font: 500 1rem/1 var(--f-text); color: var(--text); }
.drawer__total b { font: 700 1.7rem/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.drawer__save { display: inline-flex; align-items: center; gap: 8px; font: 600 .88rem/1 var(--f-display); color: #876323; }
.drawer__hint { font-size: .84rem; color: var(--muted); }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 30px; text-align: center; }
.drawer__art { width: 110px; height: 110px; color: var(--sky); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }

.line { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-m); background: #fff; box-shadow: var(--sh-s); }
.line__pic { display: block; width: 86px; height: 96px; padding: 8px; border-radius: var(--r-s); background: linear-gradient(160deg, var(--tint), #fff); overflow: hidden; }
.line__pic img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.line__main { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.line__name { font: 650 1.02rem/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.line__meta { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.line__x { font-size: .86rem; color: var(--text); }
.line__side { display: grid; justify-items: end; gap: 4px; align-self: stretch; align-content: space-between; }
.line__side b { font: 700 1rem/1.2 var(--f-display); color: var(--ink); white-space: nowrap; }
.line__side s { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.line__del { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.line__del:hover { background: #fdeee8; color: var(--sale); }

/* ------------------------------------------------------------------ toasts, the flying photo */
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 120; display: grid; gap: 8px; justify-items: center; translate: -50% 0; width: min(92vw, 520px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--sh-l); font-size: .92rem;
  opacity: 0; transform: translateY(18px) scale(.94); transition: opacity .4s ease, transform .55s var(--ease-out); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ic { color: var(--brass-l); }
.toast__btn { margin-left: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 600 .84rem/1 var(--f-display); white-space: nowrap; transition: background-color .2s; }
.toast__btn:hover { background: rgba(255, 255, 255, .26); }
.fly { position: fixed; z-index: 130; object-fit: contain; pointer-events: none; }

/* ------------------------------------------------------------------ footer */
.ft { position: relative; overflow: hidden; background: #080e1f; color: #9eabc6; padding: clamp(56px, 7vw, 96px) 0 0; }
.ft__in { position: relative; z-index: 1; display: grid; gap: 40px; grid-template-columns: 1fr; }
.ft__brand { display: grid; gap: 18px; justify-items: start; max-width: 40ch; }
.ft__social { display: flex; gap: 10px; }
.ft__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .35s, transform .45s var(--ease-out); }
.ft__social a:hover { background: var(--g-brand); transform: translateY(-3px); }
.ft__col { display: grid; gap: 12px; align-content: start; justify-items: start; }
.ft__col h3 { font: 600 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-l); margin-bottom: 6px; }
.ft__col a { color: #d3dbee; transition: color .2s, translate .4s var(--ease-out); }
.ft__col a:hover { color: #fff; translate: 4px 0; }
.ft__phone { font: 650 1.35rem/1.2 var(--f-display); letter-spacing: -.02em; color: #fff !important; }
.ft__base { grid-column: 1 / -1; display: grid; gap: 8px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.ft__note { color: #74819d; max-width: 86ch; }
.ft__word { margin-top: 6px; height: .72em; overflow: hidden; text-align: center; white-space: nowrap; font: 800 clamp(3rem, 13.2vw, 15rem)/.86 var(--f-display); letter-spacing: -.045em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 800px) { .ft__in { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ------------------------------------------------------------------ empty states, "done" */
.empty { display: grid; justify-items: center; gap: 18px; padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.empty--page { min-height: 86vh; align-content: center; padding-top: 140px; }
.empty__art { width: 130px; height: 130px; color: var(--sky); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: bob 5s ease-in-out infinite; }
.done { display: grid; justify-items: center; gap: 18px; max-width: 640px; margin: 0 auto; padding: clamp(30px, 6vw, 70px) 0; text-align: center; }
.done--in { padding: 10px 0; }
.done__ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--g-brand); color: #fff; box-shadow: var(--sh-blue); animation: pop .8s var(--ease-out) both; }
.done__ic .ic { width: 38px; height: 38px; stroke-width: 2.2; }
.done__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
