:root {
  --wall: #15281f;       /* gallery wall, deep bottle green */
  --wall-deep: #0e1c15;
  --velvet: #5a1622;     /* burgundy velvet */
  --velvet-deep: #3e0d16;
  --gilt: #c8a456;       /* champagne gold */
  --gilt-light: #ead39a;
  --gilt-dark: #8c6d2c;
  --ivory: #f2ead9;      /* text on dark */
  --ink: #1a1510;
  --hair: rgba(200,164,86,.35);   /* gold hairline */
  --display: "Prata", Georgia, serif;
  --accent: "Cormorant Garamond", Georgia, serif;
  --body: "Commissioner", system-ui, sans-serif;
  --gold-grad: linear-gradient(135deg, #f3e1ad 0%, #c8a456 38%, #9c7a34 62%, #e9cf8c 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--wall);
  /* damask wallpaper: a faint repeating fleur, plus a soft vignette */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,236,190,.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='120' viewBox='0 0 80 120'%3E%3Cg fill='none' stroke='%23c8a456' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M40 10c10 14 22 20 22 34s-12 22-22 34c-10-12-22-20-22-34s12-20 22-34z'/%3E%3Cpath d='M40 30c5 7 10 10 10 16s-5 11-10 16c-5-5-10-10-10-16s5-9 10-16z'/%3E%3Ccircle cx='0' cy='100' r='4'/%3E%3Ccircle cx='80' cy='100' r='4'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ivory);
  font: 300 17px/1.7 var(--body);
  letter-spacing: .01em;
}
main { overflow-x: clip; } /* frame spotlights may extend past the viewport */
img { max-width: 100%; display: block; }
a { color: var(--gilt-light); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 em, h2 em { font-family: var(--accent); font-style: italic; font-weight: 500; color: var(--gilt-light); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--gilt-light); outline-offset: 3px; }
.center { text-align: center; }
[hidden] { display: none !important; } /* component display rules must never un-hide */

/* small caps labels replace the old mono captions */
.eyebrow, .placard-meta, .note, .product-shots figcaption, .offer-line {
  font: 500 .72rem/1.5 var(--body); text-transform: uppercase; letter-spacing: .24em;
}
.eyebrow { display: block; color: var(--gilt); margin: 0 0 1rem; }
.eyebrow.center { text-align: center; }

/* offer line + crest header */
.offer-line {
  margin: 0; text-align: center; padding: .55rem 1rem; color: var(--gilt-light);
  border-bottom: 1px solid var(--hair); background: rgba(0,0,0,.25);
}
.offer-line s { opacity: .55; }
.offer-line strong { font-weight: 600; }
.topbar { display: flex; justify-content: center; padding: 1.6rem clamp(16px, 4vw, 48px) 1.2rem; }
.wordmark {
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  font: 400 1.05rem/1 var(--display); color: var(--gilt-light); text-decoration: none;
  text-transform: uppercase; letter-spacing: .38em; margin: 0; padding-left: .38em;
}
.crest { width: 38px; height: 24px; color: var(--gilt); }

/* buttons: champagne gold, square, spaced caps */
.btn {
  display: inline-block; font: 500 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .22em;
  padding: 1.15rem 2.2rem; border-radius: 0; border: 0; cursor: pointer; text-decoration: none;
  transition: filter .3s ease, box-shadow .3s ease;
}
.btn-gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(200,164,86,.7); }
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(234,211,154,.8); }
.btn-gold:disabled { opacity: .5; cursor: wait; }
.btn-ghost { background: transparent; color: var(--gilt-light); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--gilt); }
.note { color: var(--ivory); opacity: .6; margin: 1rem 0 0; letter-spacing: .16em; }

/* ornament divider between galleries */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 520px; margin: 0 auto; padding: 1rem 16px; color: var(--gilt); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--hair)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--hair), transparent); }
.ornament svg { width: 40px; height: 12px; }

