/* ==========================================================================
   Luev Galleries — journey screens (G2): gate, verified session, choose, free download,
   hi-res / prints pickers, sticker builder, checkout return, account, galleries index.
   Built from style.css's tokens and components (.add-btn, .seg/.chip, .option, .stepper,
   .buy/.price, .pill-link, .link-btn, .eyebrow). Properties GSAP animates never transition.
   ========================================================================== */

/* ---------- screens ---------- */

.jscreen {
  position: absolute;
  inset: 0;
}

.jscreen.is-leaving { pointer-events: none; }

.jscreen__scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jscreen__scroll::-webkit-scrollbar { display: none; }

.jscreen__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--chrome-top) + clamp(24px, 5.5vh, 60px)) var(--gutter) calc(128px + env(safe-area-inset-bottom));
}

.jscreen--wide .jscreen__inner { max-width: 1400px; }
.jscreen[data-screen="account"] .jscreen__inner { max-width: 940px; }

/* ---------- headings and small parts ---------- */

.jhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.jhead--left { align-items: flex-start; text-align: left; }
.jhead--message { padding-top: clamp(16px, 11vh, 132px); margin-bottom: 0; }
.jhead--hero { padding-top: clamp(4px, 3vh, 32px); }

.jtitle {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}

.jtitle--sm { font-size: clamp(30px, 3vw, 46px); }
.jtitle--hero { max-width: none; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.1; }

.jtext {
  margin: 14px 0 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.jtext[hidden],
.jtext:empty { display: none; }

.jmeta {
  margin: 14px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.jsel { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; }

/* the event discount, said once above the offers (luev.discounts) */
.jdisc {
  margin: 16px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(231, 185, 138, 0.45);
  color: var(--warm);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.jsel__thumbs { display: flex; align-items: center; padding-left: 10px; }

.jsel__thumbs img,
.jsel__more {
  width: 34px;
  height: 42px;
  margin-left: -10px;
  border-radius: 3px;
  object-fit: cover;
  background: #18181a;
  box-shadow: 0 0 0 2px var(--bg), 0 8px 16px -8px rgba(0, 0, 0, 0.9);
}

.jsel__more { display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--muted); }

/* scrolled content passes under the fixed chrome: header and step bar get a backing */
body.jscrolled .nav::before { opacity: 1; }
body.jscrolled.has-stepbar .nav::before { inset: 0; background: var(--bg); }

body.jscrolled.has-stepbar .stepbar {
  background: rgba(10, 10, 11, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.jinline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.jinline:hover { color: var(--ink); text-decoration-color: currentColor; }
.jinline:disabled { opacity: 0.4; text-decoration: none; }

.jactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.jactions .add-btn { flex: none; min-width: 240px; }

.jempty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 0;
  text-align: center;
}

.jempty .pill-link { margin-top: 18px; }

.jempty__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  font-variation-settings: "opsz" 48;
}

.jfoot { margin: 56px 0 0; text-align: center; }

/* an indeterminate hairline: something is on its way */
.jwait,
.dl__line {
  position: relative;
  display: block;
  width: 180px;
  height: 1px;
  margin: 36px auto 0;
  overflow: hidden;
  background: var(--line);
}

.jwait::after,
.dl__line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--ink);
  animation: jslide 1.5s var(--ease-in-out) infinite;
}

@keyframes jslide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.jdemo {
  width: max-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(231, 185, 138, 0.42);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--warm);
}

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 7px; }

.field__label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.field__note { font-weight: 400; color: var(--faint); }

.field__input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px: phones don't zoom into the field */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.field__input::placeholder { color: rgba(241, 238, 232, 0.32); }
.field__input:hover { border-color: rgba(241, 238, 232, 0.36); }
.field__input:focus { outline: none; border-color: var(--ink); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--ink); }
.field.is-invalid .field__input { border-color: var(--warm); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 1px var(--warm); }

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 40px #18181a inset;
  caret-color: var(--ink);
}

.field__error,
.form-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warm);
}

.field__error { font-size: 12px; }
.field__error:empty,
.form-error:empty { display: none; }

/* checkbox: the label is the hit area, the box is drawn */
.tick {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.tick input {
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
}

.tick__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.tick:hover .tick__box { box-shadow: inset 0 0 0 1.5px rgba(241, 238, 232, 0.5); }
.tick input:checked + .tick__box { background: var(--ink); color: var(--bg); box-shadow: none; }
.tick input:checked ~ .tick__label { color: var(--ink); }
.tick input:focus-visible + .tick__box { outline: 1px solid var(--ink); outline-offset: 3px; }
.tick__note { margin-left: 4px; font-size: 12px; color: var(--faint); }

/* ---------- gate ---------- */

body.is-gated .nav { visibility: visible; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
}

.gate__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 18%, rgba(255, 255, 255, 0.075), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(0, 0, 0, 0.9), transparent 60%);
}

.gate__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gate__scroll::-webkit-scrollbar { display: none; }

.gate__inner {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(12px, 6vh, 64px)) var(--gutter) calc(48px + env(safe-area-inset-bottom));
}

.gate__eyebrow { margin-bottom: 16px; }

.gate__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}

