/* One proportional scene: the QR label and instruction remain live, crisp HTML. */
.landing-store { grid-template-columns: minmax(0, 1fr); }
.landing-store .landing-main { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.hero-scene {
  --parcel-front: #bd9567;
  --parcel-side: #947047;
  --parcel-top: #d6b58a;
  --phone-metal: #9aa2ac;
  --phone-metal-light: #d6d9dd;
  --phone-metal-shade: #626c79;
  --phone-rim: #aeb6c0;
  --phone-key: #929daa;
  --phone-shadow: #27334630;
  --hero-cycle: 4.8s;
  container: hero-scene / inline-size;
  min-width: 0;
}
.hero-scene .landing-live-link { position: relative; }
.hero-scene .landing-live-stage {
  display: block;
  height: 92cqw;
  min-height: 0;
  max-height: none;
  isolation: isolate;
  transform: none;
}
.hero-scene-ground {
  position: absolute;
  inset: 78% 0 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #30466c14, transparent 70%);
  pointer-events: none;
}
.hero-parcel {
  --parcel-depth: 37.5cqw;
  position: absolute;
  left: 7%;
  top: 53%;
  width: 42cqw;
  height: 36.5cqw;
  transform-origin: 50% 65%;
  transform-style: preserve-3d;
  transform: perspective(220cqw) rotateX(-18deg) rotateY(19deg) rotateZ(2deg);
  z-index: 3;
}
/* Ground plane shares the box geometry, so contact follows its bottom edges. */
.hero-parcel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--parcel-depth);
  transform-origin: top;
  transform: rotateX(-90deg) translateZ(.15cqw);
  border-radius: .7cqw;
  background: #26303e38;
  box-shadow: 0 0 1cqw .45cqw #26303e50, 1.2cqw -1cqw 3.2cqw 1.3cqw #27334638;
  pointer-events: none;
}
html[data-theme="dark"] .hero-parcel::after {
  background: #00000060;
  box-shadow: 0 0 1cqw .45cqw #00000078, 1.2cqw -1cqw 3.2cqw 1.3cqw #00000050;
}
.hero-parcel-front, .hero-parcel-side, .hero-parcel-top {
  position: absolute;
  box-sizing: border-box;
  backface-visibility: hidden;
  border: 1px solid #77542b22;
  /* Irregular paper grain avoids the striped look of repeating gradients. */
  background-image: url("/img/parcel-grain.svg?v=20261114"), var(--parcel-light);
  background-size: 128px 128px, 100% 100%, 100% 100%;
}
.hero-parcel-front {
  inset: 0;
  border-radius: .25cqw .4cqw .6cqw .35cqw;
  --parcel-light: radial-gradient(ellipse at 28% 18%, #fff0d33b, transparent 68%), linear-gradient(105deg, #65401e1f, transparent 12%, #f3d5a90d 55%, #69432229);
  background-color: var(--parcel-front);
  box-shadow: inset 0 .15cqw .12cqw #ffe4bda6, inset .15cqw 0 .2cqw #f4d3a44d, inset -.25cqw -.35cqw .45cqw #65401d38, inset 0 -1.3cqw 2cqw #79552c12;
}
.hero-parcel-top {
  left: 0;
  bottom: 100%;
  width: 100%;
  height: var(--parcel-depth);
  --parcel-light: radial-gradient(ellipse at 35% 20%, #fff8e53d, transparent 75%), linear-gradient(165deg, #fff8e519, transparent 60%, #76502720);
  background-color: var(--parcel-top);
  transform-origin: bottom;
  transform: rotateX(90deg);
  border-radius: .5cqw .5cqw 0 0;
  overflow: hidden;
}
.hero-parcel-side {
  right: 100%;
  top: 0;
  width: var(--parcel-depth);
  height: 100%;
  --parcel-light: linear-gradient(90deg, #54371b38, #54371b12 60%, #ffe6be0d);
  background-color: var(--parcel-side);
  box-shadow: inset -1px 0 #6c492638;
  transform-origin: right;
  transform: rotateY(-90deg);
  border-radius: .5cqw 0 0 .5cqw;
}
.hero-parcel-top span, .hero-parcel-seam {
  position: absolute;
  left: 39%;
  top: 0;
  width: 21%;
  height: 100%;
  background:
    linear-gradient(93deg, transparent 10%, #fff3da30 12%, transparent 15%, transparent 70%, #74491d14 72%, #fff5df26 74%, transparent 77%),
    linear-gradient(90deg, #ad793131, #ddbd7960 8%, #edcd8f50 46%, #c79e5545 94%, #93632040);
  border-inline: 1px solid #87602840;
  box-shadow: inset 1px 0 #fff2cc55, inset -1px 0 #ffe5b52b;
  clip-path: polygon(0 0, 100% 0, 99% 27%, 100% 56%, 98% 100%, 78% 99.5%, 53% 100%, 30% 99.2%, 1% 100%, 0 62%, 1% 35%);
}
.hero-parcel-top::after { content: ""; position: absolute; left: 49.5%; top: 0; width: 1px; height: 100%; background: #70533235; box-shadow: 1px 0 #fff1d633; pointer-events: none; }
.hero-parcel-top span {
  background: linear-gradient(173deg, transparent 20%, #fff7e56b 24%, #fff7e519 27%, transparent 31%, transparent 68%, #fff4d840 72%, transparent 77%), linear-gradient(90deg, #bc904944, #f0d4a080 8%, #d6ad6360 93%, #a778354d);
  box-shadow: inset 1px 0 #fff4d977, inset -1px 0 #8a5d2a33;
}
/* Shallow compression creases and folded rims catch the same upper-left light. */
.hero-parcel-front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(133deg, transparent 49%, #6e472327 50%, #f3d5aa40 51%, transparent 53%) 0 0 / 4cqw 4cqw,
    linear-gradient(42deg, transparent 47%, #6e472324 49%, #f3d5aa40 51%, transparent 54%) 100% 100% / 5cqw 3cqw,
    linear-gradient(0deg, transparent 40%, #5d3d1c20 48%, #f8deb33b 54%, transparent 62%) 0 98% / 100% 1cqw;
  background-repeat: no-repeat;
}
.hero-parcel-side::after {
  content: "";
  position: absolute;
  inset: 1% 7% 1% 0;
  pointer-events: none;
  border-block: 1px solid #5e3e2433;
  box-shadow: 0 1px #e0ba8140, inset 0 1px #e0ba812b;
  background: linear-gradient(90deg, transparent 84%, #50321826 93%, #e9c18a26 97%, transparent);
}
.hero-scene .landing-label {
  position: absolute;
  inset: 9% auto auto 21%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 58%;
  min-width: 0;
  padding: .3cqw;
  box-sizing: border-box;
  transform: none;
  translate: none;
  border: 1px solid #e8e4de;
  border-radius: .25cqw;
  color: #182334;
  background: #fff;
  box-shadow: 0 .12cqw .18cqw #4a2d0e35, .15cqw .35cqw .5cqw #4a2d0e18;
}
.hero-scene .landing-label-copy { position: relative; z-index: 1; }
.hero-scene .landing-label-caption { font-size: 2.5cqw; color: #182334; text-align: center; }
.hero-scene .landing-label-qr-wrap { margin-top: -.7cqw; min-width: 0; border-radius: 0; background: white; }
.hero-scene .landing-label-qr,
html[data-theme="dark"] .hero-scene .landing-label-qr { filter: none; }
.hero-parcel-mark { position: absolute; bottom: 5%; left: 8%; color: #573918; font-size: clamp(7px, 2.2cqw, 11px); font-weight: 700; letter-spacing: .08em; }
.hero-scene .landing-live-phone {
  position: absolute;
  width: 44cqw;
  top: calc(3% - 2cqw);
  right: 6%;
  z-index: 2;
  /* Keep the phone upright while retaining its side turn and gentle backward tilt. */
  transform: perspective(180cqw) rotateY(-12deg) rotateX(3deg)
    translateY(50%) rotateX(4deg) translateY(-50%);
  isolation: isolate;
  translate: none;
}
/* Solid metal sidewall with a crisp outer rim and a raised side key. */
.hero-scene .landing-live-phone::before {
  content: "";
  position: absolute;
  inset: .9cqw -2cqw -.9cqw 1cqw;
  z-index: -1;
  border-radius: 6cqw;
  border: 1px solid var(--phone-metal-shade);
  background:
    linear-gradient(180deg, transparent 11%, #20263080 11%, #20263080 11.5%, transparent 11.5%, transparent 86%, #20263080 86%, #20263080 86.5%, transparent 86.5%),
    linear-gradient(90deg, var(--phone-metal) calc(100% - 2cqw), var(--phone-metal-light) calc(100% - 1.65cqw), var(--phone-metal) calc(100% - .7cqw), var(--phone-metal-shade));
  box-shadow: inset -.12cqw 0 0 var(--phone-rim), .3cqw .6cqw .6cqw #101c2c24, 1.2cqw 2.2cqw 2.8cqw var(--phone-shadow);
}
.hero-scene .landing-live-phone::after {
  content: "";
  position: absolute;
  top: 25%;
  right: -1.65cqw;
  z-index: 2;
  width: .6cqw;
  height: 5.5cqw;
  border: 1px solid var(--phone-metal-shade);
  border-radius: .3cqw;
  background: linear-gradient(90deg, var(--phone-metal), var(--phone-key));
  box-shadow: inset .1cqw 0 0 var(--phone-rim), 0 .12cqw .12cqw #10182040;
}
.hero-scene .landing-live-bezel {
  position: relative;
  aspect-ratio: 9 / 17;
  padding: 1cqw;
  border-radius: 6cqw;
  background: linear-gradient(135deg, #303740, #111720 32%, #0c1119 70%, #242c36);
  border: 1px solid var(--phone-rim);
  box-shadow: inset .2cqw .2cqw .15cqw #ffffff35, inset -.15cqw -.2cqw .2cqw #00000080, 0 0 0 .15cqw var(--phone-metal-shade);
}
/* A broad, quiet studio reflection sits on the glass, above the live content. */
.hero-scene .landing-live-bezel::after {
  content: "";
  position: absolute;
  inset: .65cqw;
  z-index: 3;
  border-radius: 5.4cqw;
  pointer-events: none;
  background: linear-gradient(118deg, #ffffff0d, #ffffff03 31%, transparent 32%, transparent 78%, #ffffff03);
  box-shadow: inset .12cqw .15cqw .1cqw #ffffff25, inset -.1cqw -.1cqw .12cqw #00000050;
}
.hero-scene .landing-live-notch {
  position: absolute;
  z-index: 2;
  top: 2.5cqw;
  left: 36%;
  width: 28%;
  height: 1.7cqw;
  margin: 0;
  background: #090d13;
  box-shadow: inset 0 .12cqw .18cqw #000, 0 .1cqw 0 #ffffff18;
}
.hero-scene .landing-live-notch::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 40%;
  width: 43%;
  height: 18%;
  border-radius: 1cqw;
  background: #20262e;
  box-shadow: 0 1px 0 #000;
}
.hero-scene .landing-live-notch::after {
  content: "";
  position: absolute;
  right: 13%;
  top: 21%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6e879e 0 9%, #21364b 18%, #0b1420 48%, #293441 65%, #080c12 75%);
  box-shadow: 0 0 0 .1cqw #1d242e;
}
.hero-scene .landing-live-screen {
  position: relative;
  padding-top: 4.5cqw;
  border-radius: 5cqw;
  background: #f9fafc;
  color: #182b44;
  box-shadow: 0 0 0 .2cqw #080d14, inset 0 0 .7cqw #182b4414;
}
.hero-scene .landing-live-home { background: #657388; margin: .8cqw auto .2cqw; height: .45cqw; }
/* cqw here resolves against the screen, so type and spacing scale continuously. */
.hero-instruction { padding: 3cqw 7cqw; }
.hero-instruction-brand { margin: 0 0 5cqw; color: #617189; font-size: 5cqw; font-weight: 500; }
.hero-instruction-title { margin: 0; font-size: 10cqw; line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.hero-instruction-meta { margin: 3cqw 0 5cqw; color: #617189; font-size: 5cqw; }
.hero-instruction-photo { position: relative; aspect-ratio: 1.18; overflow: hidden; border-radius: 5cqw; background: #e9edf2; }
.hero-instruction-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-instruction-photo .is-dark { display: none; }
.hero-instruction-steps { display: grid; gap: 5cqw; padding: 0; margin: 6cqw 0 0; list-style: none; }
.hero-instruction-steps li { display: flex; align-items: center; gap: 3cqw; font-size: 5.5cqw; line-height: 1.3; font-weight: 500; white-space: nowrap; }
.hero-instruction-steps span { display: grid; place-items: center; flex: 0 0 10cqw; height: 10cqw; border-radius: 50%; color: #2458df; background: #e7efff; font-size: 5cqw; }
.hero-scan-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; pointer-events: none; }
.hero-scan-path path { d: path("M39.5 67.5 C49 67.5 45 36 54 36"); stroke: #468cff; stroke-width: .45; stroke-linecap: round; stroke-dasharray: .018 .045; opacity: .8; }
/* Keep normalized dashes in SVG space: one bright segment and a gap longer than the path. */
.hero-scan-path .hero-scan-signal { stroke: #0969e8; stroke-width: 1.1; stroke-dasharray: .12 2; opacity: 0; filter: drop-shadow(0 0 2px #1681ff) drop-shadow(0 0 5px #1681ff99); }
.hero-scan-path circle { fill: #e6f2ff; stroke: #468cff; stroke-width: .35; }
.hero-scene .landing-live-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit;
  pointer-events: none; box-shadow: inset 0 0 0 2px #66a7ff, inset 0 0 26px #70b7ff44; opacity: 0;
}
html[data-theme="dark"] .hero-scene { --parcel-front: #b18b5f; --parcel-side: #957045; --parcel-top: #c8a478; }
html[data-theme="dark"] .hero-scene {
  --phone-metal: #38414d;
  --phone-metal-light: #6b7785;
  --phone-metal-shade: #1c2430;
  --phone-rim: #596574;
  --phone-key: #354151;
  --phone-shadow: #00000040;
}
html[data-theme="dark"] .hero-scene .landing-live-screen { background: #131e2d; color: #eef4ff; box-shadow: 0 0 0 .2cqw #0b121e; }
html[data-theme="dark"] .hero-parcel-mark { color: #392816; }
html[data-theme="dark"] .hero-scan-path path:not(.hero-scan-signal) { stroke: #78b0ff; }
html[data-theme="dark"] .hero-scan-path .hero-scan-signal { stroke: #c6eeff; }
html[data-theme="dark"] .hero-instruction-brand,
html[data-theme="dark"] .hero-instruction-meta { color: #a7b8cf; }
html[data-theme="dark"] .hero-instruction-photo .is-light { display: none; }
html[data-theme="dark"] .hero-instruction-photo .is-dark { display: block; }
html[data-theme="dark"] .hero-instruction-steps span { color: #b7d5ff; background: #243c60; }
/* Keep geometry fixed, including when legacy entrance/parallax classes are active. */
.landing-store.is-motion-on.is-hero-ready .hero-scene .landing-live-phone,
.landing-store.is-motion-on.is-hero-ready .hero-scene .landing-label { animation: none; }
.hero-scene .hero-open-hint { display: none; }
@media (max-width: 980px) {
  .hero-scene { max-width: 560px; margin-inline: auto; }
  .landing-store .landing-hero { min-width: 0; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .landing-store .hero-scene .landing-label-scan,
  .landing-store.is-motion-on.is-hero-ready .hero-scene .landing-label-scan { animation: hero-qr-scan var(--hero-cycle) linear infinite; background: #367eff; box-shadow: 0 0 5px #367eff88; }
  .hero-scene .hero-scan-signal { animation: hero-qr-signal var(--hero-cycle) linear infinite; }
  .hero-scene .hero-scan-path circle { transform-box: fill-box; transform-origin: center; animation: hero-qr-received var(--hero-cycle) ease-in-out infinite; }
  .hero-scene .landing-live-screen::after { animation: hero-screen-response var(--hero-cycle) ease-in-out infinite; }
}
@keyframes hero-qr-scan { 0% { top: 8%; opacity: .65; } 40% { top: 90%; opacity: .9; } 48%,90% { top: 90%; opacity: 0; } 100% { top: 8%; opacity: .65; } }
@keyframes hero-qr-signal { 0%,40% { stroke-dashoffset: 0; opacity: 0; } 43% { stroke-dashoffset: 0; opacity: 1; } 62% { stroke-dashoffset: -.88; opacity: 1; } 65%,100% { stroke-dashoffset: -.88; opacity: 0; } }
@keyframes hero-qr-received { 0%,62%,82%,100% { opacity: .45; scale: 1; } 66% { opacity: 1; scale: 1.5; } }
@keyframes hero-screen-response { 0%,65%,86%,100% { opacity: 0; } 68%,73% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) {
  .landing-store .hero-scene .landing-label-scan,
  .landing-store.is-motion-on.is-hero-ready .hero-scene .landing-label-scan { animation: none; opacity: 0; }
}
