/* ============================================================
   Alchemy Gold Research partner blocks (2026-12-05)
   Tracy: Curio, the shop and every explainer should point to Alchemy Gold Research. Alex: prominent, on top, next to the video.
   Own file on purpose: styles.css and site.js are not touched. Uses the site's own tokens (ink, gold, surface), buttons (.btn-gold) and cards (.product).
   Pieces:
   .agp-top   gold button under the chips at the top of an explainer page
   .agp-card  dark card with the peptide's own vial, right after the video (or the top block) of an explainer page
   .agp-end   slim reminder at the end of an explainer page
   .agp-band  the partner band at the top of the shop page, and the first shop tab
   ============================================================ */

/* the little arrow moves 3 px toward where the click goes; only where a mouse can hover */
.agp-arrow{display:inline-block; margin-left:.3em; transition:translate .16s var(--ease-out);}
.agp-nb{white-space:nowrap;}
/* the gold buttons keep text and arrow together (inline, not flex), so a two-line label stays centred */
.agp-top .btn-gold,.agp-card .btn-gold,.agp-end .btn-gold,.agp-band .btn-gold{display:inline-block; text-align:center;}
@media (hover:hover) and (pointer:fine){
  a:hover > .agp-arrow{translate:3px 0;}
}

/* 3D like the rest of the site (Alex, 2026-12-05, after first asking for flat and then changing his mind: "Should it have a 3D edge like the rest of the website? I think it should").
   The gold buttons are styles.css's own .btn-gold, so they keep its edge, shadow, hover lift and press sink untouched (nothing here overrides them).
   The purple band and card use the SAME slab edge colours as every other panel on the site (--edge-big / --edge-mid / --edge-thin from styles.css: pale-lavender lines
   under the box), not a dark purple edge, which vanished against the dark face and made the band look flat. */

/* ---------- explainer: top button ---------- */
.agp-top{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:20px;}
.agp-top .btn-gold{text-wrap:balance;}
.agp-top small{font-size:13px; font-weight:600; line-height:1.4; color:var(--text-soft);}

/* ---------- explainer: the card ---------- */
.agp-wrap{max-width:820px; margin:0 auto; padding:0 32px;}
.agp-card{display:grid; grid-template-columns:minmax(0,168px) minmax(0,1fr); gap:0 30px; align-items:center;
  background:var(--ink); color:#fff; border-radius:22px; padding:26px 32px 26px 22px; margin:26px 0 10px;
  box-shadow:var(--edge-mid), 0 20px 32px -18px rgba(47,2,78,.34);}