.gate__text { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.gate__form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }

.gate__ig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 6px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.gate__follow { justify-content: center; height: 46px; gap: 10px; }
.gate__follow:hover { border-color: rgba(241, 238, 232, 0.45); }

.gate__actions { margin-top: 4px; }

.gate .add-btn,
.verify .add-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

.gate__alt { margin: 22px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.gate__link {
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gate__dev { margin: 4px 0 0; text-align: center; }
.gate__verify { margin-top: 26px; }

.jdev {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.jdev:hover { color: var(--ink); }

/* ---------- verified session: 6-digit code ---------- */

.verify { display: flex; flex-direction: column; gap: 16px; }
.verify .jdev { align-self: flex-start; }

.verify__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
}

.verify__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.verify__text b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.verify__form { display: flex; flex-direction: column; gap: 14px; }

/* one real input (paste, autofill, numeric keyboard) laid over six drawn cells */
.otp {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  height: 64px;
  cursor: text;
}

.otp__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  font-size: 16px;
}

.otp__input::selection { background: transparent; }

.otp__cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.otp__cell {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  font-variant-numeric: tabular-nums lining-nums;
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out), opacity 0.3s;
}

.otp__cell.is-filled { box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.45); }
.otp__cell.is-active { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255, 255, 255, 0.05); }

.otp__cell.is-active:not(.is-filled)::after {
  content: "";
  width: 1px;
  height: 26px;
  background: var(--ink);
  animation: jblink 1.05s steps(1) infinite;
}

@keyframes jblink { 50% { opacity: 0; } }

.otp.is-busy .otp__cell { opacity: 0.5; }

.verify__row { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: -4px; }

.verify__link {
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.verify__link:hover { color: var(--ink); }
.verify__link:disabled { text-decoration: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.verify__hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }

/* the same step in a dialog (checkout) */
.jdialog {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.jdialog__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.jdialog__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 6px 28px 28px;
  border-radius: 20px;
  background: #111113;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.jdialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.jdialog__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.15;
  font-variation-settings: "opsz" 48;
}

/* ---------- notice: a calm note at the bottom ---------- */

.jnotice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(clamp(20px, 4vh, 40px) + 30px + env(safe-area-inset-bottom)); /* clear of the gallery's hint */
  z-index: 56;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px 14px;
  padding: 8px 8px 8px 18px;
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

/* above the action bar, and (wider screens) clear of the hint that rides above it at 96px */
body.has-actionbar .jnotice { bottom: calc(126px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  body.has-actionbar .jnotice { bottom: calc(100px + env(safe-area-inset-bottom)); } /* phones hide the hint there */
}

.jnotice__text { margin: 0; max-width: 48ch; }

.jnotice__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jnotice__link:hover { color: var(--ink); }

.jnotice__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s;
}

.jnotice__close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* choose: the catalog request failed — a quiet line with "Try again" (js/journey/choose.js) */
.jprices {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- choose: four offers ---------- */

.offers {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.offers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 940px; }
.offers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.offers--1 { grid-template-columns: minmax(0, 340px); justify-content: center; }

.offers__item { display: flex; }

.offer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: box-shadow 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}

.offer:hover { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.offer:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 16px; }

.offer__media {
  position: relative;
  display: block;
  height: clamp(190px, 25vh, 236px);
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 20%, #1d1d20, #0f0f11 70%);
  box-shadow: inset 0 -1px 0 var(--line);
}

.offer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 20px;
}

.offer__price {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}

.offer__desc { flex: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }

.offer__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

.offer__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.offer__arrow svg { transition: transform 0.6s var(--ease-out); }
.offer:hover .offer__arrow { background: var(--ink); color: var(--bg); box-shadow: none; }
.offer:hover .offer__arrow svg { transform: translateX(2px); }

/* previews made of the selected photos */
.pv { position: absolute; inset: 0; display: block; }
.pv img { display: block; object-fit: cover; background: #18181a; }

.pv__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.74);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* free: a fanned stack */
.pv-fan img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --r: 0deg;
  --tx: 0%;
  transform: translate(-50%, -50%) translateX(var(--tx)) rotate(var(--r));
  transition: transform 0.8s var(--ease-out);
}

.pv-fan img:nth-child(1):not(:last-of-type) { --r: -10deg; --tx: -30%; }
.pv-fan img:nth-child(2):not(:last-of-type) { --r: 9deg; --tx: 30%; }
.offer:hover .pv-fan img:nth-child(1):not(:last-of-type) { --r: -14deg; --tx: -46%; }
.offer:hover .pv-fan img:nth-child(2):not(:last-of-type) { --r: 13deg; --tx: 46%; }
.offer:hover .pv-fan img:last-of-type { --r: -1deg; }

/* hi-res: the whole frame, with crop marks at its corners */
.pv-crop img {
  position: absolute;
  inset: 24px 30px;
  width: calc(100% - 60px);
  height: calc(100% - 48px);
}

.pv-crop__mark {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 0 solid rgba(241, 238, 232, 0.8);
  transition: transform 0.7s var(--ease-out);
}