/* the frame: black wood-grain like the real product, lit by a museum spotlight */
.frame { margin: 0; position: relative; }
.frame::before {
  content: ""; position: absolute; inset: -18% -25% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse closest-side at 50% 30%, rgba(255,232,180,.14), transparent);
}
.frame > img, .frame > .compare {
  border: clamp(9px, 1.3vw, 14px) solid #111;
  border-image: repeating-linear-gradient(90deg, #0e0e0e 0 3px, #1b1a19 3px 5px, #121212 5px 9px, #232120 9px 10px) 1;
  box-shadow: 0 0 0 1px #3b3a38, 0 30px 60px -10px rgba(0,0,0,.75);
  background: var(--wall-deep);
}
/* engraved brass placard */
.placard {
  display: block; width: max-content; max-width: 90%;
  margin: 1.3rem auto 0; padding: .55rem 1.3rem .5rem;
  background: var(--gold-grad); color: #3a2a0c;
  text-align: center; border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.25), 0 4px 10px rgba(0,0,0,.45);
}
.placard-title { display: block; font: 400 1rem/1.2 var(--display); text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.placard-meta { display: block; font-size: .58rem; letter-spacing: .26em; opacity: .75; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(16px, 4vw, 48px) clamp(4rem, 8vw, 7rem);
  max-width: 1240px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); color: var(--ivory); }
.lede { font-size: 1.12rem; max-width: 32em; margin: 1.8rem 0 2.4rem; opacity: .82; }
.hero-frame { max-width: 460px; justify-self: center; width: 100%; }

/* before/after slider inside the frame */
.compare { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--gilt-light); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid var(--gilt-light); background: rgba(14,28,21,.55);
  box-shadow: 0 0 0 4px rgba(14,28,21,.25);
}

/* hall */
.hall { max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(16px, 4vw, 48px) clamp(2rem, 4vw, 3rem); }
.hall > h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hall-row { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.hall-intro { border-top: 1px solid var(--hair); padding-top: 1.2rem; }
.hall-intro h3 { font: italic 500 2rem/1.1 var(--accent); color: var(--gilt-light); margin-bottom: .7rem; }
.hall-intro p { margin: 0; opacity: .8; }
.frame.small .placard { margin-top: 1rem; padding: .35rem .8rem .3rem; }
.frame.small .placard-title { font-size: .82rem; }

/* what you get */
.product { max-width: 1240px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(16px, 4vw, 48px) clamp(4rem, 8vw, 6rem); }
.product-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.product-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.product-head .spec { margin: 0; }
.product-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.product-shots figure { margin: 0; }
.product-shots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7); }
.product-shots figcaption { color: var(--gilt); margin-top: .8rem; }

/* refined list with gold diamond markers */
.spec { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.spec li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid rgba(200,164,86,.15); }
.spec li::before { content: ""; position: absolute; left: .2rem; top: 1.15em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gilt); }

/* studio (upload + preview): deep velvet with gold hairlines */
.studio {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,220,160,.08), transparent 60%),
    linear-gradient(180deg, var(--velvet-deep), var(--velvet) 30%, var(--velvet-deep));
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(16px, 4vw, 48px);
}
.studio-head, .studio-form, .result { max-width: 760px; margin-left: auto; margin-right: auto; }
.studio-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.studio-head p:not(.eyebrow) { opacity: .82; margin: 1rem auto 2.6rem; text-align: center; max-width: 34em; }
.studio-form { display: grid; gap: 1.6rem; }

