@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/caveat-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  --pine: #0e1f19;
  --night: #0c241c;
  --night-deep: #081a14;
  --spruce: #12402f;
  --cran: #c4212a;
  --cran-dark: #a31820;
  --gold: #f2b63d;
  --paper: #f3f5f1;
  --cream: #fff;
  --muted: #3e4e47;
  --line: #c9d1cc;
  --sans: Onest, Arial, sans-serif;
  --display: Unbounded, 'Arial Black', system-ui, sans-serif;
  --wrap: min(91.6%, 1440px);
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: #74857b var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font: 400 1rem/1.5 var(--sans);
  overflow-wrap: break-word;
}
::selection {
  background: #f2b63d;
  color: #0c241b;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #cc7202;
  outline-offset: 4px;
}
:is(h1, h2, h3, #confirmation, #inquiry-done, .lightbox-strip)[tabindex="-1"]:focus,
.gallery-item:focus {
  outline: none;
}
:where(.gallery-item, .photo-control, .count-option, .material-choice, .box-choice) {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
ol,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2.15rem, 4.3vw, 4.4rem);
  line-height: 1.04;
}
h3 {
  line-height: 1.15;
  letter-spacing: -0.032em;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: block;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--pine);
  transform: translateY(-220%);
  z-index: 30;
}
.skip:focus {
  transform: none;
}
.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  background: transparent;
  color: white;
  padding-top: env(safe-area-inset-top, 0px);
}
.navrow {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand span {
  font: 800 clamp(1.35rem, 1.75vw, 1.85rem)/1 var(--display);
  letter-spacing: -0.035em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.15rem);
}
.main-nav a {
  padding: 0.65rem 0;
  font-size: 0.91rem;
  font-weight: 600;
  text-underline-offset: 6px;
}
.main-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--cran);
}
.site-head .header-call {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}
.footer-contact a {
  width: fit-content;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.icon-btn {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.81rem 1.45rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.25;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.button svg {
  width: 21px;
  height: 21px;
}
/* Keep the snow behind the label and clip it to the pill. */
:is(.button.primary, .button.light, .set-next, .footer-action .button, .count-option input:checked + span) {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  &::before,
  &::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: var(--snow-opacity, 0);
    transition: opacity 0.18s ease-out;
  }

  &::before {
    content: '';
    background:
      radial-gradient(ellipse 54% 7px at 14% 105%, #fffc 65%, transparent 78%),
      radial-gradient(ellipse 45% 6px at 83% 104%, #fffd 65%, transparent 78%);
  }

  @media (prefers-reduced-motion: no-preference) {
    &::after {
      content: '';
      background-image:
        radial-gradient(circle at 13px 7px, #fff 1.15px, transparent 1.8px),
        radial-gradient(circle at 36px 21px, #fff9 0.85px, transparent 1.4px),
        radial-gradient(circle at 19px 10px, #fffc 0.65px, transparent 1.2px);
      background-size:
        67px 39px,
        87px 51px,
        49px 31px;
      mask-image: linear-gradient(transparent, black 12%, black 86%, transparent);
      animation: button-snowfall 2.8s linear infinite;
      animation-play-state: var(--snow-play, paused);
    }
  }
}
@media (hover: hover) {
  .button:hover,
  .count-option:hover input:checked + span {
    --snow-opacity: 0.85;
    --snow-play: running;
  }
}
.button:focus-visible,
.count-option input:focus-visible:checked + span {
  --snow-opacity: 0.85;
  --snow-play: running;
}
/* Each layer falls by a whole number of tiles so the loop has no visible seam. */
@keyframes button-snowfall {
  from {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  50% {
    background-position:
      4px 39px,
      -3px 25.5px,
      2px 15.5px;
  }
  to {
    background-position:
      0 78px,
      0 51px,
      0 31px;
  }
}
.primary {
  background: var(--cran);
  color: #fff;
}
.primary:hover {
  background: var(--cran-dark);
}

.light {
  background: var(--gold);
  color: var(--pine);
}
.light:hover {
  background: #f7c75f;
}
.outline {
  border: 1px solid #6f8175;
  color: var(--pine);
}
.outline:hover {
  background: #e3e9df;
}

.process {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 16px;
}
.process-inner {
  width: min(78%, 880px);
  margin: auto;
}
.process-inner img {
  width: 100%;
  height: auto;
  max-height: 68px;
}
.process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 2px;
}
section[id],
footer[id] {
  scroll-margin-top: 16px;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.46fr);
  gap: clamp(1rem, 1.7vw, 2rem);
  align-items: start;
}
.order-aside {
  position: sticky;
  top: 16px;
  min-width: 0;
}
.preview {
  isolation: isolate;
  min-width: 0;
  background: #dee9dc;
  border-radius: 23px;
  padding: clamp(1.1rem, 1.7vw, 1.65rem);
  overflow: hidden;
}
.preview-title,
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.preview-title h3 {
  font: 600 1.05rem/1.25 var(--sans);
  letter-spacing: 0;
}
.preview-title svg {
  width: 19px;
  height: 19px;
  color: #657c57;
}
.parcel-preview {
  width: 100%;
  max-height: 310px;
  margin: 0.15rem 0;
  overflow: visible;
}
.preview-caption {
  font-size: 0.87rem;
  line-height: 1.25;
}
.preview-caption span:first-child {
  font-weight: 600;
}
.preview-caption span:last-child {
  text-align: right;
}
.panels {
  border-radius: 23px;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 2rem);
  min-width: 0;
  min-height: 100%;
}
.panel > h3,
.checkout-heading h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.87rem);
  margin: 0 0 1.05rem;
}
.checkout-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
}
.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 0.85vw, 0.9rem);
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.option-card:hover {
  border-color: #879080;
  transform: translateY(-2px);
}
.option-card:has(input:checked) {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
  background: #eef3ec;
}
.option-card:has(input:focus-visible),
.swatch:has(input:focus-visible) {
  outline: 3px solid #787532;
  outline-offset: 3px;
}
.sr-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.option-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
}
.option-card.style-card img {
  aspect-ratio: 1.55;
  object-fit: contain;
  padding: 0.65rem;
  background: #e9ece4;
}
.indicator {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: #fffcf6e8;
  border: 1px solid #687464;
  border-radius: 50%;
}
.indicator svg {
  width: 15px;
  opacity: 0;
  color: white;
}
.option-card:has(:checked) .indicator,
.swatch:has(:checked) .indicator {
  background: var(--pine);
  border-color: var(--pine);
}
.option-card:has(:checked) .indicator svg,
.swatch:has(:checked) .indicator svg {
  opacity: 1;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
  padding: 0.9rem 0.85rem 1rem;
}
.card-name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.card-size {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  text-wrap: pretty;
}
.card-size b {
  font-weight: 400;
}
.price {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.45rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-content: flex-end;
  margin-top: 1.35rem;
}
.text-button {
  color: var(--pine);
  padding: 0.45rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #919a84;
  font-size: 0.9rem;
}
.text-button:hover {
  color: var(--cran);
}
summary {
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: '';
  height: 8px;
  width: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] > summary:after {
  transform: rotate(225deg);
}
.custom {
  border-block: 1px solid var(--line);
  margin-top: 1.1rem;
}
.custom summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 49px;
  font-weight: 600;
  font-size: 0.92rem;
}
.custom summary svg {
  width: 19px;
  height: 19px;
}
.custom summary:after {
  margin-left: auto;
  margin-right: 0.3rem;
}
.custom-body,
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.custom-body {
  padding: 0 0 1.1rem;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend,
.custom-body > label,
.form > label {
  font-size: 0.88rem;
  font-weight: 600;
}
legend {
  padding: 0;
  margin-bottom: 0.32rem;
}
.swatches {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.swatch {
  position: relative;
  min-width: 42px;
  min-height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.swatch-color {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #223f3245;
}
.swatch:has(:checked) .swatch-color {
  outline: 2px solid var(--cran);
  outline-offset: 3px;
}
.swatch-label {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.custom-sizes {
  font-size: 0.85rem;
  align-self: end;
  color: var(--muted);
}
.custom-body .text-button {
  justify-self: start;
}
select,
input:not([type='radio']),
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  background-color: var(--cream);
  border: 1px solid #abae9d;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  line-height: 1.3;
  font-weight: 400;
  font-size: 1rem;
  margin-top: 0.3rem;
  caret-color: var(--cran);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23395744' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 11px;
  padding-right: 2rem;
}
textarea {
  resize: vertical;
}
::placeholder {
  color: #647166;
  opacity: 1;
}
.full {
  grid-column: 1/-1;
}
.receipt {
  font-size: 0.92rem;
  border-block: 1px solid var(--line);
  padding: 0.5rem 0 0.65rem;
  margin-bottom: 1.4rem;
}
.receipt > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.39rem 0;
}
.receipt dt {
  color: var(--muted);
}
.receipt dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  max-width: 68%;
}
.receipt dd small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}
.counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.counter button {
  min-width: 39px;
  min-height: 38px;
  font-size: 1.2rem;
}
.counter button:hover:enabled {
  background: #e8ecdf;
}
.counter button:disabled {
  opacity: 0.35;
  cursor: default;
}
.counter output {
  min-width: 27px;
  text-align: center;
}
.receipt .total {
  border-top: 1px dashed #c3c8b7;
  margin-top: 0.45rem;
  padding-top: 0.75rem;
  align-items: center;
}
.order-aside:has(.order-summary:not([hidden])) .preview-caption {
  display: none;
}
.panels:has(.checkout:not([hidden])) {
  min-height: 0;
}
.order-summary {
  margin: 0;
  border: 0;
  padding: 0.8rem clamp(0.8rem, 1.4vw, 1.45rem) 0.25rem;
}
.order-summary > div {
  align-items: center;
  gap: 0.8rem;
  padding: 0.32rem 0;
}
.order-summary dd {
  min-width: 0;
  max-width: 63%;
  overflow-wrap: anywhere;
}
.order-summary dd small {
  line-height: 1.45;
}
.order-summary .counter {
  border-radius: 100px;
  background: var(--cream);
  align-items: center;
}
.order-summary .counter button {
  border-radius: 100px;
}
.order-summary .total {
  border-top: 1px solid var(--line);
  margin-top: 0.55rem;
  padding-top: 0.75rem;
}
.total dt,
.total dd {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pine);
}
#request-form > label {
  min-inline-size: 0;
}
#request-form input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 2.85rem;
}
#request-form input[type='date']::-webkit-date-and-time-value {
  min-width: 0;
  text-align: start;
}
.submit-order {
  justify-self: end;
}
.form small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.form-foot span {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 25ch;
}
.form-errors {
  color: var(--cran-dark);
  padding: 0.6rem 0.8rem;
  background: #f7e6df;
  border-radius: 6px;
  font-size: 0.88rem;
}
[aria-invalid='true'] {
  border-color: var(--cran) !important;
}
.confirmation {
  max-width: 650px;
  margin-inline: auto;
  text-align: center;
  padding: 1.6rem clamp(1rem, 4vw, 3rem) 2rem;
  border-radius: 22px;
  background: var(--paper);
}
.confirmation img {
  margin: 0 auto 0.7rem;
}
.confirmation h3 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}
.confirmation p {
  margin: 0.6rem auto 1.1rem;
}
.confirmation dl {
  text-align: left;
}
.gallery-block {
  padding: clamp(2.8rem, 4.8vw, 5rem) 0 clamp(3rem, 5.2vw, 5.6rem);
  background: var(--paper);
}
.gallery-block h2 {
  margin-bottom: clamp(1.3rem, 2.6vw, 2.5rem);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.6rem, 4.8vw, 5.2rem);
}
.gallery-item {
  --cord: 1.6rem;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  min-width: 0;
  padding: 0;
  cursor: zoom-in;
  color: var(--pine);
}
.gallery-item:nth-child(even) {
  --cord: clamp(4rem, 7vw, 7rem);
}
.ornament {
  display: block;
  position: relative;
  width: 100%;
  padding-top: calc(var(--cord) + 12px);
  transform-origin: 50% 0;
}
.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.ornament::before {
  top: 0;
  width: 1px;
  height: calc(var(--cord) + 3px);
  background: #a78145;
}
.ornament::after {
  top: var(--cord);
  width: 14%;
  height: 13px;
  border: 1px solid #a37b3b;
  border-radius: 4px 4px 30% 30%;
  background: repeating-linear-gradient(90deg, #aa803d 0 1px, #eac985 2px 4px, #c39a57 5px 6px);
}
.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 6px 12px -10px #18271ce0;
}
.gallery-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 31% 17%, #ffffff33, transparent 32%),
    radial-gradient(circle at 45% 39%, transparent 52%, #39270b35 89%, #241a146b);
  box-shadow: inset 0 0 0 1px #ffffff44;
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease-out;
}
.gallery-item:is(:hover, :focus-visible) img {
  transform: scale(1.045);
}
.gallery-name {
  font: 600 clamp(0.92rem, 1.35vw, 1.22rem)/1.25 var(--sans);
  text-align: center;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-item:hover .ornament {
    animation: ornament-swing 0.95s ease-in-out;
  }
}
@keyframes ornament-swing {
  22% {
    transform: rotate(3deg);
  }
  54% {
    transform: rotate(-1.9deg);
  }
  80% {
    transform: rotate(0.8deg);
  }
}
.gallery-item:is(:hover, :focus-visible) .gallery-name {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.gallery-item:focus-visible .gallery-name {
  text-decoration-thickness: 0.15em;
}
.gallery-item:active img {
  transform: scale(1.025);
}
@media (prefers-reduced-motion: no-preference) {
  #lightbox[open], #lightbox[open]::backdrop {
    animation: reveal-photo 180ms ease-out;
  }
  @keyframes reveal-photo {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
  .gallery-item {
    --cord: 1rem;
    gap: 0.65rem;
  }
  .gallery-item:nth-child(even) {
    --cord: 3.6rem;
  }
}
.delivery-block {
  padding: clamp(3rem, 5.9vw, 6.8rem) 0;
  background: var(--night);
  color: var(--paper);
}
.delivery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: clamp(1.5rem, 3.2vw, 3rem);
}
.delivery-heading p {
  color: #d5ded9;
  max-width: 35ch;
}
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.delivery-item {
  border: 1px solid #465b4e;
  border-radius: 24px;
  padding: clamp(1.35rem, 2.6vw, 2.5rem);
}
.delivery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.delivery-meta svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
.delivery-meta strong {
  border-radius: 99px;
  background: var(--gold);
  color: var(--pine);
  padding: 0.32rem 0.75rem;
  font-size: 0.85rem;
}
.delivery-item:nth-child(2) strong {
  background: transparent;
  color: #fff;
  border: 1px solid #8c9c90;
}
.delivery-item h3 {
  font-size: clamp(1.4rem, 2.1vw, 2.25rem);
  margin-bottom: 0.8rem;
}
.delivery-item p {
  max-width: 48ch;
  color: #d5ded9;
  line-height: 1.6;
}
.after-delivery {
  padding: clamp(3rem, 6vw, 6.7rem) 0;
}
.individual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cran);
  color: #fff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.individual-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(1.5rem, 4.6vw, 4.5rem);
}
.individual h2 {
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.03;
}
.individual p {
  margin: 1rem 0 1.4rem;
  max-width: 40ch;
  font-size: 1.05rem;
}
.banner-art {
  position: relative;
  align-self: stretch;
  min-height: 230px;
  isolation: isolate;
  overflow: hidden;
}
.banner-art img {
  position: absolute;
  height: auto;
  filter: drop-shadow(3px 12px 8px #5a0a124a);
}
.banner-main {
  width: 73%;
  right: 1%;
  top: 6%;
  transform: rotate(7deg);
}
.banner-small {
  width: 45%;
  left: 0;
  bottom: 0;
  transform: rotate(-7deg);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
  margin-top: clamp(3rem, 6vw, 6.5rem);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  padding: 1.2rem 1.8rem 1.2rem 0;
  font-weight: 600;
}
.faq summary:after {
  position: absolute;
  top: 1.55rem;
  right: 0.4rem;
}
.faq p {
  padding: 0 1.1rem 1.25rem 0;
  max-width: 67ch;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  background: var(--night-deep);
  color: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
}
.footer-contact {
  display: flex;
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.75rem);
  font-style: normal;
  font-size: 1rem;
  white-space: nowrap;
}
.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d5ded9;
}
.footer-location svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.footer-contact a::before {
  content: '';
  width: 1px;
  height: 1em;
  margin-right: clamp(0.75rem, 2vw, 1.75rem);
  background: #586a60;
}
.footer-contact a:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.footer-action {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.93rem;
}
.footer-action {
  align-items: flex-end;
}
.footer-action small {
  font-size: 0.8rem;
  color: #a9bbb2;
}
dialog {
  position: fixed;
  width: min(92vw, 720px);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: var(--pine);
  background: var(--paper);
  box-shadow: 0 18px 70px #152c2566;
}
dialog::backdrop {
  background: #192d24b5;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.inquiry-inner {
  position: relative;
}
.close-dialog.icon-btn {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
}
#lightbox {
  width: min(56rem, calc(100% - 9rem), calc(100dvh - 5rem));
  max-height: none;
  overflow: visible;
  color: #f6f6ee;
  background: transparent;
  box-shadow: none;
}
#lightbox::backdrop {
  background: rgb(7 17 13 / 95%);
}
.lightbox-stage {
  position: relative;
}
.lightbox-strip {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--night-deep);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.lightbox-strip::-webkit-scrollbar {
  display: none;
}
.lightbox-strip img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
}
.photo-control {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff42;
  border-radius: 50%;
  background: #112019cf;
  color: white;
  transition: background-color 150ms, border-color 150ms;
}
.photo-control:hover, .photo-control:focus-visible {
  background: #193a2c;
  border-color: #ffffffe0;
}
.photo-control svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.photo-control.close-dialog {
  top: 0.75rem;
  right: 0.75rem;
}
#prev-photo, #next-photo {
  top: 50%;
  transform: translateY(-50%);
}
#prev-photo { right: calc(100% + 0.9rem); }
#next-photo { left: calc(100% + 0.9rem); }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.15rem 0;
  font-size: 1rem;
  font-weight: 600;
}
#lightbox-position {
  color: #bdc9c0;
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.inquiry-inner {
  padding: clamp(1.4rem, 4vw, 3rem);
}
.inquiry-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0 2.4rem 1.35rem 0;
}
#inquiry-done .button {
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 1.15rem;
  }

  .builder {
    grid-template-columns: minmax(230px, 0.73fr) minmax(0, 1.4fr);
  }
  .panels,
  .preview {
    padding: 1.15rem;
  }
  .card-name {
    font-size: 1.17rem;
  }
  .style-card .card-name {
    font-size: 1rem;
  }
  .card-body {
    padding: 0.75rem;
  }
}
@media (max-width: 800px) {
  .navrow {
    min-height: 64px;
  }
  .brand span {
    font-size: 1.32rem;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .main-nav {
    gap: 0.85rem;
  }
  .main-nav a {
    font-size: 0.8rem;
  }

  .builder {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.45fr);
    gap: 0.8rem;
  }
  .preview-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .panels,
  .preview {
    padding: 1rem;
    border-radius: 18px;
  }
  .option-card {
    border-radius: 11px;
  }
  .card-body {
    padding: 0.55rem;
  }
  .card-name {
    font-size: 1rem;
  }
  .card-size {
    font-size: 0.77rem;
  }
  .style-card .card-name {
    font-size: 0.92rem;
  }
  .delivery-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .form-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .individual {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .individual-copy {
    padding: 2rem;
  }
  .banner-main {
    top: 18%;
    width: 98%;
    right: -12%;
  }
  .banner-small {
    width: 64%;
    bottom: 2%;
  }
  .faq {
    grid-template-columns: 0.74fr 1.3fr;
  }
}
@media (max-width: 650px) {
  :root {
    --wrap: calc(100% - 36px);
  }
  .navrow {
    min-height: 60px;
  }
  .brand span {
    font-size: 1.35rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.45rem 18px 0.7rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    min-height: 43px;
  }

  .process {
    padding: 8px 0 11px;
  }
  .process-inner {
    width: 100%;
  }
  .process ol {
    font-size: clamp(0.72rem, 2.75vw, 0.9rem);
    margin-top: 1px;
  }

  .builder {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .order-aside {
    position: static;
    width: 100%;
  }
  .preview {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(95px, 0.77fr) minmax(0, 1.23fr);
    grid-template-rows: auto auto;
    padding: 0.85rem 1rem;
    align-items: center;
    min-height: 110px;
  }
  .preview-title {
    align-self: end;
  }
  .preview-title h3 {
    font: 800 1rem/1.2 var(--display);
    letter-spacing: -0.025em;
  }
  .order-aside:has(.order-summary:not([hidden])) .preview-title {
    grid-row: 1 / 3;
    align-self: center;
  }
  .preview-title svg {
    display: none;
  }
  .parcel-preview {
    grid-row: 1/3;
    grid-column: 2;
    width: 100%;
    height: 115px;
    margin: -0.35rem 0;
  }
  .preview-caption {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    line-height: 1.3;
    font-size: 0.8rem;
    padding-top: 0.35rem;
  }
  .preview-caption span:last-child {
    text-align: left;
  }
  .panels {
    width: 100%;
    padding: 1rem;
  }
  .options {
    gap: 0.4rem;
  }
  .option-card img {
    aspect-ratio: 1.6;
  }
  .option-card.style-card img {
    padding: 0.45rem;
    aspect-ratio: 1.1;
  }
  .panel > h3,
  .checkout-heading h3 {
    font-size: 1.27rem;
  }
  .checkout-heading {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .checkout-heading h3 {
    margin-bottom: 0.28rem;
  }
  .checkout-heading .text-button {
    margin-bottom: 0.5rem;
  }
  .style-card .card-name {
    font-family: var(--sans);
    font-size: 0.89rem;
    line-height: 1.22;
    letter-spacing: -0.015em;
  }
  .indicator {
    width: 17px;
    height: 17px;
    top: 0.35rem;
    right: 0.35rem;
  }
  .indicator svg {
    width: 13px;
  }
  .actions {
    margin-top: 1rem;
  }
  .submit-order {
    justify-self: stretch;
  }
  .form-foot {
    align-items: stretch;
  }
  .form-foot span {
    max-width: none;
  }
  .receipt {
    font-size: 0.86rem;
  }
  .counter button {
    min-width: 34px;
  }
  .gallery-block h2 {
    font-size: clamp(1.93rem, 7.4vw, 2.9rem);
  }
  .delivery-options {
    grid-template-columns: 1fr;
  }
  .delivery-item {
    border-radius: 18px;
    padding: 1.3rem;
  }
  .delivery-heading {
    gap: 0.7rem;
  }
  .individual {
    display: block;
    border-radius: 20px;
  }
  .individual-copy {
    padding: 1.45rem 1.4rem 0.3rem;
  }
  .individual h2 {
    font-size: 2.05rem;
  }
  .individual p {
    margin: 0.75rem 0 1rem;
    font-size: 0.96rem;
  }
  .individual .button {
    font-size: 0.83rem;
  }
  .banner-art {
    height: 145px;
    min-height: 0;
  }
  .banner-main {
    width: 150px;
    right: 12%;
    top: 7%;
  }
  .banner-small {
    width: 105px;
    left: 15%;
    bottom: -10%;
  }
  .faq {
    display: block;
  }
  .questions {
    margin-top: 1.1rem;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.3rem;
  }
  .footer-inner .brand {
    grid-column: 1/-1;
  }
  .footer-action small {
    font-size: 0.7rem;
  }
  .footer-contact {
    grid-column: 1 / -1;
    font-size: clamp(0.875rem, 3.8vw, 1rem);
  }
  .footer-action .button {
    font-size: 0.8rem;
    min-height: 40px;
    padding: 0.6rem 0.8rem;
  }
  #lightbox {
    width: min(calc(100% - 1.25rem), calc(100dvh - 5rem));
    max-width: none;
  }
  #prev-photo { right: auto; left: 0.5rem; }
  #next-photo { left: auto; right: 0.5rem; }
  .inquiry-inner h2 {
    font-size: 1.6rem;
  }
  .inquiry-inner {
    padding: 1.25rem;
  }
}
@media (max-width: 480px) {
  .custom-body,
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .custom-body > fieldset {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }
  .custom-body > fieldset legend {
    float: left;
    padding-top: 0.7rem;
  }
  .custom-body > fieldset .swatch-label {
    grid-column: 2;
  }
  .swatches {
    gap: 0.15rem;
  }
  .swatch {
    min-width: 32px;
  }
  .swatch-color {
    width: 27px;
    height: 27px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-action {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The first wizard step is the landing screen. Its scene and controls share the viewport. */
.order-hero {
  background: var(--night);
  isolation: isolate;
  scroll-margin-top: 0;
}
.order-layout {
  padding-block: calc(6rem + env(safe-area-inset-top, 0px)) clamp(2.4rem, 4vw, 4rem);
}
.order-hero {
  overflow: clip;
}
.order-hero .order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  grid-template-rows: minmax(6.5rem, 1fr) auto minmax(2.5rem, 1fr);
  grid-template-areas: '. tree' 'picker tree' '. tree';
  min-height: clamp(640px, 84svh, 850px);
  padding-block: 0;
}
.fir-stage {
  grid-area: tree;
  position: relative;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  pointer-events: none;
}
.fir-tableau {
  position: absolute;
  bottom: 8%;
  left: 50%;
  height: 96%;
  aspect-ratio: 994 / 1528;
  transform: translateX(-50%);
}
.fir-tableau::before {
  content: '';
  position: absolute;
  inset: auto 12% -3.5%;
  height: 6%;
  background: radial-gradient(ellipse, #082c216b, transparent 70%);
}
.hero-fir,
.fir-stage #scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.fir-stage #scene {
  overflow: visible;
}
.set-intro {
  grid-area: picker;
  position: relative;
  z-index: 1;
  color: white;
}
.set-intro h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 4.65vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.set-intro h1 span {
  display: block;
  color: var(--gold);
}
.set-picker {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: fit-content;
  margin-block: clamp(1.2rem, 2.5vw, 2rem) 0.85rem;
}
.set-picker-label {
  color: #d5ded9;
  font: 600 0.92rem/1.2 var(--sans);
}
.count-options {
  display: flex;
  gap: 0.5rem;
}
.count-option {
  display: block;
  position: relative;
  cursor: pointer;
}
.count-option span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid #81a18c;
  background: #ffffff06;
  border-radius: 50%;
  font: 800 1.28rem/1 var(--display);
  transition:
    background 0.17s,
    color 0.17s,
    border-color 0.17s;
}
.count-option:hover span {
  background: var(--spruce);
}
.count-option input:checked + span {
  background: var(--gold);
  color: var(--pine);
  border-color: var(--gold);
}
.count-option input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.set-next {
  background: var(--cran);
  color: white;
  min-height: 48px;
  padding-inline: 1.5rem;
}
.set-next:hover {
  background: var(--cran-dark);
}
.desktop-intro,
.desktop-picker-label {
  display: none;
}
@media (min-width: 1024px) and (min-height: 521px) {
  .site-head .navrow,
  .order-hero .order-layout {
    max-width: 84rem;
  }
  .order-hero .order-layout {
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
    grid-template-rows: minmax(5rem, 1.25fr) auto minmax(3rem, 1fr);
    min-height: clamp(36rem, 83svh, 48rem);
  }
  .fir-tableau {
    height: 85%;
    bottom: 7%;
  }
  .set-intro {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 1rem;
    align-items: end;
  }
  .set-intro h1,
  .desktop-intro {
    grid-column: 1 / -1;
  }
  .set-intro h1 {
    max-width: none;
    font-size: clamp(2.2rem, 3.45vw, 3.5rem);
    line-height: 1.09;
  }
  .desktop-intro {
    display: block;
    max-width: 38ch;
    margin: 1.15rem 0 clamp(1.75rem, 3vw, 2.5rem);
    color: #d5ded9;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.55;
    text-wrap: pretty;
  }
  .set-picker {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0;
  }
  .set-picker-label {
    display: none;
  }
  .desktop-picker-label {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
  }
  .count-option span {
    font-size: 1.1rem;
  }
  .set-next {
    justify-self: start;
    padding-inline: 1.65rem;
  }
}
.order-aside:has(.order-summary:not([hidden])) {
  background: var(--paper);
  border-radius: 23px;
  padding-bottom: 0.5rem;
}
.confirmation .process {
  margin: 1.2rem 0;
  background: transparent;
  border: 0;
}
.confirmation .process-inner {
  width: 100%;
}
.confirmation .process ol {
  font-size: 0.8rem;
}
.confirmation .process-inner img {
  margin: 0;
}
@media (max-width: 750px) {
  .site-head .main-nav {
    display: none;
  }
  .site-head .brand img {
    width: 31px;
    height: 31px;
  }
  .site-head .brand span {
    font-size: 1.22rem;
  }
  .site-head .navrow {
    min-height: 54px;
  }
  .order-layout {
    padding-top: calc(65px + env(safe-area-inset-top, 0px));
  }
  .order-hero .order-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(96px, 1fr) auto;
    grid-template-areas: 'tree' 'picker';
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: min-content;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
  .fir-tableau {
    height: max(100%, min(134vw, 540px));
    bottom: max(6.5%, 24px);
  }
  .set-intro {
    width: min(100%, 450px);
    margin-inline: auto;
  }
  .set-intro h1 {
    max-width: none;
    text-align: center;
    font-size: clamp(1.7rem, 7.2vw, 2.3rem);
  }
  .set-picker {
    margin-inline: auto;
    margin-block: clamp(0.9rem, 2.3vh, 1.4rem) 0.75rem;
  }
  .count-option span {
    font-size: 1.1rem;
  }
  .set-next {
    width: 100%;
    min-height: 46px;
  }
}
@media (max-width: 750px) and (max-height: 660px) {
  .order-hero .order-layout {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
  .set-intro h1 {
    font-size: clamp(1.55rem, 6.7vw, 1.95rem);
  }
  .set-picker {
    margin-block: 0.75rem 0.6rem;
  }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 540px) {
  .fir-tableau {
    height: 96%;
    bottom: 8%;
  }
  .site-head .navrow {
    min-height: 42px;
  }
  .site-head .main-nav {
    display: none;
  }
  .order-hero .order-layout {
    height: auto;
    min-height: 100svh;
    padding-bottom: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: minmax(42px, 1fr) auto minmax(12px, 1fr);
    grid-template-areas: '. tree' 'picker tree' '. tree';
  }
  .set-intro {
    width: 100%;
  }
  .set-intro h1 {
    max-width: none;
    text-align: left;
    font-size: 1.65rem;
  }
  .set-intro h1 span {
    display: inline;
  }
  .set-next {
    min-height: 40px;
  }
}

#order-flow {
  scroll-margin-top: 0;
  background: var(--paper);
  padding-block: clamp(2rem, 4.8vw, 4.75rem);
}
.wrapping-studio h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.04em;
}
.studio-step {
  display: block;
  margin-bottom: 0.55rem;
  font: 650 1rem/1.3 Onest, sans-serif;
  letter-spacing: normal;
  color: var(--cran-dark);
}
.studio-intro {
  margin-top: 0.6rem;
  color: var(--muted);
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.88fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
}
.studio-layout fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.studio-layout legend {
  float: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}
.box-options {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.box-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.25rem 0.55rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    background-color 150ms,
    border-color 150ms;
}
.box-choice:hover {
  background: #fff;
}
.box-choice:has(:checked) {
  border-color: var(--cran);
  background: #fff;
}
.box-choice:has(input:focus-visible) {
  outline: 3px solid #ac5e00;
  outline-offset: 3px;
}
.box-art {
  display: block;
  width: 100%;
  height: auto;
}
.box-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.22;
}
.box-size {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
}
.materials {
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  border-left: 1px solid #bbcbbd;
}
.materials h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: -0.025em;
}
.parcel-detail {
  width: 100%;
  max-width: 24rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
#detail-photo {
  display: block;
  width: 100%;
  height: clamp(9rem, 13vw, 13rem);
}
.parcel-detail figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.materials fieldset + fieldset {
  margin-top: 0.85rem;
}
.materials legend span {
  margin-left: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.samples {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.7rem);
  margin-top: 0.25rem;
}
.material-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
}
.material-sample {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #142d231f;
  background-repeat: no-repeat;
  background-size: 500%;
  background-position: 20% 66%;
}
#wrap-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(2px, 0.5vw, 8px);
  max-width: 24rem;
}
#wrap-options .material-choice {
  width: 100%;
}
#wrap-options .material-sample {
  width: min(34px, calc(100% - 8px));
  aspect-ratio: 1;
  height: auto;
}
#ribbon-options .material-sample {
  width: 29px;
  height: 29px;
  border-radius: 50%;
}
.material-choice:has(:checked) .material-sample {
  outline: 2px solid var(--cran);
  outline-offset: 3px;
}
.material-choice:has(input:focus-visible) .material-sample {
  outline: 3px solid #ac5e00;
  outline-offset: 4px;
}
.studio-next {
  margin-top: 1.4rem;
  min-width: 9rem;
}
.finish-details summary {
  color: var(--pine);
  padding-right: 1.15rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finish-details summary:after {
  right: 0.15rem;
}
.finish-details ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 400;
}
.finish-details li + li {
  margin-top: 0.45rem;
}
@media (max-width: 750px) {
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-top: 1.25rem;
  }
  .wrapping-studio {
    max-width: 520px;
    margin-inline: auto;
  }
  .materials {
    border-left: 0;
    border-top: 1px solid #bbcbbd;
    padding: 1rem 0 0;
  }
  .materials h3 {
    margin-bottom: 0.75rem;
  }
  .studio-next {
    width: 100%;
    min-height: 46px;
    margin-top: 1rem;
  }
  .box-options {
    gap: 0.33rem;
  }
  .box-choice {
    min-width: 0;
    gap: 0.3125rem;
    padding: 0.3125rem 0.1875rem 0.375rem;
    border-radius: 9px;
  }
  .box-art {
    height: clamp(3.25rem, 14vw, 3.75rem);
  }
  .box-caption {
    gap: 0.125rem;
    font-size: clamp(0.8125rem, 3.2vw, 0.875rem);
    line-height: 1.2;
    text-wrap: balance;
  }
  .box-size {
    font-size: 0.75rem;
    word-spacing: -0.06em;
  }
}
@media (max-width: 1060px) {
  .box-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-action .button {
  background: var(--gold);
  border-color: var(--gold);
}
.footer-action .button:hover {
  background: #f7c75f;
}
.preview-title h3 {
  font:
    700 1.65rem/1 Caveat,
    cursive;
}
#order-flow:has(.checkout:not([hidden])) {
  background: var(--night);
}

/* The decorative layer shares the section's stacking context, below all content. */
@media screen and (prefers-reduced-motion: no-preference) {
  .has-wrapping-background {
    position: relative;
    isolation: isolate;
  }
  .wrapping-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .after-delivery > .wrapping-background {
    width: var(--page-width);
    left: calc((100% - var(--page-width)) / 2);
    right: auto;
  }
  .wrapping-background canvas { width: 100%; height: 100%; display: block; }
  .has-snow::before, .has-snow::after {
    position: absolute;
    content: '';
    inset: -256px -48px 0;
    background-image: var(--snow-texture);
    background-size: 384px 256px;
    pointer-events: none;
    animation: drift-snow 17s linear infinite;
    animation-play-state: paused;
  }
  .has-snow::after {
    opacity: .46;
    background-position: 107px 89px;
    animation-duration: 29s;
    animation-delay: -13s;
  }
  .has-snow.is-visible::before, .has-snow.is-visible::after {
    animation-play-state: running;
  }
  @keyframes drift-snow {
    0% { transform: translate(0, 0); }
    48% { transform: translate(14px, 123px); }
    100% { transform: translate(0, 256px); }
  }
}
@media print, (prefers-reduced-motion: reduce) {
  .wrapping-background { display: none; }
}