.pv-crop__mark--tl { left: 18px; top: 12px; border-left-width: 1px; border-top-width: 1px; }
.pv-crop__mark--tr { right: 18px; top: 12px; border-right-width: 1px; border-top-width: 1px; }
.pv-crop__mark--bl { left: 18px; bottom: 12px; border-left-width: 1px; border-bottom-width: 1px; }
.pv-crop__mark--br { right: 18px; bottom: 12px; border-right-width: 1px; border-bottom-width: 1px; }
.offer:hover .pv-crop__mark--tl { transform: translate(-4px, -4px); }
.offer:hover .pv-crop__mark--tr { transform: translate(4px, -4px); }
.offer:hover .pv-crop__mark--bl { transform: translate(-4px, 4px); }
.offer:hover .pv-crop__mark--br { transform: translate(4px, 4px); }
.pv-crop .pv__tag { left: 30px; bottom: 30px; }

/* prints: a small framed print with its mat, on the wall */
.pv-frame { display: grid; grid-template: 100% / 100%; place-items: center; }

.pv-frame__piece {
  display: block;
  padding: 5px;
  background: linear-gradient(145deg, #2a2a2a, #141414 55%, #0c0c0c);
  box-shadow: 0 26px 40px -16px rgba(0, 0, 0, 0.95), inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}

.pv-frame[data-orient="land"] .pv-frame__piece { width: 64%; aspect-ratio: 5 / 4; }
.pv-frame[data-orient="port"] .pv-frame__piece { height: 76%; aspect-ratio: 4 / 5; }

.pv-frame__mat {
  display: block;
  width: 100%;
  height: 100%;
  padding: 13%;
  background: #f3f1ec;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.pv-frame__mat img { width: 100%; height: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.offer:hover .pv-frame__piece { transform: translateY(-4px); box-shadow: 0 34px 50px -18px rgba(0, 0, 0, 0.95), inset 1px 1px 0 rgba(255, 255, 255, 0.1); }

/* stickers: 4 × 3 in die-cut rectangles (turned like their photo), white edge, a little tilt */
.pv-stk__s {
  position: absolute;
  display: block;
  width: 36%;
  aspect-ratio: 4 / 3;
  padding: 2.2%;
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.8s var(--ease-out);
}

.pv-stk__s[data-orient="port"] { width: 27%; aspect-ratio: 3 / 4; }
.pv-stk__s img { width: 100%; height: 100%; border-radius: 5px; }
.pv-stk__s--1 { left: 11%; top: 20%; transform: rotate(-11deg); }
.pv-stk__s--2 { left: 52%; top: 12%; transform: rotate(8deg); }
.pv-stk__s--3 { left: 31%; top: 46%; transform: rotate(-3deg); }
.offer:hover .pv-stk__s--1 { transform: translate(-6px, -4px) rotate(-16deg); }
.offer:hover .pv-stk__s--2 { transform: translate(6px, -6px) rotate(13deg); }
.offer:hover .pv-stk__s--3 { transform: translateY(4px) rotate(2deg); }

/* ---------- pickers ---------- */

.jbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.jbar__left { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.jbar__count { margin-right: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.jbar__sum { display: flex; align-items: baseline; gap: 14px; }
.jbar__calc { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.jbar__total { font-size: 30px; }

/* justified rows: every tile keeps its photo's ratio, rows fill the width */
.jpick {
  --row-h: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* sizes come from the row layout in kit.js; this is the look before it runs */
.jtile {
  position: relative;
  flex: none;
  height: var(--row-h);
  aspect-ratio: var(--ar);
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c, #121214);
  -webkit-tap-highlight-color: transparent;
}

.jtile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.jtile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.jtile__img.is-loaded { opacity: 1; }
.jtile:not(.is-selected):not(.is-locked) .jtile__img.is-loaded { opacity: 0.36; filter: saturate(0.5); }
.jtile.is-locked .jtile__img.is-loaded { opacity: 0.55; }

.jtile__check {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.jtile .check__badge { width: 24px; height: 24px; }
.jtile.is-locked .jtile__check { display: none; }

.jtile__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.8);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jtile__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 26px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  font-family: var(--serif);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .jtile:hover .jtile__title,
  .jtile:focus-visible .jtile__title { opacity: 1; }
}

/* the sticker builder's photo strip */
.jpick--mini { --row-h: 64px; gap: 8px; }
.jpick--mini .jtile { border-radius: 5px; }
.jpick--mini .jtile__check { width: 34px; height: 34px; }
.jpick--mini .check__badge { width: 18px; height: 18px; }
.jpick--mini .check__badge svg { width: 10px; height: 10px; }
.jpick--mini .jtile__title { display: none; }

/* ---------- free download ---------- */

.dl { max-width: 760px; margin: 0 auto; }
.dl__verify { max-width: 400px; margin: 0 auto; }

.dl__prep { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; }
.dl__chips { display: flex; justify-content: center; gap: 8px; }

.dl__chip {
  width: 44px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background: #141416;
  animation: jbreathe 1.8s var(--ease-in-out) infinite;
}

.dl__chip img { width: 100%; height: 100%; object-fit: cover; }
.dl__chip:nth-child(2) { animation-delay: 0.12s; }
.dl__chip:nth-child(3) { animation-delay: 0.24s; }
.dl__chip:nth-child(4) { animation-delay: 0.36s; }
.dl__chip:nth-child(5) { animation-delay: 0.48s; }
.dl__chip:nth-child(6) { animation-delay: 0.6s; }
.dl__chip:nth-child(7) { animation-delay: 0.72s; }
.dl__chip:nth-child(8) { animation-delay: 0.84s; }

@keyframes jbreathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.dl__line { margin-top: 26px; }

.dl__primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}

.dl__primary .add-btn { flex: none; width: min(100%, 400px); max-width: none; min-width: 0; }
.dl__save[disabled] { opacity: 0.45; }
.dl__note { margin: 0; font-size: 12px; color: var(--faint); text-align: center; }
.dl__hint { max-width: 36ch; margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; }
.dl__hint[hidden],
.dl__progress[hidden] { display: none; }

.dl__progress {
  width: min(100%, 400px);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.dl__bar {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.dl__status { min-height: 1.5em; margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.dl__status.is-warm { color: var(--warm); }

.dl__sub {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl__files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.dl__file {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dl__thumb { display: block; width: 48px; height: 60px; overflow: hidden; border-radius: 3px; background: #141416; }
.dl__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl__info { min-width: 0; }

.dl__name {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variation-settings: "opsz" 24;
}

.dl__meta { display: block; margin-top: 3px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.dl__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.dl__link:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.4); }
.dl__zipline { display: flex; justify-content: center; margin-top: 22px; }
.dl__zipline + .dl__note { margin-top: 10px; }
.dl__zip2 { gap: 10px; }

/* the offer under the downloads: present, never in the way */
.upsell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  max-width: 960px;
  margin: clamp(52px, 9vh, 96px) auto 0;
  padding-top: clamp(36px, 6vh, 56px);
}

.upsell__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }

.upsell__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}

.upsell__text { max-width: 40ch; margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.upsell__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.upsell__actions .add-btn { flex: none; min-width: 220px; }
.upsell__art { position: relative; height: 250px; }
.upsell__frame { right: 18%; }
.upsell__frame[data-orient="port"] .pv-frame__piece { height: 84%; }
.upsell__stk { position: absolute; right: 0; bottom: 0; width: 46%; height: 52%; }
.upsell__stk .pv-stk__s { width: 54%; }
.upsell__stk .pv-stk__s--1 { left: 4%; top: 18%; }
.upsell__stk .pv-stk__s--2 { left: 42%; top: 0; }

/* ---------- sticker builder ---------- */

.jbuild {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 4vw, 72px);
}

.jbuild__info { min-width: 0; max-width: 540px; }
.jbuild__info .jhead { margin-bottom: 8px; }
.stk-peek { display: none; } /* side by side, the sheet is always in view (stacked: see below) */

.jbuild__media {
  position: sticky;
  top: calc(var(--chrome-top) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100svh - var(--chrome-top) - 64px);
  min-height: 360px;
}

/* the builder has no action bar: a short bottom padding keeps the pinned sheet clear of the
   step bar at the end of the scroll (a sticky box can't leave its grid) */
.jscreen[data-screen^="stickers"] .jscreen__inner { padding-bottom: 48px; }

/* The stage for the pack: a light backing sheet (sized by stickers.js around the stickers,
   growing with the sticker size) with the die-cut stickers laid on it. */
.sheet {
  position: relative;
  flex: 1;
  min-height: 0;
}

.sheet__paper {
  position: absolute;
  left: 50%;
  top: calc(50% + 7px); /* half of stickers.js MARK: the stickers stay centered, the mark sits below them */
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.5) 47%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(140% 100% at 20% 0%, #f7f5f0, #ebe8e1 70%, #e3dfd6);
  box-shadow:
    0 40px 70px -36px rgba(0, 0, 0, 0.95),
    0 14px 28px -14px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* the maker's mark, printed small on the backing like on a real sheet */
.sheet__mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  text-align: center;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.3);
  white-space: nowrap;
}

.sheet__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), var(--cell, 100px));
  grid-auto-rows: var(--cell, 100px);
  justify-content: center;
  align-content: center;
}

.stk { display: grid; place-items: center; }

.stk__die {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fdfcfa;
  /* on the light backing: a hairline kiss-cut edge and a soft contact shadow */
  box-shadow: 0 0 0 1px rgba(10, 10, 11, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 12px -6px rgba(0, 0, 0, 0.32), 0 1px 2px rgba(0, 0, 0, 0.16);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.stk__die img { display: block; width: 100%; height: 100%; object-fit: cover; background: #1b1b1e; }

/* a peel hint: on hover one corner lifts off the backing */
.stk__die::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #f6f3ec 0%, #d8d3c8 46%, rgba(0, 0, 0, 0.28) 50%, #e4e0d8 56%);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out);
}

.stk[data-shape="circle"] .stk__die::after { display: none; }

@media (hover: hover) and (pointer: fine) {
  .stk:hover .stk__die {
    transform: translateY(-3px) rotate(-1.5deg);
    box-shadow: 0 0 0 1px rgba(10, 10, 11, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 22px -10px rgba(0, 0, 0, 0.45), 0 3px 6px rgba(0, 0, 0, 0.2);
  }

  .stk:hover .stk__die::after { width: 24%; height: 24%; }
}

.sheet__cap { margin: 0; font-size: 12px; color: var(--faint); text-align: center; }

.stk-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.stk-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.stk-row__title { overflow: hidden; font-family: var(--serif); font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }

.stk-mini {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  touch-action: none;
}

.stk-mini:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.stk-mini__die {
  display: block;
  width: 48px;
  height: 48px;
  padding: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: #fbfaf7;
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.9);
}

.stk-mini__die img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; pointer-events: none; }

.stk-rows[data-shape="rounded"] .stk-mini__die {
  width: min(48px, calc(48px * var(--ar, 1)));
  height: min(48px, calc(48px / var(--ar, 1)));
}

.stk-rows[data-shape="square"] .stk-mini__die { border-radius: 6px; }
.stk-rows[data-shape="square"] .stk-mini__die img { border-radius: 3px; }
.stk-rows[data-shape="circle"] .stk-mini__die,
.stk-rows[data-shape="circle"] .stk-mini__die img { border-radius: 50%; }
.stk-rows:not([data-shape="rounded"]) .stk-mini { cursor: grab; }
.stk-rows:not([data-shape="rounded"]) .stk-mini.is-cropping { cursor: grabbing; }

.stk-even { margin-top: 4px; }
.option__value.is-warm { color: var(--warm); }
.option__value.is-done { color: var(--ink); }

/* ---------- checkout return ---------- */

.receipt { display: flex; flex-direction: column; gap: 22px; max-width: 640px; margin: 40px auto 0; }

.rsec {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--line);
}

.rsec__title {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.rsec__text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }

/* What happens next (prints and stickers): a short rail of steps, the studio step current */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }

.steps__item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }

/* the line from this step's dot down to the next one (the gap is 18px) */
.steps__link {
  position: absolute;
  left: 11px;
  top: 23px;
  bottom: -18px;
  width: 1px;
  background: var(--line-strong);
  transform-origin: top center;
}

.steps__item.is-done .steps__link { background: var(--ink); }

.steps__dot {
  position: relative;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111113;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--bg);
}

.steps__item.is-done .steps__dot { background: var(--ink); box-shadow: none; }

.steps__item.is-now .steps__dot { box-shadow: inset 0 0 0 1px var(--ink); }
.steps__item.is-now .steps__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
/* the step in progress breathes (CSS only: nothing else animates this ring) */
.steps__item.is-now .steps__dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(242, 240, 235, 0.5);
  animation: steps-breathe 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes steps-breathe {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.steps__title { margin: 2px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.25; font-variation-settings: "opsz" 24; }
.steps__item:not(.is-done):not(.is-now) .steps__title { color: var(--muted); }
.steps__text { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* the beat between the cart and the payment page (checkout.js) */
.handoff {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(90% 70% at 50% 40%, #18181b, var(--bg) 70%);
  text-align: center;
}

.handoff__inner { display: flex; flex-direction: column; align-items: center; max-width: 340px; }

.handoff__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
}

.handoff__icon svg { width: 16px; height: 16px; }

.handoff__title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}

.handoff__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.handoff__line {
  position: relative;
  display: block;
  width: 160px;
  height: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
}

.handoff__line > span { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(0); }

.totals { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.totals__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.totals__row dt { margin: 0; }
.totals__row dd { margin: 0; color: var(--ink); }
.totals__row--total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }

/* order lines (return page + account) */
.oitems { list-style: none; margin: 0; padding: 0; }

.oitem {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.oitem:last-child { border-bottom: 0; }

.oitem__media { position: relative; display: block; width: 56px; height: 70px; overflow: hidden; border-radius: 3px; background: #1b1b1e; }
.oitem__media img { width: 100%; height: 100%; object-fit: cover; }
.oitem img.is-broken { visibility: hidden; }

.oitem__stack { position: relative; display: block; width: 56px; height: 70px; }

.oitem__stack img {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #f6f4ef;
  border-radius: 9px;
  background: #1b1b1e;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}

.oitem__stack img:nth-child(1) { transform: translate(-6px, 4px) rotate(-11deg); }
.oitem__stack img:nth-child(2) { transform: translate(6px, 2px) rotate(9deg); }
.oitem__stack img:nth-child(3) { transform: translate(0, -6px) rotate(-2deg); }

.oitem__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oitem__name { font-family: var(--serif); font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; font-variation-settings: "opsz" 24; }
.oitem__meta { font-size: 12px; line-height: 1.5; color: var(--muted); }
.oitem__qty { font-size: 12px; color: var(--faint); }
.oitem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.oitem__left { font-size: 11px; color: var(--faint); }

/* ---------- account ---------- */

.account__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; }
.account__head .jmeta { font-size: 12px; letter-spacing: 0.02em; text-transform: none; overflow-wrap: anywhere; }

@media (min-width: 761px) {
  .account__head .link-btn { margin-bottom: -13px; } /* its label sits on the meta line */
}
.account__verify { max-width: 420px; margin: 32px auto 0; }

.orders { display: flex; flex-direction: column; gap: 18px; }

.order {
  padding: 22px 24px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--line);
}

.order__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order__no { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; font-variation-settings: "opsz" 36; }

.order__demo {
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--muted);
}

.order__date { margin: 4px 0 0; font-size: 12px; color: var(--faint); }

.order__status {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.order__status[data-tone="ok"] { color: var(--ink); }
.order__status[data-tone="done"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.order__status[data-tone="wait"] { color: var(--warm); box-shadow: inset 0 0 0 1px rgba(231, 185, 138, 0.42); }

.order__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order__track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.order__pay { height: 40px; }
.order__total { display: flex; gap: 14px; margin-left: auto; font-size: 15px; font-variant-numeric: tabular-nums; }
.order__total span:first-child { color: var(--muted); }

/* ---------- galleries index ---------- */

.galleries {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.gcard { display: flex; flex-direction: column; gap: 14px; }
.gcard:focus-visible { outline-offset: 6px; }

.gcard__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--c, #1a1a1d) 60%, #1a1a1d), #121214);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 1.4s var(--ease-out);
}

.gcard__media img.is-loaded { opacity: 1; }
.gcard:hover .gcard__media img { transform: scale(1.035); }

.gcard__lock {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* a private gallery shows no cover until it is unlocked: a quiet lock holds its place */
.gcard__private { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(241, 238, 232, 0.16); }
.gcard__private svg { width: 36px; height: 36px; }
.dl__status[hidden] { display: none; }

.gcard__body { display: flex; flex-direction: column; gap: 6px; }
.gcard__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; font-variation-settings: "opsz" 36; }

.gcard__meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- commerce v2 (owner decisions 1–6): Full Pack, digital packs, sticker 6-pack ---------- */

/* inline buttons that come and go (the pack screen's links) */
.jinline[hidden] { display: none; }

/* choose: five offers fit one row on wide screens */
.offers--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1380px; }

/* the popular choice (the Full Pack in paid galleries): a brighter edge and a small tag */
.offer--featured { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.offer--featured:hover { box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.42); }

.offer__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Full Pack: the whole gallery as a contact sheet */
.pv-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 5px;
  padding: 22px 30px 30px;
}

.pv-sheet__cell { display: block; min-height: 0; overflow: hidden; border-radius: 3px; background: #18181a; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.9); }
.pv-sheet__cell img { width: 100%; height: 100%; transition: transform 0.9s var(--ease-out); }
.offer:hover .pv-sheet__cell img { transform: scale(1.06); }
.pv-sheet .pv__tag { left: 30px; bottom: 10px; }

/* hi-res: the pack cards (5 / 10 / 15 photos, the Full Pack) */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.pack {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "n unit" "price price" "per per";
  align-items: baseline;
  gap: 2px 8px;
  min-height: 112px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  color: var(--ink);
  transition: box-shadow 0.45s var(--ease-out), background-color 0.45s var(--ease-out), opacity 0.3s;
}

.pack:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pack:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.pack[aria-checked="true"] { background: rgba(241, 238, 232, 0.07); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pack.is-small { opacity: 0.38; cursor: not-allowed; }
.pack.is-locked { pointer-events: none; }
.pack--full.is-popular:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--line-strong); }

.pack__n {
  grid-area: n;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 48;
}

.pack--full { grid-template-areas: "n n" "unit unit" "price price" "per per"; }
.pack--full .pack__n { font-size: 26px; font-weight: 400; }
.pack__unit { grid-area: unit; font-size: 12px; color: var(--muted); }
.pack__price { grid-area: price; margin-top: 12px; font-size: 18px; font-variant-numeric: tabular-nums; }
/* an event discount: the list price struck beside the price paid */
.pack__was { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); text-decoration-thickness: 1px; }
.pack__per { grid-area: per; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pack__per:empty { display: none; }

.pack__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
}