.drop {
  position: relative; display: grid; place-items: center; min-height: 230px; padding: 1.5rem;
  border: 1px solid var(--hair); outline: 1px solid rgba(200,164,86,.12); outline-offset: -8px;
  text-align: center; cursor: pointer; background: rgba(0,0,0,.18); transition: background .3s ease;
}
.drop.is-over, .drop:hover { background: rgba(0,0,0,.3); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 260px; }
.drop-text strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--gilt-light); }
.drop-text small { opacity: .6; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.styles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.styles legend { font: 500 .72rem/1.5 var(--body); text-transform: uppercase; letter-spacing: .24em; color: var(--gilt); margin-bottom: .8rem; padding: 0; }
.style-opt { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 1rem; padding: .7rem; border: 1px solid rgba(242,234,217,.2); cursor: pointer; transition: border-color .3s ease, background .3s ease; }
.style-opt img { width: 64px; height: 96px; object-fit: cover; }
.style-opt span { font: italic 500 1.5rem/1 var(--accent); }
.style-opt input { position: absolute; opacity: 0; }
.style-opt:has(input:checked) { border-color: var(--gilt); background: rgba(0,0,0,.22); }
.style-opt:has(input:checked) span { color: var(--gilt-light); }
.style-opt:has(input:focus-visible) { outline: 2px solid var(--gilt-light); outline-offset: 2px; }

.field { display: grid; gap: .5rem; font: 500 .72rem/1.5 var(--body); text-transform: uppercase; letter-spacing: .24em; color: var(--gilt); }
.field small { text-transform: none; letter-spacing: .02em; color: var(--ivory); opacity: .6; font-weight: 300; }
.field input { font: 300 1.05rem var(--body); letter-spacing: .01em; text-transform: none; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ivory); }
.field input:focus { outline: none; border-bottom-color: var(--gilt-light); }
.studio-form .btn { justify-self: center; min-width: 280px; }
.form-error { margin: 0; background: var(--ivory); color: var(--velvet); padding: .8rem 1rem; font-weight: 500; }

.result { margin-top: 3rem; }
.working { display: grid; justify-items: center; gap: 1.2rem; padding: 2rem 0; text-align: center; }
.brush { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(242,234,217,.2); border-top-color: var(--gilt-light); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.result-frame img { width: 100%; }
.order-box h3 { font: italic 500 2.2rem/1.1 var(--accent); color: var(--gilt-light); margin-bottom: 1rem; }
.price { font-family: var(--display); font-size: 2.6rem; margin: .4rem 0 1.4rem; }
.price s { font-size: 1.2rem; opacity: .45; margin-right: .5rem; }
.order-box .btn { width: 100%; text-align: center; margin-bottom: .8rem; }

/* steps: a real sequence, so it is numbered, in roman numerals like a museum catalogue */
.steps { max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) clamp(16px, 4vw, 48px); }
.steps h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }
.steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--hair); padding-top: 1.4rem; }
.steps li::before { content: counter(step, upper-roman); font: italic 500 2.2rem/1 var(--accent); color: var(--gilt); display: block; margin-bottom: .8rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { margin: 0; opacity: .78; }

.faq { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(16px, 4vw, 48px) clamp(4rem, 8vw, 6rem); }
.faq h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--hair); padding: 1.2rem 0; }
.faq summary { cursor: pointer; font: 400 1.15rem/1.4 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gilt); font-family: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; opacity: .8; }

.foot { border-top: 1px solid var(--hair); padding: 3rem clamp(16px, 4vw, 48px); text-align: center; font: 400 .75rem/1.6 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(242,234,217,.55); }
.foot .wordmark { margin-bottom: 1.2rem; }
.foot p { margin: 0 0 .3rem; }

/* gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-frame { max-width: 360px; }
  .hall-row { grid-template-columns: repeat(3, 1fr); }
  .hall-intro { grid-column: 1 / -1; }
  .done { grid-template-columns: 1fr; }
  .product-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-shots { grid-template-columns: 1fr 1fr; }
  .product-shots figure:first-child { grid-column: 1 / -1; }
  .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .wordmark { letter-spacing: .28em; }
  .hall-row { grid-template-columns: 1fr 1fr; }
  .hall-row .frame:last-child { display: none; }
  .styles { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .studio-form .btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brush { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* payment confirmation page */
.thanks { max-width: 640px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(16px, 4vw, 48px); text-align: center; }
.thanks h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.thanks p { opacity: .85; margin: 0 0 2rem; }

