.box-page {
  --box-muted: #514f48;
  --box-line: #ddd9ce;
  max-width: 78rem;
  padding-block: clamp(1.25rem, 4.3vw, 3.75rem);
}
.box-hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  overflow: hidden;
  border: 1px solid var(--box-line);
  border-radius: clamp(1.15rem, 3vw, 2.2rem);
  background: #f4f0e7;
}
.box-intro {
  align-self: center;
  padding: clamp(1.3rem, 4.3vw, 3.7rem);
}
.box-intro .section-label { color: #765224; }
.box-intro h1 {
  margin-top: .6rem;
  font-size: clamp(2.28rem, 4.55vw, 4.5rem);
  line-height: 1.19;
  letter-spacing: -.045em;
}
.box-intro > p:not(.section-label) {
  max-width: 26em;
  margin-top: 1rem;
  color: var(--box-muted);
  font-size: clamp(.97rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}
.box-hero-actions { margin-top: clamp(1.1rem, 3.2vw, 2rem); }
.box-showcase {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1a1b1d;
  color: #f8f6f0;
}
.box-model-stage {
  position: relative;
  flex: 1;
  min-height: clamp(22rem, 38vw, 33rem);
  overflow: hidden;
  background: #1d1e20;
}
.box-model-poster {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.box-model-stage model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  background: radial-gradient(ellipse at 50% 34%, #4e525a, #22252a 74%);
  --poster-color: transparent;
  --progress-bar-color: #ffe19d;
  --progress-bar-height: 3px;
}
.box-model-stage.is-interactive model-viewer { visibility: visible; }
.box-model-stage model-viewer:focus-visible { outline-offset: -5px; outline-color: #ffe19d; }
.box-model-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  min-height: 5rem;
  padding: .85rem clamp(.95rem, 2.4vw, 1.65rem);
  border-top: 1px solid #ffffff16;
}
.box-model-caption h2 { font-size: clamp(1.05rem, 1.65vw, 1.3rem); line-height: 1.38; }
.box-model-caption p { margin-top: .2rem; color: #d0d1d5; font-size: .82rem; }
.box-model-caption button {
  min-height: 44px;
  padding: .4rem 1.04rem;
  border: 0;
  border-radius: 2rem;
  background: #ffe19d;
  color: #241c0f;
  font-weight: 650;
  white-space: nowrap;
}
.box-model-caption button:focus-visible { outline-color: #ffe19d; }
.box-model-caption button:hover { background: #fff0c8; }
.box-model-caption button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.box-progress {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-basis: 100%;
  color: #ffe19d;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.box-progress progress { flex: 1; min-width: 0; height: .46rem; accent-color: #ffe19d; }
.box-progress span:empty { display: none; }

.box-process, .box-packaging, .box-customize { scroll-margin-top: 1.25rem; }
.box-process { padding-block: clamp(2.5rem, 6.1vw, 5.5rem); }
.box-process h2, .box-packaging h2, .box-customize h2 {
  font-size: clamp(1.78rem, 3.4vw, 3.25rem);
  line-height: 1.28;
  letter-spacing: -.05em;
}
.box-section-heading .section-label { margin-bottom: .5rem; color: #765224; }
.box-section-heading p:last-child { max-width: 35em; margin-top: .6rem; color: var(--box-muted); line-height: 1.8; }
.box-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.85rem, 2.4vw, 1.85rem);
  margin: 1.45rem 0 0;
  padding: 0;
  list-style-position: inside;
}
.box-steps li { min-width: 0; padding-top: .9rem; border-top: 1px solid var(--box-line); }
.box-steps li::marker { color: #765224; font-size: .86rem; font-weight: 700; }
.box-steps h3 { display: inline; font-size: 1.08rem; }
.box-steps p { margin-top: .38rem; color: var(--box-muted); font-size: .93rem; }
.box-work-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2.3vw, 1.8rem);
  margin-top: clamp(1.6rem, 4.2vw, 3.15rem);
}
.box-work-photos figure {
  overflow: hidden;
  border: 1px solid var(--box-line);
  border-radius: 1.05rem;
  background: #fff;
}
.box-proof-photo {
  position: relative;
  display: block;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: #eeedea;
  cursor: zoom-in;
}
.box-proof-reference { background: #f8f7f4; }
.box-proof-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.box-proof-photo:focus-visible, .box-carton-photo:focus-visible { outline-offset: -5px; }
.box-work-photos figcaption { padding: .8rem 1rem .95rem; }
.box-work-photos figcaption span { display: block; margin-top: .18rem; color: var(--box-muted); font-size: .9rem; }

.box-packaging {
  margin-bottom: clamp(2rem, 5.5vw, 5rem);
  padding: clamp(1.1rem, 3.3vw, 3.1rem);
  border: 1px solid #d8e1d8;
  border-radius: clamp(1.05rem, 2.8vw, 2.05rem);
  background: linear-gradient(145deg, #edf2eb, #f9f6ed);
}
.box-packaging h2 { color: #16392c; }
.box-packaging .section-label { color: #39674e; }
.box-package-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, .9fr);
  align-items: stretch;
  gap: clamp(.8rem, 2vw, 1.7rem);
  margin-top: clamp(1.1rem, 3vw, 2.25rem);
}
.box-carton-design, .box-card-design {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce4d9;
  border-radius: 1.05rem;
  background: #fff;
}
.box-carton-photo { display: block; cursor: zoom-in; }
.box-carton-photo img { width: 100%; height: auto; }
.box-carton-design figcaption,
.box-card-design header { padding: .8rem clamp(.8rem, 1.75vw, 1.3rem); }
.box-carton-design figcaption span, .box-card-design header p { display: block; margin-top: .2rem; color: #58685d; font-size: .88rem; }
.box-card-design { display: flex; flex-direction: column; }
.box-card-design header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.box-card-design h3 { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.5rem); line-height: 1.35; }
.box-card-picker {
  display: inline-flex;
  gap: .1rem;
  padding: .12rem;
  border: 0;
  border-radius: 2rem;
  background: #e9f1e9;
}
.box-card-picker label { position: relative; cursor: pointer; }
.box-card-picker input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.box-card-picker span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding-inline: .7rem;
  border-radius: 2rem;
  color: #355846;
  font-size: .85rem;
  font-weight: 660;
}
.box-card-picker input:checked + span { background: #255540; color: #fff; }
.box-card-picker input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.box-card-stage {
  display: grid;
  flex: 1;
  justify-items: center;
  align-content: center;
  gap: .9rem;
  padding: clamp(.85rem, 2.5vw, 1.8rem);
  background: radial-gradient(ellipse at 48% 23%, #f8f6ec 0, #e7ece3 75%);
}
.box-card-face {
  display: block;
  width: min(100%, 13rem);
  aspect-ratio: 63 / 88;
  overflow: hidden;
  border-radius: .65rem;
  background: #132c22;
  box-shadow: 0 .55rem 1.5rem #1c302c26;
}
.box-card-face img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.box-card-back {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .95rem;
  background: radial-gradient(ellipse at 20% 12%, #254834, #10291e 87%);
  color: #f7efd9;
}
.box-card-back::before {
  position: absolute;
  inset: .38rem;
  border: 1px solid #c5a565ad;
  border-radius: .4rem;
  pointer-events: none;
  content: "";
}
.box-card-kicker { color: #f0ce87; font-size: .74rem; }
.box-card-back h4 { margin: .45rem 0; font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.25; }
.box-card-back p:not(.box-card-kicker) { font-size: .8rem; line-height: 1.7; }
.box-card-signature { margin-top: .7rem; color: #f0ce87; }
.box-fit-details { margin-top: 1.15rem; padding: .67rem .85rem; border: 1px solid #d8e1d7; border-radius: .75rem; background: #fffdf8; }
.box-fit-details summary { min-height: 44px; padding-block: .55rem; color: #214a36; font-weight: 670; cursor: pointer; }
.box-fit-details p { max-width: 48rem; margin-bottom: .75rem; color: #4d6054; }
@media (prefers-reduced-motion: no-preference) {
  .box-card-face:not([hidden]) { animation: box-card-appear .22s ease-out; }
  @keyframes box-card-appear {
    from { opacity: .65; transform: translateY(.28rem); }
    to { opacity: 1; transform: none; }
  }
}

.box-customize {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(1.15rem, 4vw, 3.6rem);
  padding: clamp(1.3rem, 4.2vw, 3.4rem);
  border: 1px solid #dbe4f4;
  border-radius: clamp(1.15rem, 3vw, 2.2rem);
  background: #f0f4fc;
}
.box-customize-intro > p { max-width: 25em; margin-top: .7rem; color: var(--box-muted); line-height: 1.85; }
.box-reference { min-width: 0; }
.box-file-select {
  position: relative;
  padding: .85rem 1rem;
  border: 1px dashed #a3b5dc;
  border-radius: .85rem;
  background: #fff;
}
.box-file-select label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .95rem;
  border: 1px solid #bdcbeb;
  border-radius: .55rem;
  background: #f1f5fc;
  color: var(--cobalt);
  font-weight: 650;
  cursor: pointer;
}
.box-file-select label:hover { background: #e5edfb; }
.box-file-select input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.box-file-select p { margin-top: .45rem; color: var(--box-muted); font-size: .86rem; }
.box-reference-status { margin-top: .45rem; overflow-wrap: anywhere; font-size: .88rem; }
.box-reference-status:empty { margin: 0; }
.box-picked-photo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: .7rem;
}
.box-picked-photo img {
  width: 8rem;
  height: 6rem;
  border: 1px solid #dbe4f4;
  border-radius: .55rem;
  background: #fff;
  object-fit: contain;
}
.box-contact-note { margin-block: .8rem .55rem; color: var(--box-muted); font-size: .95rem; }
.box-text-button { margin: 0; padding: 0; border: 0; background: transparent; }

@media (max-width: 52rem) {
  .box-hero { grid-template-columns: minmax(0, 1fr); }
  .box-model-stage { min-height: clamp(17.25rem, 83vw, 29rem); }
  .box-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .box-work-photos, .box-package-grid, .box-customize { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 32rem) {
  .box-model-caption { gap: .55rem; }
  .box-steps { grid-template-columns: minmax(0, 1fr); }
}
