/* Book, product and checkout pages, styled after the Mal Magic logo:
   royal blue, silver and white on near-black, frosted-glass panels, stars and paint drips. */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes drift { 0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); } 50% { transform: translate3d(8%, 6%, 0) scale(1.18); } }
@keyframes sheen { to { background-position: 200% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(18deg); } }
@keyframes drip { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }

.shop {
  --blue: #2468d8; --blue-deep: #10357f; --blue-lite: #6aa6ff; --silver: #c9d1dc; --white: #f5f8fc;
  --glass: rgba(255,255,255,.07); --glass-2: rgba(255,255,255,.12); --edge: rgba(255,255,255,.2);
  --cream: var(--white); --dim: #9fabbd; --red: var(--blue-lite); --gold: var(--silver); --line: rgba(255,255,255,.14); --ink: #05070d;
  min-height: 100svh; position: relative; isolation: isolate; overflow-x: clip; background: #05070d; color: var(--white);
}
html:has(.shop) { background: #05070d; }

/* nav: glass bar, blue spotlight on the MXL logo */
.shop .nav.on { position: sticky; top: 0; background: rgba(8,12,24,.55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.shop .logo-spot { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 22px 4px rgba(255,255,255,.4), 0 0 54px 10px rgba(36,104,216,.75); }
.shop .brand:hover .logo-spot { box-shadow: 0 0 0 1px #fff, 0 0 28px 6px rgba(255,255,255,.6), 0 0 70px 14px rgba(106,166,255,.8); }
.nav .tools { display: flex; align-items: center; gap: 10px; }
.shop .btn { border-radius: 999px; border-color: var(--edge); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--white); }
.shop .btn:hover { background: var(--white); color: #05070d; border-color: var(--white); }
button.btn { font-family: inherit; cursor: pointer; }
.cart-btn { position: relative; }
.cart-btn [data-count] { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 11px; line-height: 20px; text-align: center; letter-spacing: 0; box-shadow: 0 0 14px rgba(106,166,255,.9); }

/* moving blue gradient backdrop */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .6; animation: drift 18s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -18vmax; top: -26vmax; background: radial-gradient(closest-side, rgba(36,104,216,.95), transparent); }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: -16vmax; top: 4vmax; background: radial-gradient(closest-side, rgba(16,53,127,.95), transparent); animation-duration: 24s; animation-direction: reverse; }
.aurora i:nth-child(3) { width: 44vmax; height: 44vmax; left: 22vmax; bottom: -24vmax; background: radial-gradient(closest-side, rgba(106,166,255,.5), transparent); animation-duration: 29s; }
.shop::before { /* fine grain so the glass has something to blur */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }

/* paint drips under the nav */
.drips { display: flex; justify-content: space-around; height: 0; padding-inline: 4vw; pointer-events: none; position: relative; z-index: 1; }
.drips b { display: block; width: clamp(8px, 1.1vw, 15px); height: var(--l); border-radius: 0 0 999px 999px; background: linear-gradient(to bottom, var(--blue-deep), var(--blue) 60%, var(--blue-lite)); transform-origin: top; animation: drip var(--t, 6s) ease-in-out infinite; box-shadow: 0 6px 18px rgba(36,104,216,.6); }

/* twinkling stars */
.stars { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.stars b { position: absolute; width: var(--s, 22px); aspect-ratio: 1; background: linear-gradient(135deg, #fff, var(--silver)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--d, 0s); }

/* hero: the Mal Magic logo is the headline */
.book-hero { position: relative; text-align: center; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(24px, 4vw, 44px); max-width: 1320px; margin-inline: auto; }
.logo-stage { position: relative; display: inline-grid; place-items: center; isolation: isolate; }
.logo-stage::before { content: ""; position: absolute; inset: -6% -14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95) 0, rgba(190,214,255,.75) 34%, rgba(36,104,216,.45) 62%, transparent 100%); filter: blur(18px); animation: pulse 6s ease-in-out infinite; }
.logo-stage::after { content: ""; position: absolute; inset: -16%; z-index: -2; border-radius: 50%; background: conic-gradient(from var(--ang), var(--blue), #fff, var(--blue-deep), var(--silver), var(--blue)); filter: blur(60px); opacity: .55; animation: spin 10s linear infinite; }
.logo-stage img { width: min(440px, 74vw); height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(5,7,13,.55)); }
.book-hero .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: clamp(28px, 4vw, 44px); }
.book-hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-lite); box-shadow: 0 0 12px var(--blue-lite); }
.book-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 92px); line-height: .95; text-transform: uppercase; margin-top: clamp(28px, 4vw, 48px); text-wrap: balance;
  background: linear-gradient(100deg, #fff 0%, #fff 36%, var(--blue-lite) 47%, #fff 52%, var(--silver) 60%, #fff 72%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
.book-hero p { color: var(--dim); max-width: 34rem; margin: 16px auto 0; font-size: 17px; }
.chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; padding: 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 60px -30px rgba(36,104,216,.9); }
.chip { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: transparent; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { background: var(--glass-2); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--blue-lite), var(--blue) 55%, var(--blue-deep)); color: #fff; box-shadow: 0 0 22px rgba(36,104,216,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.chip:focus-visible, .x:focus-visible, .qty button:focus-visible, .shop a:focus-visible, .shop .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 520px) { .chips { border-radius: 28px; } }