/* delivery step in the order box */
.delivery { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.delivery legend { font: 500 .72rem/1.5 var(--body); text-transform: uppercase; letter-spacing: .24em; color: var(--gilt); margin-bottom: .6rem; padding: 0; }
.carrier { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid rgba(242,234,217,.2); cursor: pointer; transition: border-color .3s ease, background .3s ease; }
.carrier input { accent-color: var(--gilt); }
.carrier span { flex: 1; }
.carrier em { font: italic 500 1.2rem/1 var(--accent); color: var(--gilt-light); }
.carrier:has(input:checked) { border-color: var(--gilt); background: rgba(0,0,0,.22); }
.pick { display: grid; gap: .7rem; }
/* BOX NOW map in a large modal */
.map-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); background: rgba(8,14,11,.82); backdrop-filter: blur(3px); }
.map-modal-box { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(760px, 100%); background: var(--wall-deep); border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.map-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--hair); }
.map-modal-head p { margin: 0; font: italic 500 1.4rem/1.2 var(--accent); color: var(--gilt-light); }
.map-modal-close { background: none; border: 1px solid var(--hair); color: var(--gilt-light); width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.map-modal-close:hover { border-color: var(--gilt); }
#boxnowmap { flex: 1; min-height: 0; background: #fff; }
#boxnowmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn-small { padding: .8rem 1rem; font-size: .68rem; letter-spacing: .16em; white-space: nowrap; }
.econt-tools { display: flex; gap: .6rem; }
.econt-tools input { flex: 1; min-width: 0; font: 300 1rem var(--body); padding: .75rem .9rem; border: 1px solid var(--hair); background: rgba(0,0,0,.2); color: var(--ivory); }
.econt-tools input:focus { outline: none; border-color: var(--gilt-light); }
.econt-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid rgba(200,164,86,.15); }
.econt-list:empty { display: none; }
.econt-item { display: grid; gap: .15rem; width: 100%; text-align: left; padding: .7rem .9rem; background: transparent; border: 0; border-bottom: 1px solid rgba(200,164,86,.12); color: var(--ivory); font: 300 .9rem/1.4 var(--body); cursor: pointer; }
.econt-item strong { font-weight: 500; }
.econt-item span { opacity: .7; font-size: .82rem; }
.econt-item:hover, .econt-item.is-picked { background: rgba(200,164,86,.12); }
.econt-item.is-picked strong { color: var(--gilt-light); }
.econt-list .muted { padding: .8rem .9rem; opacity: .6; font-size: .9rem; }
.chosen { margin: .2rem 0 0; font-size: .92rem; opacity: .7; }
.chosen.is-set { opacity: 1; color: var(--gilt-light); }
.price small { font: 300 .95rem var(--body); opacity: .7; margin-left: .4rem; }
@media (max-width: 520px) { .econt-tools { flex-direction: column; } }

/* contact form before the footer */
.contact { max-width: 680px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(16px, 4vw, 48px) clamp(4rem, 8vw, 6rem); }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-lede { text-align: center; opacity: .8; margin: 1rem auto 2.4rem; max-width: 30em; }
.contact-form { display: grid; gap: 1.6rem; }
.contact-form textarea { font: 300 1.05rem/1.6 var(--body); letter-spacing: .01em; text-transform: none; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ivory); resize: vertical; }
.contact-form textarea:focus { outline: none; border-bottom-color: var(--gilt-light); }
.contact-form .btn { justify-self: center; min-width: 280px; }
.contact-form .note { margin-top: 0; }
.contact-status { margin: 0; text-align: center; color: var(--gilt-light); }
.contact-status.is-error { color: #f0b3a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .contact-form .btn { min-width: 0; width: 100%; } }

/* legal pages and small links */
.foot a { color: var(--gilt-light); text-decoration: none; border-bottom: 1px solid var(--hair); }
.foot a:hover { border-bottom-color: var(--gilt); }
.terms-note { margin: .2rem 0 0; font-size: .85rem; opacity: .75; text-align: center; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(16px, 4vw, 48px) clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; color: var(--gilt-light); margin: 2.4rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--hair); }
.legal p, .legal li { opacity: .88; }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }
.legal strong { font-weight: 500; color: var(--ivory); }
.legal-back { text-align: center; margin-top: 3rem; }
