/* store-3d.css, the shop in three dimensions (v18.66).

   Loaded by /store/ and every /store/<slug>/ page, next to store-3d.js.
   Nothing in here shows until store-3d.js adds .s3-on to <body>, so if the
   script does not run, or the browser cannot do 3D, the shop is the flat
   page it was before.

   What is where:
     the night sky       .s3-sky        fixed behind every shop page
     the collection ring .s3-stage      /store/
     the collection wall .s3-banner, .s3-card   /store/?line=...
     the photo cube      .s3-cube-wrap  /store/<slug>/

   People who ask their device for less motion get the same layout, standing
   still: no drift, no tilt, no fly-in. */

/* store-3d.js looks for this before drawing anything in 3D. If this file did
   not load, the script stands down and the flat shop shows. */
:root{--s3-css:1}

/* ------------------------------------------------------------------ sky */
/* z-index -1 puts it above the page ground and under everything else without
   touching the stacking of the header, the menus or the bag. The body's own
   green has to step aside for it to show. */
.s3-sky{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(95% 60% at 50% 112%,rgba(201,162,39,.17) 0%,rgba(201,162,39,0) 62%),
    linear-gradient(180deg,#050F0A 0%,#0A1810 32%,#11261A 68%,#16301F 100%)}
.s3-sky canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
body.s3-on{background:transparent}   /* store-3d.js gives <html> the green instead */
/* The footer sits inside the centred column. Let its ground run edge to edge
   so the sky does not show down either side of it on a wide screen. */
body.s3-on footer{box-shadow:0 0 0 100vmax #16301F;clip-path:inset(0 -100vmax)}
/* On the ring page the tree line stands right on the footer. */
body.s3-home footer{border-top-color:rgba(22,48,31,0) !important}

body.s3-on .hero{padding:74px 0 4px}
body.s3-on .hero h1{font-size:clamp(34px,6.4vw,58px);margin:0 0 10px}
body.s3-on .hero .lede{font-size:15.5px;line-height:1.55;margin:0 auto 4px;max-width:500px}
/* Inside a collection the banner does the talking. */
body.s3-line .hero{padding:70px 0 0}
body.s3-line .hero .lede{display:none}
body.s3-line .hero h1{font-size:clamp(26px,4.6vw,40px);margin:0 0 18px}

/* ----------------------------------------------------- the collection ring */
.s3-stage{--s3-w:min(66vw,290px);--s3-ph:calc(var(--s3-w)*1.32);
  position:relative;width:100vw;margin-left:calc(50% - 50vw);padding:14px 0 96px;overflow:hidden;
  -webkit-user-select:none;user-select:none}
@media (min-width:700px){.s3-stage{--s3-w:320px;padding-bottom:118px}}
@media (min-width:1100px){.s3-stage{--s3-w:350px}}
@media (max-height:700px) and (max-width:699px){.s3-stage{--s3-w:min(58vw,250px)}}

.s3-scene{position:relative;z-index:2;height:calc(var(--s3-ph) + 56px);touch-action:pan-y;cursor:grab;outline:none}
.s3-scene.is-drag{cursor:grabbing}
/* On a wide screen the side panels wrap further round, so give them headroom. */
@media (min-width:700px){.s3-scene{height:calc(var(--s3-ph)*1.12 + 44px)}}
/* The two wrappers only hold the panels. They must not catch taps: they
   cover the whole scene and would swallow the ones meant for a panel. */
.s3-sway,.s3-ring{position:absolute;inset:0;pointer-events:none}
.s3-sway{animation:s3sway 9s ease-in-out infinite}
@keyframes s3sway{0%,100%{transform:translate3d(0,3px,0)}50%{transform:translate3d(0,-4px,0)}}

.s3-panel{pointer-events:auto;position:absolute;left:50%;top:50%;width:var(--s3-w);height:var(--s3-ph);
  margin:calc(var(--s3-ph)/-2) 0 0 calc(var(--s3-w)/-2);display:block;text-decoration:none;color:#F5F1E4;
  will-change:transform,opacity;border-radius:18px;outline:none;
  -webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
/* Each panel is one flat tile on its own layer, and store-3d.js gives it the
   whole camera in its own transform. Do not put perspective on .s3-scene or
   transform-style: preserve-3d on anything here to "simplify" that: with the
   panels sharing one 3D space, Chrome stopped painting the collection on the
   left at several phone sizes. Blurred box-shadows on a turning panel caused
   the same thing, so edges are borders and gradients. */
.s3-photo{position:absolute;inset:0;border-radius:18px;overflow:hidden;background:#1E4029;border:1px solid rgba(201,162,39,.34)}
.s3-photo img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;pointer-events:none}
.s3-photo::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(5,15,10,.12) 0%,rgba(5,15,10,0) 30%,rgba(5,15,10,.55) 62%,rgba(5,15,10,.94) 100%)}
.s3-dim{position:absolute;inset:0;border-radius:18px;background:#050F0A;opacity:0;pointer-events:none}
.s3-frame{position:absolute;inset:9px;border:1px solid rgba(201,162,39,.5);border-radius:12px;pointer-events:none}
.s3-txt{position:absolute;left:0;right:0;bottom:0;padding:0 22px 24px;pointer-events:none;will-change:transform}
.s3-txt .k{display:block;font-size:10.5px;font-weight:600;letter-spacing:.26em;text-transform:uppercase;color:#C9A227;margin:0 0 6px}
.s3-txt h2{font-family:'Cormorant Garamond','CormorantFallback',Georgia,serif;font-size:clamp(30px,8.4vw,40px);font-weight:500;line-height:1;margin:0 0 8px;color:#F5F1E4}
.s3-txt p{margin:0 0 14px;font-size:13.5px;line-height:1.45;color:rgba(245,241,228,.86)}
.s3-go{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 16px;border-radius:999px;white-space:nowrap;max-width:100%;
  background:#C9A227;color:#16301F;font-size:11.5px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;
  transition:opacity .3s ease,transform .3s ease}
.s3-panel:not(.is-front) .s3-go{opacity:0;transform:translateY(6px)}
.s3-panel:focus-visible .s3-photo{border-color:#E0BC4A;outline:2px solid #E0BC4A;outline-offset:3px}

.s3-floor{position:absolute;left:50%;bottom:-18px;width:min(130vw,980px);height:150px;transform:translateX(-50%);z-index:1;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%,rgba(224,188,74,.2) 0%,rgba(201,162,39,.06) 45%,rgba(201,162,39,0) 72%)}

.s3-trees{position:absolute;left:0;bottom:0;height:210px;width:calc(100% + 1400px);pointer-events:none;will-change:transform;
  background:url(/assets/store/pines-near.svg) repeat-x left bottom;z-index:1}
.s3-trees.far{height:150px;bottom:6px;width:calc(100% + 1200px);background-image:url(/assets/store/pines-far.svg);opacity:.85;z-index:0}

/* Ground mist: the foot of the tree line fades into the footer's green. */
.s3-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:44px;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(22,48,31,0) 0%,#16301F 92%)}

.s3-ctrl{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:2px}
.s3-arrow{width:46px;height:46px;border-radius:50%;border:1px solid rgba(201,162,39,.55);background:rgba(10,24,16,.72);
  color:#C9A227;font-size:19px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;font-family:inherit}
@media (hover:hover){.s3-arrow:hover{background:#C9A227;color:#16301F}}
.s3-dots{display:flex;align-items:center;gap:2px}
.s3-dots button{width:30px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.s3-dots button::before{content:"";width:8px;height:8px;border-radius:999px;background:rgba(245,241,228,.34);transition:width .3s ease,background .3s ease}
.s3-dots button[aria-current="true"]::before{width:22px;background:#C9A227}
.s3-arrow:focus-visible,.s3-dots button:focus-visible{outline:2px solid #E0BC4A;outline-offset:2px}
.s3-hint{position:relative;z-index:3;text-align:center;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(245,241,228,.62);margin:10px 0 0;transition:opacity .5s ease}
.s3-hint.is-gone{opacity:0}
.s3-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Stepping into a collection: the front panel comes at you and the page dims. */
.s3-veil{position:fixed;inset:0;z-index:40;background:#050F0A;opacity:0;pointer-events:none}

/* ------------------------------------------------- inside one collection */
body.s3-on .tabs a{background:rgba(10,24,16,.55)}
body.s3-on .tabs a[aria-current="page"]{background:var(--green)}

.line-head.s3-banner{background:none;border:0;overflow:visible;border-radius:0;gap:clamp(18px,3vw,40px);margin:0 0 26px}
.s3-banner-media{position:relative;border-radius:18px;will-change:transform;
  transform:perspective(1200px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--tz,0px))}
.s3-banner-media .ph{border-radius:18px;overflow:hidden;border:1px solid rgba(201,162,39,.34)}
.s3-banner-media::after{content:"";position:absolute;left:4%;right:4%;bottom:-30px;height:58px;pointer-events:none;z-index:-1;
  background:radial-gradient(50% 50% at 50% 50%,rgba(0,0,0,.6),rgba(0,0,0,0) 70%)}
.line-head.s3-banner .s3-banner-media img{width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;display:block}
.s3-banner-media .fr{position:absolute;inset:9px;border:1px solid rgba(201,162,39,.5);border-radius:12px;pointer-events:none}
.s3-banner-media .tag{position:absolute;left:18px;bottom:18px;transform:translate3d(calc(var(--px,0)*1.7px),calc(var(--py,0)*1.7px),0);background:#C9A227;color:#16301F;
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;padding:8px 14px;border-radius:999px}
.line-head.s3-banner .copy{padding:6px 0}
@media (max-width:720px){.line-head.s3-banner{gap:18px}.line-head.s3-banner .copy{padding:0 4px}}

.s3-grid{padding-top:22px}
.card.s3-card{position:relative;background:none;border:0;overflow:visible;border-radius:16px;outline:none;
  opacity:0;transform:perspective(900px) translate3d(0,46px,-130px) rotateX(16deg);
  transition:opacity .7s ease,transform .9s cubic-bezier(.2,.8,.2,1);transition-delay:var(--s3-d,0ms)}
.card.s3-card.is-in{opacity:1;transform:none}
.s3-card-in{position:relative;display:flex;flex-direction:column;height:100%;border-radius:16px;background:#16301F;
  border:1px solid rgba(201,162,39,.24);will-change:transform;
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--tz,0px))}
.card.s3-card .img-wrap{border-radius:15px 15px 0 0;aspect-ratio:1/1}
.card.s3-card .body{padding:16px 16px 18px;transform:translate3d(calc(var(--px,0)*1px),calc(var(--py,0)*1px),0)}
.card.s3-card .price{position:absolute;top:12px;right:12px;transform:translate3d(calc(var(--px,0)*1.7px),calc(var(--py,0)*1.7px),0);background:rgba(10,24,16,.84);
  border:1px solid rgba(201,162,39,.45);color:#E0BC4A;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px}
.s3-glare{position:absolute;inset:0;border-radius:16px;pointer-events:none;opacity:var(--go,0);
  background:radial-gradient(260px circle at var(--gx,50%) var(--gy,0%),rgba(255,243,200,.26),rgba(255,243,200,0) 62%)}
.card.s3-card:focus-visible .s3-card-in{border-color:#E0BC4A;outline:2px solid #E0BC4A;outline-offset:2px}
@media (hover:hover){.card.s3-card:hover .s3-card-in{border-color:rgba(201,162,39,.6)}}

/* --------------------------------------------------------- the photo cube */
.gallery .main.s3-cube-wrap{position:relative;overflow:hidden;touch-action:pan-y;cursor:grab;outline:none;
  background:#0A1810;-webkit-user-select:none;user-select:none;isolation:isolate;
  /* Safari lets turning faces poke past rounded corners unless the box is masked. */
  -webkit-mask-image:-webkit-radial-gradient(white,black);mask-image:radial-gradient(white,black)}
.gallery .main.s3-cube-wrap.is-drag{cursor:grabbing}
.gallery .main.s3-cube-wrap.is-single{cursor:default}
.s3-cube{position:absolute;inset:0}
.s3-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#1E4029;overflow:hidden;will-change:transform}
.gallery .main.s3-cube-wrap .s3-face img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;pointer-events:none}
.s3-face i{position:absolute;inset:0;background:#050F0A;opacity:0;pointer-events:none}
.s3-cube-wrap .s3-glare{border-radius:0;transform:none;z-index:2}
.s3-cube-btn{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-22px;border-radius:50%;border:1px solid rgba(201,162,39,.55);
  background:rgba(10,24,16,.72);color:#C9A227;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;font-family:inherit}
.s3-cube-btn.prev{left:10px}.s3-cube-btn.next{right:10px}
@media (hover:hover){.s3-cube-btn:hover{background:#C9A227;color:#16301F}}
.s3-cube-btn:focus-visible,.gallery .main.s3-cube-wrap:focus-visible{outline:2px solid #E0BC4A;outline-offset:2px}
.s3-count{position:absolute;right:12px;top:12px;z-index:3;background:rgba(10,24,16,.78);border:1px solid rgba(201,162,39,.4);color:#F5F1E4;
  font-size:12px;letter-spacing:.08em;padding:5px 11px;border-radius:999px}
.s3-turn{position:absolute;left:50%;bottom:12px;z-index:3;transform:translateX(-50%);white-space:nowrap;background:rgba(10,24,16,.78);
  border:1px solid rgba(201,162,39,.4);color:#F5F1E4;font-size:11px;letter-spacing:.18em;text-transform:uppercase;padding:7px 14px;border-radius:999px;
  transition:opacity .5s ease;pointer-events:none}
.s3-turn.is-gone{opacity:0}
.is-single .s3-cube-btn,.is-single .s3-count,.is-single .s3-turn{display:none}

body.s3-on .pd .gallery,body.s3-on .pd .info{animation:s3in .8s cubic-bezier(.2,.8,.2,1) both}
body.s3-on .pd .info{animation-delay:.12s}
@keyframes s3in{from{opacity:0;transform:translate3d(0,26px,0)}to{opacity:1;transform:none}}

/* ---------------------------------------------------------- less motion */
@media (prefers-reduced-motion:reduce){
  .s3-sway{animation:none}
  .card.s3-card{opacity:1;transform:none;transition:none}
  .s3-go,.s3-dots button::before,.s3-hint,.s3-turn{transition:none}
  body.s3-on .pd .gallery,body.s3-on .pd .info{animation:none}
}