.pack__tag:empty { display: none; }
.pack[aria-checked="true"] .pack__tag,
.pack--full.is-popular .pack__tag { background: var(--ink); color: var(--bg); box-shadow: none; }

/* what fits, what's left, and the way to the rest of the gallery */
.packnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin: -6px 0 18px;
}

.packnote__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.packnote__text:empty { display: none; }
.packnote .jinline { color: var(--ink); }

.jmore { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.jmore[hidden] { display: none; }

.jmore__title {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the Full Pack: every photo, shown as included (not toggleable) */
.jpick--static .jtile { cursor: default; }
.jpick--static .jtile__check { display: none; }

/* stickers: per photo, how it sits on its 4 × 3 sticker */
.stk-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.stk-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.stk-row__body .stk-row__title { max-width: 100%; }
.stk-row__fit { display: block; }

.stk-row__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.seg--mini { gap: 4px; }
.seg--mini .chip { height: 30px; padding: 0 11px; font-size: 11px; }
.seg--mini .chip::before { content: ""; position: absolute; inset: -7px -2px; }

/* the row's sticker in miniature: sized in JS (4 × 3 or 3 × 4), rounded corners like the die */
.stk-mini .stk-mini__die { padding: 2px; border-radius: 5px; }
.stk-mini .stk-mini__die img { border-radius: 3px; }
.stk-mini.is-fill { cursor: grab; }
.stk-mini.is-fill.is-cropping { cursor: grabbing; }

/* "Whole photo": the photo sits inside the white sticker instead of covering it */
.stk-mini__die.is-fit img,
.stk__die.is-fit img { object-fit: contain; background: transparent; }

.stk-summary { margin: 12px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stk-another { margin-top: 8px; color: var(--ink); }
.stk-another[hidden] { display: none; }

/* the hand-off to Stripe: which shipping option to pick there */
.handoff__note--ship { margin-top: 8px; color: var(--ink); }

/* order lines: a pack's files */
.oitem__stack--digital img { border-color: rgba(255, 255, 255, 0.06); border-radius: 3px; }
.oitem__stack .drawer__badge { z-index: 4; left: 0; bottom: 4px; }
/* a paid pack's downloads: the ZIP pill (or "Save to Photos" on a phone), then every photo, under the line */
.oitem__dl {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.oitem__dl .oitem__zip { flex: 0 1 300px; min-width: 0; height: 52px; }
.oitem__dlmeta { display: flex; align-items: center; gap: 16px; }
.oitem__files { grid-column: 1 / -1; margin-top: 6px; }
.oitem__files .dl__sub { margin-bottom: 10px; }
.oitem__note { margin: 0; font-size: 12px; color: var(--muted); }
.oitem__more { margin-top: 6px; color: var(--ink); }
.oitem__zipline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.oitem__zip2 { gap: 10px; }

/* "Save to Photos" for a pack: the free download's button, progress and hint, left-aligned */
.psave { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.psave[hidden],
.psave__btn[hidden] { display: none; }
.psave__btn { flex: none; width: min(100%, 400px); max-width: none; min-width: 0; height: 52px; }
.psave__btn[disabled] { opacity: 0.45; }
.psave .dl__status,
.psave .dl__hint { max-width: 44ch; text-align: left; }
.psave .dl__status:empty { display: none; }

.ofiles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.ofile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.ofile img, .ofile__ph { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; background: #1b1b1e; }
.ofile__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ofile__name { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ofile__meta { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ofile__spent { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--faint); opacity: 0.4; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .offers--4,
  .offers--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}

@media (max-width: 960px) {
  .jbuild { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .jbuild__info { max-width: none; }

  .jbuild__media {
    order: -1;
    position: relative;
    top: auto;
    height: max(42svh, 290px);
    min-height: 0;
  }

  /* the price and the button stay in reach while the options scroll */
  .jbuild .buy {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    flex-wrap: nowrap; /* "$29.70" and the button share one row: the button gives way */
    gap: 14px;
  }

  .jbuild .buy .price { flex: none; }
  .jbuild .buy .price__value { font-size: 30px; }

  /* the sheet in miniature beside the price while the real one is scrolled away (stickers.js) */
  .stk-peek {
    position: relative;
    flex: none;
    width: 0;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }
  .stk-peek[aria-hidden="true"] { pointer-events: none; }
  .stk-peek:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .stk-peek__paper {
    display: grid;
    grid-template-columns: repeat(var(--pcols, 3), var(--pcell, 12px));
    grid-auto-rows: var(--pcell, 12px);
    padding: 3px 3px 7px;
    border-radius: 3px;
    background: linear-gradient(160deg, #f6f4ef, #e6e2da);
    box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.9);
  }
  .stk-peek__cell { display: grid; place-items: center; }
  .stk-peek__die {
    display: block;
    padding: 1px;
    border-radius: 1.5px;
    background: #fff;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  }
  .stk-peek__die img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
  .jbuild .buy .add-btn { min-width: 0; flex: 1 1 auto; max-width: none; padding: 0 14px 0 22px; }

  .jbuild .buy::after {
    content: "";
    position: absolute;
    inset: -16px calc(-1 * var(--gutter)) 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0), rgba(10, 10, 11, 0.9) 16px, rgb(10, 10, 11) 30px);
  }

  .jscreen[data-screen^="stickers"] .jscreen__inner { padding-bottom: 0; }
  .upsell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .upsell__art { order: -1; height: 190px; }
}

@media (max-width: 760px) {
  .jscreen__inner { padding-top: calc(var(--chrome-top) + 24px); }
  .jhead { margin-bottom: 26px; }
  .jhead--message { padding-top: 8vh; }
  .jtitle { font-size: clamp(28px, 8vw, 36px); }
  .jtitle--hero { font-size: clamp(30px, 8.6vw, 40px); }
  .jtext { font-size: 14px; }

  .offers,
  .offers--3,
  .offers--2,
  .offers--4,
  .offers--5 { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .offer__tag { top: 8px; right: auto; left: 8px; }
  .pv-sheet { padding: 12px 10px 26px; gap: 3px; }
  .pv-sheet .pv__tag { left: 8px; bottom: 6px; }

  /* phones: the packs side by side, the Full Pack (when offered) across the whole row */
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; margin-bottom: 18px; padding-top: 8px; }
  .packs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs--1 { grid-template-columns: minmax(0, 1fr); }
  .pack { min-height: 96px; padding: 14px 12px 10px; column-gap: 5px; }
  .pack__n { font-size: 30px; }
  .pack__unit { font-size: 11px; }
  .pack__price { margin-top: 8px; font-size: 16px; }
  .pack__per { font-size: 10px; }
  /* the tag sits on the card's top edge, clear of the number */
  .pack__tag { top: -8px; right: auto; left: 10px; }

  .pack--full {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "n price" "unit per";
    align-items: baseline;
    min-height: 0;
    padding: 16px 16px 12px;
  }

  .pack--full .pack__n { font-size: 24px; }
  .pack--full .pack__price { margin-top: 0; font-size: 18px; text-align: right; }
  .pack--full .pack__per { text-align: right; }

  .stk-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }

  .offer { flex-direction: row; min-height: 138px; }
  .offer__media { flex: none; width: 116px; height: auto; box-shadow: inset -1px 0 0 var(--line); }
  .offer__body { gap: 4px; padding: 14px 16px 12px; }
  .offer__title { font-size: 20px; }
  .offer__desc { font-size: 12px; }
  .offer__go { margin-top: 6px; }
  .offer__arrow { width: 30px; height: 30px; }
  .pv__tag { left: 8px; bottom: 8px; }
  .pv-crop img { inset: 16px 14px; width: calc(100% - 28px); height: calc(100% - 32px); }
  .pv-crop__mark--tl, .pv-crop__mark--bl { left: 8px; }
  .pv-crop__mark--tr, .pv-crop__mark--br { right: 8px; }
  .pv-crop__mark--tl, .pv-crop__mark--tr { top: 8px; }
  .pv-crop__mark--bl, .pv-crop__mark--br { bottom: 8px; }
  .pv-crop .pv__tag { display: none; }
  .pv-fan img { width: 46%; }
  .pv-frame[data-orient="land"] .pv-frame__piece { width: 80%; }
  .pv-stk__s { width: 42%; }

  .jpick { --row-h: 118px; gap: 6px; }
  .jpick--mini { --row-h: 56px; }
  .jbar__total { font-size: 26px; }

  .dl__file { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .dl__thumb { width: 40px; height: 50px; }
  .dl__link { padding: 0 14px; }
  .dl__link span { display: none; }
  .dl__primary { margin-bottom: 36px; }

  .upsell__actions .add-btn { width: 100%; min-width: 0; }
  .upsell__actions { gap: 10px; }

  .account__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .order { padding: 18px 16px 14px; }
  .order__head { flex-direction: column; gap: 10px; }
  .oitem { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
  .oitem__media, .oitem__stack { width: 48px; height: 60px; }
  /* on a phone the ZIP spans the line, with what's left and "Choose files" under it */
  .oitem__dl { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 4px; }
  .oitem__dl .oitem__zip { flex: none; width: 100%; max-width: none; }
  .oitem__dlmeta { justify-content: space-between; }
  .psave__btn { width: 100%; }
  .oitem__zipline { flex-direction: column; align-items: stretch; }
  .oitem__zip2 { justify-content: center; }

  .galleries { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .jdialog { place-items: end stretch; padding: 0; }

  .jdialog__panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 4px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .jnotice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 10px 6px 4px 16px; }
  .jnotice__text { grid-column: 1; padding-top: 4px; }
  .jnotice__link { grid-column: 1; grid-row: 2; justify-self: start; }
  .jnotice__close { grid-column: 2; grid-row: 1 / span 2; }
  .otp { height: 58px; }
  .otp__cell { font-size: 26px; border-radius: 10px; }
  .otp__cells { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .jwait::after,
  .dl__line::after,
  .dl__chip,
  .otp__cell.is-active:not(.is-filled)::after,
  .steps__item.is-now .steps__dot::after { animation: none; }
}

/* == follow gate (P2) == */
/* Instagram follow gate before a free download (js/journey/download.js) and the signup
   gate's optional @handle (js/journey/session.js). Reuses .gate__ig, .gate__follow,
   .tick and .field. GSAP animates .fg__halo (opacity, scale), .gate__handle (height,
   opacity), the follow label (opacity, y) and the follow button (scale): none of those
   properties transition here. */

.fg { max-width: 440px; margin: 0 auto; }
.fg__form { display: flex; flex-direction: column; gap: 18px; }
.fg__ig { padding-bottom: 8px; }
.fg__follow { width: 100%; }
.gate__follow-label { display: inline-block; }

.fg__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
}

.fg__tick { margin-top: 6px; }

/* the gentle "welcome back" ring around the checkbox */
.fg__halo {
  position: absolute;
  inset: 1px -10px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  background: rgba(241, 238, 232, 0.04);
  box-shadow: inset 0 0 0 1px rgba(241, 238, 232, 0.5), 0 0 28px -8px rgba(241, 238, 232, 0.35);
}

.fg__handle { position: relative; display: block; }

.fg__at {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}

.fg__handle .field__input { width: 100%; padding-left: 33px; }

.fg .add-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

.fg__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
  text-align: center;
}

/* signup gate: "I already follow" opens an optional @handle field */
.gate__handle { overflow: hidden; }
.gate__handle .fg__field { padding: 6px 0 12px; }
.gate__handle[hidden] { display: none; }
/* == end follow gate (P2) == */
