/* ==========================================================================
   Printevr motion — press intro, unboxing story, production line,
   proof-sheet stats, parcel tracking, sticker sheet.
   ========================================================================== */

/* ---------- Press intro ---------- */
.press { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #FBFAF8; }
html:not(.js) .press, .no-intro .press { display: none; }
.press__sheet { position: relative; width: min(560px, 86vw); aspect-ratio: 16 / 10; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(0, 0, 0, .25); display: grid; place-items: center; }
.press__mark { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; opacity: 0; transform: scale(0); }
.press__mark::before, .press__mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.press__mark::before { width: 40px; height: 1.5px; }
.press__mark::after { width: 1.5px; height: 40px; }
.press__mark--tl { left: 18px; top: 18px; } .press__mark--tr { right: 18px; top: 18px; }
.press__mark--bl { left: 18px; bottom: 18px; } .press__mark--br { right: 18px; bottom: 18px; }
.press__logo { position: relative; width: 68%; aspect-ratio: 640 / 222; }
.press__plate { position: absolute; inset: 0; opacity: 0; mix-blend-mode: multiply; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.press__plate--c { background: #00A3E0; } .press__plate--m { background: #E0007A; }
.press__plate--y { background: #FFE600; } .press__plate--k { background: #222; }
.press__final { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.press__caption { position: absolute; left: 0; right: 0; bottom: 18%; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.press__swatches { display: inline-flex; gap: 3px; }
.press__swatches i { width: 10px; height: 10px; transform: scaleY(0); transform-origin: bottom; }
.press__swatches i:nth-child(1) { background: #00A3E0; } .press__swatches i:nth-child(2) { background: #E0007A; }
.press__swatches i:nth-child(3) { background: #FFE600; } .press__swatches i:nth-child(4) { background: #222; }
.press__swatches i:nth-child(5) { background: var(--pink); }

/* ---------- Unboxing story ---------- */
.unbox__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 16px) 0 32px; background: radial-gradient(120% 80% at 70% 50%, var(--pink-50), #fff 70%); overflow: hidden; }
.unbox__grid { display: grid; gap: 12px; align-items: center; width: 100%; }
.unbox__title { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.04; max-width: 15ch; margin-bottom: 20px; }
.unbox__steps { list-style: none; display: grid; gap: 4px; margin-bottom: 24px; }
.unbox__step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; opacity: .35; transition: opacity .4s var(--ease); }
.unbox__step.is-active, .unbox__step.is-done { opacity: 1; }
.unbox__step strong { display: block; font-size: 17px; }
.unbox__step p { color: var(--muted); font-size: 14.5px; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.unbox__step.is-active p { max-height: 80px; }
.unbox__num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 600; transition: all .4s var(--ease); }
.unbox__step.is-active .unbox__num { background: var(--pink); border-color: var(--pink); color: #fff; transform: scale(1.1); }
.unbox__step.is-done .unbox__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.unbox__stage { position: relative; order: -1; height: clamp(260px, 42vh, 560px); display: grid; place-items: center; }
.unbox__progress { position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--pink-100); }
.unbox__progress i { display: block; height: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
@media (min-width: 992px) {
	.unbox__grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
	.unbox__stage { order: 0; height: min(70vh, 620px); }
	.unbox__steps { gap: 8px; }
}
@media (max-width: 991px) {
	.unbox__step { padding: 6px 0; }
	.unbox__step:not(.is-active) { display: none; }
	.unbox__steps { margin-bottom: 16px; min-height: 96px; }
}

/* 3D mailer */
.ub-scene { --W: 300px; --H: 120px; --D: 220px; position: relative; width: var(--W); height: var(--H); perspective: 1400px; transform: translateY(40px); }
@media (max-width: 991px) { .ub-scene { transform: translateY(50px) scale(.72); } }
@media (min-width: 1300px) { .ub-scene { --W: 340px; --H: 136px; --D: 250px; } }
.ub-box { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-26deg) rotateY(-24deg); }
.ub-face, .ub-slot, .ub-hinge { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.ub-front { width: var(--W); height: var(--H); transform: translateZ(calc(var(--D) / 2)); background: linear-gradient(180deg, #E23A66, var(--pink)); display: grid; place-items: center; }
.ub-front img { width: 52%; height: auto; }
.ub-back { width: var(--W); height: var(--H); transform: translateZ(calc(var(--D) / -2)) rotateY(180deg); background: #B81C47; }
.ub-left, .ub-right { width: var(--D); height: var(--H); left: calc((var(--W) - var(--D)) / 2); }
.ub-left { transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); background: #C41F4D; }
.ub-right { transform: rotateY(90deg) translateZ(calc(var(--W) / 2)); background: #9E1840; }
.ub-bottom { width: var(--W); height: var(--D); top: calc((var(--H) - var(--D)) / 2); transform: rotateX(-90deg) translateZ(calc(var(--H) / 2)); background: #7E1334; }
.ub-hinge { width: var(--W); height: 0; transform: translateZ(calc(var(--D) / -2)); }
.ub-lid { position: absolute; left: 0; top: 0; width: var(--W); height: var(--D); transform-origin: 50% 0; transform-style: preserve-3d; transform: rotateX(90deg); }
.ub-lid__out, .ub-lid__in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ub-lid__out { background: linear-gradient(160deg, #E8517A, var(--pink)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ub-lid__out img { width: 56%; height: auto; }
.ub-lid__out small { color: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ub-lid__in { transform: rotateY(180deg); background: #F9DCE4 radial-gradient(circle at 20% 30%, rgba(218, 36, 85, .25) 0 3px, transparent 4px) 0 0 / 26px 26px; }
.ub-item { position: absolute; display: block; }
.ub-tissue { left: 12px; top: 6px; width: calc(var(--W) - 24px); height: calc(var(--H) - 10px); transform: translateZ(40px); background:
	radial-gradient(circle, #DA2455 0 3px, transparent 3.5px) 0 0 / 34px 34px,
	radial-gradient(circle, #33A7C5 0 2.5px, transparent 3px) 12px 17px / 34px 34px,
	radial-gradient(circle, #F4BE1A 0 2.5px, transparent 3px) 24px 6px / 34px 34px,
	radial-gradient(circle, #78B450 0 2px, transparent 2.5px) 6px 26px / 34px 34px, #fff;
	clip-path: polygon(0 8%, 6% 0, 12% 6%, 19% 0, 26% 7%, 33% 1%, 40% 6%, 47% 0, 54% 7%, 61% 0, 68% 6%, 75% 1%, 82% 7%, 89% 0, 95% 6%, 100% 2%, 100% 100%, 0 100%);
	box-shadow: inset 0 -30px 40px -20px rgba(0, 0, 0, .08); }
.ub-card { left: calc(50% - 110px); top: 0; width: 160px; height: 104px; transform: translateZ(-30px); background: #fff; border-radius: 6px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 10px; }
.ub-card em { font-style: normal; font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--pink); }
.ub-card small { font-size: 10px; color: var(--muted); line-height: 1.3; }
.ub-sticker { left: calc(50% + 46px); top: 10px; width: 76px; height: 76px; border-radius: 50%; background: var(--pink); border: 4px solid #fff; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .35); display: grid; place-items: center; transform: translateZ(70px); opacity: 0; }
.ub-sticker img { width: 78%; height: auto; }
.ub-shadow { position: absolute; left: -20%; right: -20%; bottom: -90px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 11, 12, .22), transparent); filter: blur(4px); }
/* Without motion: show the finished unboxing */
.unbox.is-static .ub-lid { transform: rotateX(212deg); }
.unbox.is-static .ub-tissue { transform: translateZ(40px) translateY(-85%) rotateX(-14deg); }
.unbox.is-static .ub-sticker { opacity: 1; transform: translateZ(70px) translateY(-170px) rotate(12deg); }
.unbox.is-static .ub-card { transform: translateZ(-30px) translateY(-150%) rotate(-9deg); }
.unbox.is-static .unbox__step p { max-height: 80px; }
.unbox.is-static .unbox__step { display: flex; opacity: 1; }

/* ---------- Production line ---------- */
.line { overflow: hidden; }
.line__machine { position: relative; padding-top: 24px; }
.line__press { position: absolute; right: max(var(--gutter), 8%); top: -12px; z-index: 3; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.line__press-head { width: 120px; height: 46px; border-radius: 10px 10px 4px 4px; background: var(--ink); position: relative; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.line__press-head::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 40px; height: 8px; transform: translateX(-50%); background: var(--pink); border-radius: 0 0 4px 4px; }
.line__press-label { margin-top: 12px; font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.line__viewport { overflow: hidden; padding: 64px 0 10px; cursor: grab; touch-action: pan-y; user-select: none; }
.line__viewport:active { cursor: grabbing; }
.line__track { display: flex; width: max-content; will-change: transform; }
.line__set { display: flex; gap: 18px; padding-right: 18px; }
.line__item { width: 230px; animation: line-bob 3.2s ease-in-out infinite; animation-delay: var(--d); }
.line__item .p-card { background: #fff; border-radius: var(--r); padding: 8px 8px 12px; box-shadow: 0 16px 30px -18px rgba(11, 11, 12, .35); }
.line__item img { -webkit-user-drag: none; pointer-events: none; }
@keyframes line-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (min-width: 768px) { .line__item { width: 270px; } .line__set { gap: 24px; padding-right: 24px; } }
.line__belt { position: relative; height: 16px; margin: 4px var(--gutter) 0; border-radius: 8px; background: #1B1B1F; overflow: hidden; }
.line__stripes { position: absolute; top: 0; bottom: 0; left: -40px; right: -40px; background: repeating-linear-gradient(90deg, #2E2E35 0 20px, #1B1B1F 20px 40px); }
.line__rollers { display: flex; justify-content: space-between; margin: -3px calc(var(--gutter) + 6px) 0; }
.line__rollers i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #1B1B1F; }
.line__rollers i::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 2px; margin-left: -1px; background: var(--pink); }
@media (max-width: 767px) { .line__rollers i:nth-child(n+8) { display: none; } .line__press { display: none; } .line__viewport { padding-top: 12px; } }
.line.is-static .line__viewport { overflow-x: auto; }
.line.is-static .line__item { animation: none; }

/* ---------- Proof-sheet stats ---------- */
.cbar__sheet { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 22px clamp(16px, 4vw, 48px); box-shadow: 0 40px 70px -40px rgba(11, 11, 12, .3); }
.cbar__strip { display: grid; grid-template-columns: repeat(32, 1fr); gap: 2px; height: 16px; }
.cbar__strip i { background: var(--c); opacity: var(--t); transform-origin: bottom; }
@media (max-width: 767px) { .cbar__strip { grid-template-columns: repeat(16, 1fr); } .cbar__strip i:nth-child(4n+2), .cbar__strip i:nth-child(4n+3) { display: none; } }
.cbar__body { padding: clamp(28px, 5vw, 64px) 0; }
.cbar__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; max-width: 14ch; margin-bottom: clamp(28px, 4vw, 48px); }
.cbar__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 900px) { .cbar__stats { grid-template-columns: repeat(4, 1fr); } }
.cbar__stat { border-left: 4px solid var(--c); padding-left: 16px; }
.cbar__stat strong { display: flex; align-items: baseline; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.cbar__stat strong em { font-style: normal; color: var(--pink); }
.cbar__stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); max-width: 22ch; }
.cbar__slug { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.reg { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.reg::before { width: 34px; height: 1.5px; } .reg::after { width: 1.5px; height: 34px; }
.reg--tl { left: -11px; top: -11px; } .reg--tr { right: -11px; top: -11px; }
.reg--bl { left: -11px; bottom: -11px; } .reg--br { right: -11px; bottom: -11px; }

/* ---------- Parcel tracking ---------- */
.steps__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--soft); font-size: 14px; margin-bottom: 32px; }
.steps__status b { display: inline-block; color: var(--pink); }
.steps__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.steps__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; animation: pulse-ring 1.8s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.steps__parcel { position: absolute; z-index: 3; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(11, 11, 12, .5); transition: background-color .4s; pointer-events: none; }
.steps__parcel.is-delivered { background: var(--success); }
@media (min-width: 900px) { .steps__parcel { margin-top: -62px; } .steps__parcel::after { content: ""; position: absolute; left: 50%; bottom: -10px; border: 6px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); } .steps__parcel.is-delivered::after { border-top-color: var(--success); } }
@media (max-width: 899px) { .steps__parcel { width: 28px; height: 28px; margin: -14px 0 0 30px; border-radius: 8px; } .steps__parcel svg { width: 16px; height: 16px; } }

/* ---------- Sticker sheet (footer) ---------- */
.stickers-sheet { padding-top: 0; margin-bottom: clamp(40px, 6vw, 64px); }
.stickers-sheet__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.stickers-sheet__board { position: relative; height: clamp(170px, 18vw, 230px); border-radius: 18px; border: 1.5px dashed rgba(255, 255, 255, .16); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px); }
.stk { position: absolute; left: var(--x); top: var(--y); transform: rotate(calc(var(--r) + var(--tilt, 0deg))); cursor: grab; user-select: none; touch-action: none; border: 4px solid #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); transition: transform .25s var(--ease), filter .25s; }
.stk.is-lifted { cursor: grabbing; transform: rotate(calc(var(--r) + var(--tilt, 0deg))) scale(1.08); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: filter .25s; }
.stk img { display: block; width: 104px; height: auto; pointer-events: none; }
.stk--logo { background: var(--pink); border-radius: 14px; padding: 10px 14px; }
.stk--circle { width: 60px; height: 60px; border-radius: 50%; background: var(--c); }
.stk--sm { width: 38px; height: 38px; }
.stk--semi { width: 38px; height: 76px; border-radius: 0 76px 76px 0; background: var(--c); border-left: 0; }
.stk--quarter { width: 64px; height: 64px; border-radius: 0 64px 0 0; background: var(--c); }
.stk--arch { width: 56px; height: 72px; border-radius: 28px 28px 0 0; background: var(--c); }
.stk--thanks { padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--pink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.stk--made { padding: 8px 14px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 767px) { .stk img { width: 78px; } .stk--thanks { font-size: 14px; } .stk--made { font-size: 10px; } .stk--circle { width: 44px; height: 44px; } .stk--semi { width: 28px; height: 56px; } .stk--quarter { width: 46px; height: 46px; } .stk--arch { width: 40px; height: 52px; } }
.site-footer__shapes { display: none; }

@media (prefers-reduced-motion: reduce) {
	.press { display: none !important; }
	.line__item, .steps__pulse::after { animation: none !important; }
}