.agp-card .agp-pic{align-self:stretch; display:flex; align-items:center; justify-content:center;}
.agp-card .agp-pic img{width:100%; height:auto; aspect-ratio:1/1; object-fit:contain;}
.agp-logo{display:block; height:26px; width:auto; margin:0 0 12px;}
.agp-card h2{font-size:clamp(21px,3.4vw,27px); font-weight:800; line-height:1.14; letter-spacing:-.01em; color:#fff; margin:0 0 8px; text-wrap:balance;}
.agp-card p{font-size:14px; line-height:1.6; color:#E7DBF3; margin:0 0 16px; max-width:56ch;}
.agp-actions{display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px;}
.agp-alt{font-size:13.5px; font-weight:700; color:#F1CB6A; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.5px;}
.agp-alt:hover{color:#fff;}
.agp-fine{font-size:13px; line-height:1.5; color:#CDBBE3; margin:14px 0 0 !important;}

/* ---------- explainer: the slim reminder at the end ---------- */
.agp-end{display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; background:var(--surface-warm); border:1px solid #F0E2BC; border-radius:18px; padding:14px 22px 14px 14px; margin:6px 0 30px;
  box-shadow:var(--edge-thin), 0 14px 26px -16px rgba(47,2,78,.28);}
.agp-end .agp-thumb{flex:0 0 auto; width:68px; height:68px; background:#fff; border-radius:14px; display:flex; align-items:center; justify-content:center;}
.agp-end .agp-thumb img{width:100%; height:100%; object-fit:contain; padding:4px;}
.agp-end p{flex:1 1 220px; margin:0; font-size:14px; font-weight:600; line-height:1.5; color:var(--ink);}
.agp-end p small{display:block; margin-top:2px; font-size:13px; font-weight:500; color:var(--text-soft);}

/* ---------- shop: the band on top ---------- */
.agp-band-wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px 18px;}
.agp-band{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); align-items:center; gap:18px 28px;
  background:var(--ink); color:#fff; border-radius:26px; padding:36px 28px 36px 48px; overflow:hidden;
  box-shadow:var(--edge-big), 0 22px 34px -18px rgba(47,2,78,.42);}
.agp-band .agp-logo{height:44px; margin:0 0 20px;}
.agp-band h2{font-size:clamp(28px,3.6vw,40px); font-weight:800; line-height:1.08; letter-spacing:-.018em; color:#fff; margin:0 0 12px; text-wrap:balance;}
.agp-band p{font-size:15px; line-height:1.65; color:#E7DBF3; margin:0 0 22px; max-width:52ch;}
.agp-band .agp-fine{margin:16px 0 0 !important;}
.agp-band .btn-gold{padding:15px 28px;}
/* the floating vials: the Alchemy Gold Research home page's own five pictures, places, tilts and bob timings, so the two sites read as one family.
   Sizes are percentages of the canvas, so the arrangement keeps its shape at every width. Each vial is a link to its product page. */
.agp-stage{position:relative; min-width:0;}
.agp-canvas{position:relative; width:100%; aspect-ratio:1.445;}
.agp-vial{position:absolute; left:var(--x); top:var(--y); width:var(--w); z-index:var(--z); display:block; outline:none; -webkit-tap-highlight-color:transparent;}
.agp-tilt{position:relative; transform:rotate(var(--r,0deg)); transition:filter .5s var(--ease-out), scale .16s var(--ease-out);}
.agp-tilt img{display:block; width:100%; height:auto; position:relative; z-index:2;}
.agp-vial:active .agp-tilt{scale:.97;}
.agp-v-bpc{--x:27.8%; --y:10.9%; --w:27%; --z:4; --r:3deg;}
.agp-v-kpv{--x:5%; --y:24%; --w:20.5%; --z:3; --r:-9deg;}
.agp-v-tb{--x:62.3%; --y:3.9%; --w:16%; --z:2; --r:8deg;}
.agp-v-ghk{--x:57.3%; --y:55%; --w:15.5%; --z:2; --r:-6deg;}
.agp-v-nad{--x:79.5%; --y:30%; --w:15.5%; --z:2; --r:1deg;}
.agp-glow,.agp-tag{display:none;}
.agp-mote{position:absolute; z-index:1; left:var(--x); top:var(--y); width:var(--s); height:var(--s); border-radius:50%; opacity:0; pointer-events:none;
  background:radial-gradient(circle,#F3DC9A,rgba(230,195,106,0) 70%);}
.agp-vial:focus-visible .agp-tilt{outline:2px solid #F1CB6A; outline-offset:8px; border-radius:10px;}
/* a mouse gets the shadow, the lit vial with its gold glow and its name; a touch screen gets none of those (nothing to hover with, and filters on moving layers cost every frame on a phone) */
@media (hover:hover) and (pointer:fine){
  .agp-tilt{filter:brightness(var(--dim,.92));}
  .agp-tilt img{filter:drop-shadow(0 22px 24px rgba(0,0,0,.4));}
  .agp-glow{display:block; position:absolute; z-index:1; left:50%; top:52%; width:210%; aspect-ratio:1; transform:translate(-50%,-50%) scale(.7); opacity:0; pointer-events:none;
    background:radial-gradient(circle,rgba(240,210,120,.8) 0%,rgba(214,170,64,.36) 30%,rgba(132,86,214,.14) 54%,transparent 70%);
    transition:opacity .5s var(--ease-out), transform .7s cubic-bezier(.16,1,.3,1);}
  .agp-tag{display:inline-flex; align-items:center; position:absolute; z-index:5; left:50%; top:calc(100% - 1.4rem); transform:translate(-50%,8px); white-space:nowrap;
    background:#1c0030; border:1px solid #F1CB6A; border-radius:999px; color:#fff; padding:7px 14px; font-size:13px; font-weight:700; opacity:0; pointer-events:none;
    transition:opacity .3s var(--ease-out), transform .3s var(--ease-out);}
  .agp-vial:hover,.agp-vial:focus-visible{z-index:9;}
  .agp-vial:hover .agp-tilt,.agp-vial:focus-visible .agp-tilt{filter:brightness(1.12) saturate(1.1); transition-duration:.22s;}
  .agp-vial:hover .agp-glow,.agp-vial:focus-visible .agp-glow{opacity:1; transform:translate(-50%,-50%) scale(1); transition-duration:.3s,.6s;}
  .agp-vial:hover .agp-tag,.agp-vial:focus-visible .agp-tag{opacity:1; transform:translate(-50%,0);}
  .agp-canvas:has(.agp-vial:hover) .agp-vial:not(:hover) .agp-tilt{filter:brightness(.55) saturate(.75);}
}
@media (prefers-reduced-motion:no-preference){
  .agp-vial{animation:agpRise 1.2s cubic-bezier(.16,1,.3,1) both; animation-delay:calc(.1s + var(--i,0) * .09s);}
  .agp-float{animation:agpBob var(--bob,8s) ease-in-out infinite alternate; animation-delay:var(--bd,0s);}
  .agp-mote{animation:agpMote var(--t,8s) ease-in-out var(--dl,0s) infinite;}
}
@keyframes agpRise{from{opacity:.3; translate:0 44px;} to{opacity:1; translate:0 0;}}
@keyframes agpBob{from{transform:translateY(-9px) rotate(-.8deg);} to{transform:translateY(9px) rotate(.8deg);}}
@keyframes agpMote{0%{opacity:0; transform:translateY(24px) scale(.6);} 25%{opacity:.85;} 70%{opacity:.5;} 100%{opacity:0; transform:translateY(-70px) scale(1.1);}}

/* ---------- shop: the first tab and its panel ---------- */
.shop-tabs button.agp-tab{border-color:var(--gold); border-width:2px; padding:9px 17px;}
.shop-tabs button.agp-tab span{background:var(--gold); color:var(--on-gold);}
.shop-tabs button.agp-tab[aria-selected="true"]{background:var(--ink); color:#fff; border-color:var(--ink);}
.shop-tabs button.agp-tab[aria-selected="true"] span{background:var(--gold); color:var(--on-gold);}
.agp-prod .pimg{background:var(--surface);}
.agp-prod .pimg img{padding:10px;}
.agp-prod .pbody{gap:10px;}
.agp-prod h3{min-height:0;}
.agp-prod .agp-more{font-size:13px; font-weight:700; color:var(--gold-ink); text-decoration:underline; text-underline-offset:4px; align-self:flex-start;}
.agp-prod .agp-more:hover{color:var(--ink);}
.agp-prod .btn-gold{margin-top:auto; text-align:center; padding-left:12px; padding-right:12px;}
.agp-prod .agp-note{font-size:13px; color:var(--text-faint); margin:0;}
.agp-foot{max-width:var(--maxw); margin:22px auto 0; padding:0 32px; font-size:13px; line-height:1.6; color:var(--text-soft);}

/* ---------- phone ---------- */
@media (max-width:820px){
  .agp-band{grid-template-columns:1fr; padding:28px 22px 22px;}
  .agp-stage{order:2; margin:0 -8px;}
}
@media (max-width:720px){
  .agp-wrap{padding:0 18px;}
  .agp-band-wrap{padding:0 18px 14px;}
  .agp-card{grid-template-columns:1fr; padding:22px 20px 22px; gap:14px;}
  .agp-card .agp-pic{justify-content:flex-start; order:2;}
  .agp-card .agp-pic img{width:132px;}
  .agp-foot{padding:0 18px;}
}
@media (max-width:520px){
  .agp-card .agp-pic{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .agp-arrow{transition:none;}
}