/* glass product cards */
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(72px, 10vw, 140px); max-width: 1320px; margin-inline: auto; }
.pgrid.small { padding-inline: 0; padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pcard { opacity: 0; }
.pcard.in { animation: rise .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
.pcard a { display: flex; flex-direction: column; height: 100%; text-decoration: none; position: relative; border-radius: 30px; padding: 12px; color: var(--white);
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 42%, rgba(36,104,216,.12)); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 30px 70px -40px rgba(0,0,0,.9); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.pcard a::before { /* rotating light along the edge */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--ang), transparent 0 20%, #fff 30%, var(--blue-lite) 40%, transparent 55% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.pcard a::after { content: ""; position: absolute; inset: 14% 10% 26%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(106,166,255,.75), rgba(36,104,216,.3) 60%, transparent); filter: blur(44px); opacity: 0; transition: opacity .4s; }
.pcard a:hover, .pcard a:focus-visible { transform: translateY(-8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 40px 90px -40px rgba(36,104,216,.9); }
.pcard a:hover::before, .pcard a:focus-visible::before, .pcard a:hover::after, .pcard a:focus-visible::after { opacity: 1; }
.pcard-media { border-radius: 20px; overflow: hidden; aspect-ratio: 1; position: relative; }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,13,.55), transparent 45%); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard a:hover .pcard-media img { transform: scale(1.07); }
.pcard-info { padding: 16px 8px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .label.red { color: var(--blue-lite); }
.pcard h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.pcard p { font-size: 14px; color: var(--dim); }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.shop .price { margin: 0; font-size: 20px; color: var(--white); }
.go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; background: linear-gradient(135deg, var(--blue-lite), var(--blue)); color: #fff; box-shadow: 0 0 18px rgba(36,104,216,.8); transition: transform .3s; }
.pcard a:hover .go { transform: translateX(4px) scale(1.08); }

/* primary button */
.shop .btn-glow, button.btn.btn-glow { position: relative; border: 0; border-radius: 999px; padding: 16px 28px; font-size: 13px; color: #fff; cursor: pointer;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 35%, var(--blue-lite) 55%, var(--blue) 75%, var(--blue-deep)); background-size: 200% 100%; animation: sheen 5s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 34px -4px rgba(36,104,216,.95), 0 0 90px -20px rgba(106,166,255,.9); -webkit-backdrop-filter: none; backdrop-filter: none; }
.shop .btn-glow:hover { color: #fff; filter: brightness(1.15); background: linear-gradient(100deg, var(--blue-deep), var(--blue) 35%, var(--blue-lite) 55%, var(--blue) 75%, var(--blue-deep)); background-size: 200% 100%; }

/* product detail */
#product, #checkout { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 140px); max-width: 1320px; margin-inline: auto; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.pd { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 28px; }
.pd-media { position: relative; isolation: isolate; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; padding: 14px; border-radius: 40px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.pd-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; position: relative; }
.halo { position: absolute; inset: -9%; z-index: -1; border-radius: 50%; background: conic-gradient(from var(--ang), var(--blue), #fff, var(--blue-deep), var(--blue-lite), var(--blue)); filter: blur(70px); opacity: .6; animation: spin 9s linear infinite; }
.pd-info { min-width: 0; animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both; padding: clamp(22px, 3vw, 40px); border-radius: 36px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 50%, rgba(36,104,216,.1)); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 40px 100px -50px rgba(36,104,216,.8); }
.pd-info .label.red { color: var(--blue-lite); }
.pd-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.2vw, 84px); line-height: .92; text-transform: uppercase; margin-top: 10px; text-wrap: balance; }
.pd-price { font-family: var(--mono); font-size: 32px; margin-top: 18px; background: linear-gradient(100deg, #fff, var(--blue-lite), #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; display: inline-block; }
.pd-desc { margin-top: 20px; max-width: 34rem; font-size: 17px; }
.pd-specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.pd-specs div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.pd-specs dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pd-specs dd { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.pd-inc { margin-top: 22px; display: grid; gap: 10px; }
.pd-inc li { padding-left: 28px; position: relative; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pd-inc li::before { content: ""; position: absolute; left: 0; top: .05em; width: 16px; aspect-ratio: 1; background: linear-gradient(135deg, #fff, var(--blue-lite)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.pd-buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--edge); border-radius: 999px; margin-top: 8px; background: var(--glass); }
.qty button { font: inherit; width: 34px; height: 34px; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 18px; border-radius: 50%; }
.qty button:hover { background: var(--glass-2); }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); }
.qty.big { margin: 0; }
.qty.big button { width: 48px; height: 48px; }
.pd-added { color: var(--blue-lite); margin-top: 14px; font-size: 14px; }
.pd-notes { margin-top: 26px; display: grid; gap: 6px; }
.more { margin-top: clamp(64px, 9vw, 120px); }
.more h2, #checkout h1, .missing h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1; text-transform: uppercase; margin-bottom: 28px; }
.missing { text-align: center; padding-block: 12svh; }

/* cart drawer and checkout: glass */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-veil { position: absolute; inset: 0; background: rgba(3,5,10,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); border-radius: 32px; background: linear-gradient(170deg, rgba(255,255,255,.16), rgba(12,20,40,.72) 30%, rgba(8,12,24,.82)); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); display: flex; flex-direction: column; transform: translateX(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), -40px 0 120px -40px rgba(36,104,216,.8); overflow: hidden; }
.drawer.open .drawer-veil { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.x { font: inherit; font-size: 28px; line-height: 1; background: var(--glass); border: 1px solid var(--edge); color: var(--white); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.x:hover { background: var(--glass-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 16px; }
.drawer-foot .btn, .co-side .btn { justify-content: center; }
.empty { color: var(--dim); margin: 28px 0 20px; }
.lines { list-style: none; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 22px -4px rgba(36,104,216,.9); }
.line-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.line-main a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.line-total { color: var(--white); font-size: 15px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sum .mono { font-size: 24px; color: var(--white); letter-spacing: 0; }
.co { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 6vw, 80px); align-items: start; }
.co .lines { padding: 6px 22px; border-radius: 30px; background: var(--glass); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.co .lines .line:last-child { border-bottom: 0; }
.co-side { display: grid; gap: 18px; border-radius: 30px; padding: 28px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 50%, rgba(36,104,216,.14)); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 40px 100px -50px rgba(36,104,216,.9); }
.shop .foot { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .book-hero h1, .btn-glow, .halo, .pcard a::before, .logo-stage img, .logo-stage::before, .logo-stage::after, .stars b, .drips b, .pd-price { animation: none !important; }
  .pcard { opacity: 1; } .pcard.in, .pd-media, .pd-info { animation: none; }
}
html:has(.shop) { overflow-x: clip; }
#product, #checkout { overflow-x: clip; overflow-y: visible; }
.drips b { height: calc(var(--l) * .5); }
.book-hero { padding-top: clamp(84px, 9vw, 120px); }
#product, #checkout { padding-top: clamp(84px, 8vw, 110px); }

/* ---- slime drips: bead forms under the bar, stretches, lets go, falls and fades, then starts again ---- */
@keyframes stem { 0% { transform: scaleY(0); } 8% { transform: scaleY(.12); } 46% { transform: scaleY(1); } 52% { transform: scaleY(1.06); } 60% { transform: scaleY(.3); } 72%, 100% { transform: scaleY(0); } }
@keyframes bead { 0% { transform: translateY(0) scale(.2); opacity: 0; } 8% { transform: translateY(calc(var(--l) * .12)) scale(.7); opacity: 1; animation-timing-function: ease-in-out; }
  46% { transform: translateY(var(--l)) scale(1.15); opacity: 1; } 52% { transform: translateY(calc(var(--l) * 1.1)) scale(1.3, 1.45); opacity: 1; animation-timing-function: cubic-bezier(.6, 0, 1, .5); }
  88% { transform: translateY(62vh) scale(.85, 1.5); opacity: .9; } 94%, 100% { transform: translateY(68vh) scale(.5, 1.2); opacity: 0; } }
.drips { display: block; height: 0; padding: 0; position: sticky; top: 74px; z-index: 40; filter: url(#goo); pointer-events: none; }
.drips::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 9px; background: linear-gradient(to bottom, var(--blue-deep), var(--blue)); border-radius: 0 0 8px 8px; }
.drips span { position: absolute; top: 0; width: clamp(10px, 1.1vw, 16px); height: var(--l); }
.drips b { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0 0 999px 999px; background: linear-gradient(to bottom, var(--blue), var(--blue-lite)); box-shadow: none; transform-origin: top; animation: stem var(--t) linear var(--d) infinite; }
.drips i { position: absolute; left: 50%; top: -6px; width: 170%; aspect-ratio: 1 / 1.25; margin-left: -85%; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 35%, #cfe2ff, var(--blue-lite) 30%, var(--blue) 75%); animation: bead var(--t) linear var(--d) infinite; }
.shop .nav.on { z-index: 50; }

/* ---- hero: logo and headline side by side, headline in the home-page poster style ---- */
.book-hero { text-align: left; padding-top: clamp(70px, 7vw, 110px); }
.hero-split { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.logo-stage img { width: min(360px, 100%); }
.hero-copy { container-type: inline-size; min-width: 0; }
.book-hero .kicker { margin-bottom: 0; }
.book-hero h1 { position: relative; margin: clamp(18px, 3cqw, 34px) 0 0; padding: 0; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--white); animation: none; font-size: 1rem; line-height: 1; text-transform: none; }
.hl-big { display: block; font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-size: 27.5cqw; line-height: .8; letter-spacing: -.02em; text-transform: uppercase; padding-top: .16em;
  background: linear-gradient(100deg, #fff 0%, #fff 38%, var(--blue-lite) 48%, #fff 54%, var(--silver) 62%, #fff 74%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite; }
.hl-script { position: absolute; left: -1.5cqw; top: -1cqw; z-index: 1; font-family: var(--script); font-size: 12.5cqw; line-height: .8; color: var(--blue); transform: rotate(-8deg); transform-origin: left center; white-space: nowrap; -webkit-text-stroke: .5cqw #fff; paint-order: stroke fill; filter: drop-shadow(0 .5cqw 0 rgba(5,7,13,.55)); }
.hl-script svg { display: block; width: 62%; height: 2.6cqw; margin: .6cqw 0 0 16%; overflow: visible; color: #fff; }
.book-hero p { margin: clamp(18px, 3cqw, 30px) 0 0; }
.chips { margin-top: 24px; }
@media (max-width: 820px) {
  .book-hero { text-align: center; }
  .hero-split { grid-template-columns: 1fr; justify-items: center; }
  .logo-stage img { width: min(250px, 58vw); }
  .hero-copy { width: 100%; }
  .hl-script { left: 2cqw; }
  .book-hero p { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .drips b, .drips i, .hl-big { animation: none !important; } .drips i { opacity: 0; } .drips b { transform: scaleY(.6); } }
.book-hero .kicker { margin-bottom: clamp(14px, 4cqw, 30px); }

/* MAGIC as a live SVG: hair, clean letters and the clipper */
.hl-big.has-magic { background: none; -webkit-background-clip: initial; background-clip: initial; animation: none; padding-top: 5cqw; font-size: 1rem; line-height: 0; }
.magic { display: block; width: 100%; height: auto; overflow: visible; }
.magic text { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; letter-spacing: 0; }
.mg-clipper { filter: drop-shadow(0 6px 10px rgba(5,7,13,.6)); pointer-events: none; }
/* photographic MAGIC: the photo carries its own headroom, so pull it up under the script and let it run wide */
.hl-big.has-magic { padding-top: 0; }
.magic.photo { width: 112%; margin: -4cqw -6% -6cqw; max-width: none; }
.hl-script { top: 1cqw; z-index: 2; }
@media (max-width: 820px) { .magic.photo { width: 116%; margin-inline: -8%; } }
.magic.photo > g:first-of-type { filter: brightness(1.7) contrast(1.06) saturate(1.1); }
.qty[hidden], .pcard[hidden] { display: none !important; }
.chips { scroll-margin-top: 110px; }

/* ---------- phones first ---------- */
.shop .btn-sm, .cart-btn, .x { min-height: 44px; }
.x { min-width: 44px; }
.qty button { width: 44px; height: 44px; }
.crumbs a { display: inline-block; padding: 12px 0; }
.buybar { display: none; }
@media (max-width: 640px) {
  .shop .nav { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .book-hero { padding-top: 56px; padding-bottom: 8px; }
  .logo-stage img { width: min(150px, 38vw); }
  .book-hero p { font-size: 15px; }
  /* filters: one swipeable row instead of a tall wrapped block */
  .chips { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter); border-radius: 0; border-inline: 0; scrollbar-width: none; position: sticky; top: 64px; z-index: 20; background: rgba(5,7,13,.82); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; min-height: 44px; white-space: nowrap; }
  /* catalogue: compact rows, so 33 items is a short scroll */
  .pgrid { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; padding-bottom: 96px; }
  .pgrid.small { gap: 12px; }
  .pcard a { flex-direction: row; align-items: stretch; gap: 14px; padding: 10px; border-radius: 22px; }
  .pcard a::after { display: none; }
  .pcard-media, .pcard-media.wide { flex: none; width: 104px; aspect-ratio: 1; border-radius: 16px; }
  .pcard-info { padding: 4px 4px 4px 0; gap: 4px; min-width: 0; }
  .pcard h3 { font-size: 21px; }
  .pcard p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard-foot { padding-top: 6px; }
  .pcard .go { width: 36px; height: 36px; }
  .pcard.in { animation-duration: .45s; animation-delay: calc(min(var(--i), 8) * 35ms); }
  /* product page: shorter photo, and the action button pinned to the bottom of the screen */
  #product { padding-bottom: 110px; }
  .pd { margin-top: 8px; gap: 20px; }
  .pd-media { padding: 8px; border-radius: 28px; }
  .pd-media img { aspect-ratio: 1; border-radius: 20px; }
  .pd-info h1 { font-size: clamp(34px, 10vw, 48px); }
  .buybar { display: flex; align-items: center; gap: 14px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(5,7,13,.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .buybar .price { font-family: var(--mono); font-size: 20px; color: var(--blue-lite); flex: none; }
  .buybar .btn { flex: 1; justify-content: center; min-height: 52px; }
  .drawer-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 88svh; border-radius: 28px 28px 0 0; }
}
.shop .logo-spot, .shop .brand:hover .logo-spot { box-shadow: none; }
.shop .logo-spot::before { background: radial-gradient(closest-side, rgba(106,166,255,.55), rgba(36,104,216,0)); }
@media (max-width: 640px) { .shop .logo-spot { --d: 40px; } }
.consult-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; letter-spacing: .1em; color: #ffd98a; background: rgba(255,200,80,.14); border: 1px solid rgba(255,200,80,.45); vertical-align: 1px; }
