/* =====================================================================
   Designs viewer — the home page's cream & gold, charcoal text,
   slim gilded liquid-glass controls and a warm golden glow behind the designs.
   ===================================================================== */
.std {
  --paper: #fefdf3;                                /* same cream as the home page */
  --card: #fffefa;
  --soft: #f7f2e6;
  --char: #3a3a3a;
  --char-2: #6b6255;
  --char-3: #a0957f;
  --line: rgba(120, 90, 30, .14);
  --gold: #b87402;
  --gold-2: #d6a848;
  --top-h: 60px;                                   /* category bar */
  --stage-top: var(--top-h);
  --avail: calc(100svh - var(--stage-top) - 34px);
  --ch: min(calc(var(--avail) / 1.09), calc(94vw * 16 / 9), 960px);   /* card height */
  --cw: calc(var(--ch) * 9 / 16);
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--char);
  font-family: "Bodoni Moda", Georgia, serif;
  overflow: hidden; touch-action: none;
  -webkit-user-select: none; user-select: none;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); visibility: hidden;
  transition: clip-path .85s cubic-bezier(.7, 0, .2, 1), visibility 0s .85s;
}
.std.open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); visibility: visible; transition: clip-path .85s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.std .cap { display: block; font: 500 10.5px/1.2 "Bodoni Moda", serif; letter-spacing: .2em; text-transform: uppercase; color: #a57a2c; }

/* ---------- ambient background: the design, softly blurred ---------- */
.std-ambient { position: absolute; inset: 0; pointer-events: none; }
.std-ambient img {
  position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover;
  filter: blur(60px) saturate(1.15); opacity: 0; transition: opacity 1.1s ease;
}
.std-ambient img.on { opacity: .26; }
.std-ambient::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 45%, rgba(254, 253, 243, .05), rgba(254, 253, 243, .7) 70%),
    linear-gradient(to bottom, rgba(254, 253, 243, .65), transparent 22%, transparent 80%, rgba(254, 253, 243, .7));
}

/* ---------- slim liquid-glass buttons ---------- */
.glass-btn, .glass-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 12.5px/1 "Bodoni Moda", serif; letter-spacing: .06em; color: var(--char); text-decoration: none;
  background:
    radial-gradient(120% 140% at 50% 130%, rgba(214, 168, 72, .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .52));
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(206, 158, 60, .5), inset 0 0 0 .5px rgba(184, 116, 2, .22),
    0 6px 18px -10px rgba(150, 105, 20, .35);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s, box-shadow .25s;
}
.glass-icon { width: 36px; padding: 0; }
.glass-btn svg, .glass-icon svg { width: 17px; height: 17px; flex: none; }
.glass-btn:active, .glass-icon:active { transform: scale(.96); }
.glass-btn.strong { color: #fdf8ea; background: linear-gradient(180deg, rgba(62, 60, 56, .94), rgba(40, 38, 35, .94)); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .22), inset 0 0 0 .5px rgba(214, 168, 72, .55), 0 8px 20px -10px rgba(90, 60, 10, .55); }
.glass-btn.on-dark { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.glass-btn.on-dark.strong { color: var(--char); background: rgba(255, 255, 255, .9); text-shadow: none; }
.glass-btn.wide { flex: 1; }
.glass-btn.icon-only { width: 36px; padding: 0; }
.glass-btn[disabled] { opacity: .55; pointer-events: none; }
@media (hover: hover) {
  .glass-btn:hover, .glass-icon:hover { transform: translateY(-1px); }
}

/* ---------- top bar: back · categories · count ---------- */
.std-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40; height: var(--top-h);
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 14px 0;
}
.std-cats {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
}
.std-cats::-webkit-scrollbar { display: none; }
.std-cats button {
  flex: none; scroll-snap-align: center; border: 0; background: none; cursor: pointer;
  height: 30px; padding: 0 13px; border-radius: 10px;
  font: 500 12.5px/1 "Bodoni Moda", serif; letter-spacing: .04em; color: var(--char-2);
  display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s;
}
.std-cats button.on { background: #fffefa; color: var(--char); box-shadow: 0 2px 8px -3px rgba(120, 85, 20, .25), inset 0 0 0 .5px rgba(184, 116, 2, .3); }
.std-cats button.soon { color: var(--char-3); cursor: default; }
.std-cats small { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .05); }
.std-count { font-size: 12px; letter-spacing: .08em; color: var(--char-3); font-variant-numeric: tabular-nums; }
.std-count b { color: var(--char); font-weight: 500; }

/* ---------- stage: deck (+ info panel on desktop) ---------- */
.std-stage {
  position: absolute; left: 0; right: 0; top: var(--stage-top); bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 56px;
}
.std-deck { position: relative; flex: none; width: var(--cw); height: var(--ch); margin-top: calc(var(--ch) * .08); perspective: 1400px; }
.std-info { display: none; }

/* ---------- a design card ---------- */
.reel {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #1d1a16;
  transform-origin: 50% 0%; will-change: transform, opacity;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 50px -24px rgba(0, 0, 0, .45);
}
.reel::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35); }
.reel video, .reel .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .poster { transition: opacity .4s; }
.reel.playing .poster { opacity: 0; }
.reel-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .28), transparent 16%), linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 22%, transparent 36%);
}
.reel-dim { position: absolute; inset: 0; z-index: 7; background: var(--paper); pointer-events: none; opacity: 0; border-radius: inherit; }
.reel-no { position: absolute; z-index: 3; left: 16px; top: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.reel-speed, .page-count {
  position: absolute; z-index: 5; right: 16px; top: 16px; display: flex; align-items: center; gap: 4px;
  font: 500 12px/1 "Bodoni Moda", serif; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.reel-speed { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .35s; pointer-events: none; }
.reel-speed svg { width: 12px; height: 12px; }
.reel.fast .reel-speed { opacity: 1; transform: none; }

/* right-hand rail: one slim glass capsule */
.reel-rail {
  position: absolute; z-index: 4; right: 12px; bottom: 70px;
  display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(20, 20, 20, .22); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35);
}
.reel-rail button {
  width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; background: none; color: #fff;
  display: grid; place-items: center; font: 500 12px/1 "Bodoni Moda", serif;
}
.reel-rail button svg { width: 17px; height: 17px; }
.reel-rail button.on { background: rgba(255, 255, 255, .2); }
.reel-foot { position: absolute; z-index: 4; left: 12px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 6px; }
.reel-foot .glass-btn { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.reel-price { margin-left: auto; font-size: 14px; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); white-space: nowrap; }
.std.needs-fn .reel-price { font-size: 11px; letter-spacing: .06em; opacity: .9; }
.reel-progress { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.reel-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: #fff; }

.reel-flash {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 18px; color: #fff; pointer-events: none;
  background: rgba(20, 20, 20, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0;
}
.reel-flash svg { width: 26px; height: 26px; }
.reel-flash.show { animation: flash .7s ease-out; }
.reel.paused .reel-flash { opacity: 1; animation: none; }
@keyframes flash { 0% { opacity: 0; scale: .7; } 25% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.2; } }
.reel-sound {
  position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% 40px; padding: 8px 14px; border-radius: 10px;
  font-size: 12px; letter-spacing: .08em; color: #fff; background: rgba(20, 20, 20, .45); backdrop-filter: blur(8px); display: none;
}
.std.needs-sound .reel.active .reel-sound { display: block; }

/* planner pages */
.reel-paged { background: #f3ece0; }
.reel-pages { position: absolute; inset: 0; overflow: hidden; z-index: 1; isolation: isolate; }   /* pages stack inside, always under the shade */
.reel-pages .page {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #f3ece0;
  will-change: transform, filter; transform-origin: 30% 50%; box-shadow: -18px 0 36px -18px rgba(0, 0, 0, .45);
}
.page-dots { position: absolute; z-index: 5; left: 50%; bottom: 7px; translate: -50% 0; display: flex; gap: 5px; }
.page-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .35s; }
.page-dots i.on { width: 14px; border-radius: 3px; background: #fff; }
.reel-paged .reel-rail { bottom: 64px; }

/* ---------- hint + desktop arrows ---------- */
.std-hint {
  position: absolute; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 30;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--char-3); white-space: nowrap; transition: opacity .6s;
}
.std.used .std-hint { opacity: 0; }
.std-arrows { position: absolute; z-index: 30; right: 26px; top: 50%; translate: 0 -50%; display: none; flex-direction: column; gap: 8px; }

/* ---------- panels (Details + Order) ---------- */
.std-scrim {
  position: absolute; left: 0; right: 0; top: var(--stage-top); bottom: 0; z-index: 50;
  background: rgba(30, 28, 25, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.std.panel-open .std-scrim { opacity: 1; pointer-events: auto; }
.std-panel {
  position: absolute; z-index: 60; left: 0; right: 0; bottom: 0;
  max-height: calc(100svh - var(--stage-top) - 8px);
  display: flex; flex-direction: column;
  background: var(--card); color: var(--char); border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .5);
  transform: translateY(104%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  -webkit-user-select: text; user-select: text; touch-action: auto;
}
.panel-order { top: calc(var(--stage-top) + 8px); max-height: none; }
.std-panel.open { transform: none; }
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 18px 12px; border-bottom: .5px solid var(--line);
}
.panel-head h3, .std-info h3 { margin-top: 6px; font: italic 200 24px/1.1 "Atlante Display", "Noto Serif Display", serif; color: var(--char); }
.panel-head .glass-icon { flex: none; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px 28px; overscroll-behavior: contain; }
.panel-foot {
  flex: none; display: flex; gap: 8px; align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: .5px solid var(--line); background: var(--card);
}
.panel-foot.col { flex-direction: column; align-items: stretch; }
.panel-foot.sticky { position: sticky; bottom: -28px; margin: 18px -18px -28px; }
.panel-foot .glass-btn { height: 44px; font-size: 13.5px; }
.panel-foot .glass-btn:not(.strong) { background: var(--soft); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); }

/* details: caption-style blocks */
.d-price { display: flex; align-items: baseline; gap: 10px; padding-bottom: 14px; }
.d-price b { font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.d-price span { font-size: 12.5px; color: var(--char-2); }
.d-block { padding: 14px 0; border-top: .5px solid var(--line); }
.d-block .cap { margin-bottom: 8px; }
.d-block p, .d-list li { font-size: 14px; line-height: 1.6; letter-spacing: .01em; color: var(--char); }
.d-list { list-style: none; display: grid; gap: 6px; }
.d-list li { position: relative; padding-left: 16px; }
.d-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: .5px; background: var(--char-2); }
.d-list b { font-weight: 500; }

/* forms */
.o-summary { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--soft); margin-bottom: 6px; }
.o-summary img { width: 44px; height: 78px; object-fit: cover; border-radius: 8px; }
.o-summary b { display: block; font-weight: 500; font-size: 14px; }
.o-summary span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--char-2); }
.f-set { border: 0; padding: 16px 0 4px; border-top: .5px solid var(--line); margin-top: 12px; min-width: 0; }
.f-set legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.f-grid { clear: both; display: grid; grid-template-columns: 1fr; gap: 10px; }
.f-field { display: grid; gap: 5px; min-width: 0; }
.f-field span { font-size: 11.5px; letter-spacing: .04em; color: var(--char-2); }
.f-field span i { font-style: normal; color: var(--gold); }
.f-field input, .f-field textarea {
  width: 100%; min-height: 44px; padding: 11px 13px; border-radius: 12px; border: .5px solid rgba(0, 0, 0, .16);
  background: #fff; color: var(--char); font: 400 15px/1.3 "Bodoni Moda", serif; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.f-field textarea { resize: vertical; min-height: 84px; }
.f-field input:focus, .f-field textarea:focus { border-color: var(--char); box-shadow: 0 0 0 3px rgba(184, 137, 58, .18); }
.f-field.invalid input, .f-field.invalid textarea, .f-seg.invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.f-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); border: .5px solid transparent; }
.f-seg label { position: relative; }
.f-seg input { position: absolute; opacity: 0; pointer-events: none; }
.f-seg span { display: grid; place-items: center; height: 38px; border-radius: 10px; font-size: 13.5px; color: var(--char-2); cursor: pointer; transition: background .2s, color .2s; }
.f-seg input:checked + span { background: #fff; color: var(--char); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .2); }
.f-fnnote { font-size: 12px; color: var(--char-2); margin: 14px 0 -4px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.f-error { margin-top: 14px; font-size: 13px; color: #b3261e; }
@media (min-width: 440px) {
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-field:not(.half) { grid-column: 1 / -1; }
}

/* payment */
.pay-sum { border-radius: 14px; background: var(--soft); padding: 4px 14px; margin-bottom: 6px; }
.pay-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13.5px; color: var(--char-2); }
.pay-sum div + div { border-top: .5px solid var(--line); }
.pay-sum b { font-weight: 500; color: var(--char); white-space: nowrap; }
.pay-sum .due { color: var(--char); }
.pay-sum .due b { font-size: 18px; }
.pay-qr { display: grid; place-items: center; padding: 16px 0 6px; }
.pay-qr img { width: min(240px, 66vw); border-radius: 18px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 16px 34px -18px rgba(0, 0, 0, .35); }
.steps { padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.steps b { font-weight: 500; }
.glass-btn.wa svg { width: 18px; height: 18px; }
.help-link { display: block; text-align: center; font-size: 12.5px; color: var(--char-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .2); padding: 6px 0 2px; }

/* confirmation */
.confirmed { text-align: center; padding-top: 34px; }
.confirmed .ok { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--char); color: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.confirmed .ok svg { width: 28px; height: 28px; }
.confirmed h3 { font: italic 500 30px/1.1 "Atlante Display", "Noto Serif Display", serif; }
.confirmed p { margin: 10px auto 0; max-width: 340px; font-size: 14.5px; line-height: 1.6; }
.confirmed .soft { color: var(--char-2); font-size: 13.5px; }
.confirmed .help-link { margin-top: 18px; }

/* toast + share menu */
.std-toast {
  position: absolute; z-index: 90; left: 50%; bottom: 46px; translate: -50% 10px; padding: 10px 16px; border-radius: 12px;
  font-size: 12.5px; letter-spacing: .04em; color: #fff; background: rgba(40, 40, 40, .9); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s; white-space: nowrap;
}
.std-toast.show { opacity: 1; translate: -50% 0; }
.std-share {
  position: fixed; z-index: 95; width: 250px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08), 0 20px 50px -20px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s;
}
.std-share.open { opacity: 1; transform: none; pointer-events: auto; }
.std-share button, .std-share a {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 11px; background: none; cursor: pointer;
  font: 500 13px/1 "Bodoni Moda", serif; color: var(--char); text-decoration: none; text-align: left;
}
.std-share svg { width: 18px; height: 18px; color: var(--char-2); }
.std-share button:hover, .std-share a:hover { background: var(--soft); }

/* ---------- desktop / laptop ---------- */
@media (min-width: 1000px) {
  .std { --top-h: 68px; --avail: calc(100svh - var(--stage-top) - 30px); }
  .std-top { grid-template-columns: 36px 1fr 36px; padding: 16px 24px 0; }
  .std-cats { justify-self: center; max-width: 720px; }
  .std-count { justify-self: end; }
  .std-arrows { display: flex; }
  .std-hint { display: none; }
  .std-info {
    display: block; width: 320px; flex: none; margin-top: calc(var(--ch) * .08);
    padding: 26px 24px; border-radius: 22px;
    background: rgba(255, 255, 255, .62); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06), 0 24px 60px -34px rgba(0, 0, 0, .4);
  }
  .std-info .info-price { margin: 14px 0 16px; padding-top: 12px; border-top: .5px solid rgba(184, 137, 58, .55); font-size: 22px; letter-spacing: .02em; }
  .std-info .info-price small { display: block; margin-top: 4px; font-size: 12px; color: var(--char-2); letter-spacing: .03em; }
  .std-info ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
  .std-info li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--char-2); }
  .std-info li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: .5px; background: var(--char-2); }
  .info-actions { display: grid; grid-template-columns: 1fr 36px; gap: 8px; }
  .info-actions .do-customise { grid-column: 1 / -1; height: 42px; }
  .info-actions .glass-btn:not(.strong) { background: rgba(255, 255, 255, .8); }
  .info-note { margin-top: 16px; font-size: 12px; line-height: 1.55; color: var(--char-3); }
  .reel .reel-foot .do-details, .reel .reel-foot .do-customise { display: none; }   /* on desktop they live in the side panel */
  .std-scrim { top: 0; }
  .std-panel {
    left: auto; right: 20px; top: calc(var(--stage-top) + 4px); bottom: 20px; width: 460px; max-height: none;
    border-radius: 22px; transform: translateX(calc(100% + 40px));
  }
  .std-panel.open { transform: none; }
  .std.panel-open .std-top { z-index: 70; }
}

/* short phones: a touch more room for the card */
@media (max-height: 700px) {
  .std { --top-h: 54px; }
}

@media (prefers-reduced-motion: reduce) { .std, .std.open { transition: none; } }
.panel-foot.col .glass-btn.wide { flex: none; width: 100%; }

/* =====================================================================
   Golden atmosphere behind the designs (fills the empty page)
   ===================================================================== */
.std {
  background:
    radial-gradient(90% 60% at 50% 110%, rgba(214, 168, 72, .22), transparent 70%),
    radial-gradient(70% 50% at 50% -10%, rgba(232, 200, 130, .28), transparent 70%),
    var(--paper);
}
.std-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.std-glow i {
  position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: multiply; opacity: .55;
  animation: glow-drift 22s ease-in-out infinite alternate;
}
.std-glow i:nth-child(1) { width: 62vmax; height: 62vmax; left: -22vmax; top: -18vmax; background: radial-gradient(circle, rgba(222, 178, 90, .55), transparent 65%); }
.std-glow i:nth-child(2) { width: 56vmax; height: 56vmax; right: -20vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(200, 145, 45, .45), transparent 65%); animation-duration: 28s; animation-delay: -9s; }
.std-glow i:nth-child(3) { width: 36vmax; height: 36vmax; left: 50%; top: 42%; margin: -18vmax; background: radial-gradient(circle, rgba(245, 214, 150, .6), transparent 65%); animation-duration: 18s; animation-delay: -5s; }
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vmax, 3vmax) scale(1.08); }
  100% { transform: translate(-3vmax, 5vmax) scale(.96); }
}
/* gold dust + a fine gilded hairline under the top bar */
.std-glow::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(184, 116, 2, .55), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgba(184, 116, 2, .5), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 62%, rgba(184, 116, 2, .45), transparent 60%),
    radial-gradient(1px 1px at 22% 78%, rgba(184, 116, 2, .5), transparent 60%),
    radial-gradient(1.2px 1.2px at 58% 88%, rgba(184, 116, 2, .4), transparent 60%),
    radial-gradient(1px 1px at 38% 8%, rgba(184, 116, 2, .45), transparent 60%);
  background-size: 420px 420px; animation: dust 9s ease-in-out infinite alternate;
}
.std-glow::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: calc(var(--top-h) + 2px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 116, 2, .35), transparent);
}
@keyframes dust { from { opacity: .3; } to { opacity: .7; } }
.reel { box-shadow: 0 1px 2px rgba(60, 40, 10, .1), 0 30px 60px -26px rgba(110, 72, 10, .5), 0 0 0 .5px rgba(184, 116, 2, .25); }

/* ---------- price in the reel → opens the functions pop-up ---------- */
button.reel-price { border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit; text-align: right; line-height: 1.15; }
.reel-price small { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 10.5px; letter-spacing: .06em; opacity: .85; }
.reel-price small svg { width: 12px; height: 12px; }
.std.needs-fn .reel-price { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
button.link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: #9a6a12;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(184, 116, 2, .35);
}
.f-fnnote button.link { margin-left: 6px; }

/* ---------- functions pop-up (appears when a priced category opens) ---------- */
.std-fnpop {
  position: absolute; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px;
  background: rgba(60, 44, 18, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.std-fnpop.open { opacity: 1; pointer-events: auto; }
.fnpop-card {
  position: relative; width: min(420px, 100%); padding: 26px 22px 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 254, 248, .96), rgba(252, 247, 234, .94));
  box-shadow: inset 0 0 0 .5px rgba(184, 116, 2, .3), 0 40px 80px -30px rgba(80, 50, 10, .55);
  transform: translateY(16px) scale(.97); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  -webkit-user-select: none; user-select: none;
}
.std-fnpop.open .fnpop-card { transform: none; }
.fnpop-card::before {       /* small gilded ornament */
  content: ""; display: block; width: 46px; height: 1px; margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.fnpop-card h3 { margin-top: 6px; font: italic 200 28px/1.15 "Atlante Display", "Noto Serif Display", serif; color: var(--char); letter-spacing: .02em; }
.fnpop-sub { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--char-2); }
.fnpop-card .fn-slider {
  display: flex; gap: 2px; margin: 18px 0 4px; padding: 4px; border-radius: 14px; overflow-x: auto; scrollbar-width: none;
  background: #fff; box-shadow: inset 0 0 0 .5px rgba(120, 90, 30, .16), 0 8px 22px -16px rgba(90, 60, 10, .4);
}
.fnpop-card .fn-slider::-webkit-scrollbar { display: none; }
.fnpop-card .fn-slider button {
  flex: 1 0 34px; height: 40px; border: 0; border-radius: 10px; cursor: pointer; background: none;
  font: 500 15px/1 "Bodoni Moda", serif; color: var(--char-2); transition: background .25s, color .25s, transform .3s;
}
.fnpop-card .fn-slider button:active { transform: scale(.94); }
.fnpop-card .fn-slider button.on { background: var(--char); color: #fdf8ea; box-shadow: inset 0 0 0 .5px rgba(214, 168, 72, .6); }
.fnpop-notes { list-style: none; display: grid; gap: 8px; margin: 16px 0 4px; text-align: left; }
.fnpop-notes:empty { display: none; }
.fnpop-notes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--char-2); }
.fnpop-notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--gold-2); }
.fnpop-go { width: 100%; height: 44px; margin-top: 18px; font-size: 13.5px; }
.fnpop-skip {
  margin-top: 8px; border: 0; background: none; cursor: pointer; padding: 8px;
  font: 400 12px/1 "Bodoni Moda", serif; letter-spacing: .06em; color: var(--char-3);
}

/* ---------- details / panels: warm touches ---------- */
.d-list li::before, .std-info li::before { background: var(--gold-2) !important; }
.f-field input, .f-field textarea { border-color: rgba(120, 90, 30, .2); background: #fff; }
.confirmed .ok { box-shadow: inset 0 0 0 .5px rgba(214, 168, 72, .6), 0 12px 28px -12px rgba(90, 60, 10, .5); }

/* ---------- tablets (portrait): centred sheets, not edge-to-edge ---------- */
@media (min-width: 640px) and (max-width: 999px) {
  .std { --top-h: 66px; }
  .std-top { padding-left: 20px; padding-right: 20px; }
  .std-cats { justify-self: center; }
  .std-panel { left: 50%; right: auto; width: min(600px, calc(100% - 40px)); margin-left: calc(min(600px, calc(100% - 40px)) / -2); border-radius: 24px 24px 0 0; }
  .std-arrows { display: flex; }
  .reel-foot .glass-btn { height: 34px; }
}
/* desktop / iPad landscape: info panel sits next to the design */
@media (min-width: 1000px) {
  .std-info { background: rgba(255, 254, 248, .66); box-shadow: inset 0 0 0 .5px rgba(184, 116, 2, .22), 0 24px 60px -34px rgba(90, 60, 10, .45); }
  .std-info h3 { font-size: 30px; }
  .std-info .info-price small .link { font-size: 12px; }
}
/* very small phones */
@media (max-width: 360px) {
  .std-top { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .std-cats button { padding: 0 10px; font-size: 12px; }
  .reel-foot .glass-btn { padding: 0 10px; font-size: 11.5px; }
  .fnpop-card { padding: 22px 16px 14px; }
  .fnpop-card h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .std-glow i, .std-glow::before { animation: none; } }

/* the home page's motifs, very faint: drifting LUXE lettering + the lotus mark behind the design */
.std-word {
  position: absolute; left: 0; top: 54%; translate: 0 -50%; white-space: nowrap;
  font: 600 min(42vw, 62vh)/1 "Bodoni Moda", serif; letter-spacing: .1em; color: #ebd1ba; opacity: .32;
}
.std-word span { display: inline-block; animation: word-drift 120s linear infinite; }
@keyframes word-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.std-lotus {
  position: absolute; left: 50%; top: 54%; width: min(900px, 120vw); translate: -50% -50%;
  opacity: .16; filter: saturate(.8); mix-blend-mode: multiply;
}
@media (min-width: 1000px) { .std-lotus { left: calc(50% - 188px); } }   /* centred on the design, not the page */
@media (prefers-reduced-motion: reduce) { .std-word span { animation: none; } }

/* planner pages are light – a slightly deeper shade keeps the price & buttons readable on every page */
.reel-paged .reel-shade {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3), transparent 16%),
              linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .18) 24%, transparent 40%);
}

/* ---------- portfolio: 2× demo (first video of the visit) ---------- */
.reel-demo {
  position: absolute; z-index: 6; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; justify-items: center; gap: 14px; pointer-events: none; opacity: 0; transition: opacity .35s;
}
.reel.demo .reel-demo { opacity: 1; }
.reel-demo i {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.reel-demo i::after {        /* ripple: a finger pressing and holding */
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8);
  animation: press 1.2s ease-out infinite;
}
.reel.demo .reel-demo i { animation: hold 1.2s ease-in-out infinite; }
@keyframes press { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes hold { 0%, 100% { transform: scale(1); } 30%, 70% { transform: scale(.86); } }
.reel-demo span {
  padding: 8px 14px; border-radius: 12px; white-space: nowrap;
  font: 500 12.5px/1 "Bodoni Moda", serif; letter-spacing: .08em; color: #fff;
  background: rgba(20, 20, 20, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- slow connection: a quiet ring while the video catches up (poster stays visible) ---------- */
.reel.active.buffering::before {
  content: ""; position: absolute; z-index: 5; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .9s linear infinite;
}
.reel.active.paused.buffering::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* details is the only action in portfolio mode */
.info-actions .do-details.wide { grid-column: 1 / -1; height: 42px; }

/* ---------- order form: stronger, easier-to-read text ---------- */
.order-form .f-set legend .cap, .order-form legend.cap, .order-form .f-set .cap { font-size: 12px; letter-spacing: .16em; color: #8a5a06; font-weight: 600; }
.order-form .f-field span { font-size: 13.5px; letter-spacing: .02em; color: #2f2c28; font-weight: 500; }
.order-form .f-field input, .order-form .f-field textarea {
  font-size: 16px; color: #1f1d1a; border: 1px solid rgba(110, 80, 25, .32); background: #fff;
}
.order-form .f-field input::placeholder, .order-form .f-field textarea::placeholder { color: #8f8578; opacity: 1; }
.order-form .f-field input:focus, .order-form .f-field textarea:focus { border-color: #8a5a06; box-shadow: 0 0 0 3px rgba(184, 116, 2, .18); }
.order-form .f-seg { background: #f1e9d6; border: 1px solid rgba(110, 80, 25, .18); }
.order-form .f-seg span { font-size: 14.5px; color: #3a352e; font-weight: 500; }
.order-form .f-seg input:checked + span { background: var(--char); color: #fdf8ea; }
.order-form .f-fnnote { font-size: 13px; color: #2f2c28; background: #f4ecd9; }
.order-form .o-summary b { font-size: 15px; color: #1f1d1a; }
.order-form .o-summary span { font-size: 13.5px; color: #4a443b; }
.order-form .f-error { font-size: 14px; font-weight: 500; }
.order-form .f-field input[type=date], .order-form .f-field input[type=time] { color: #1f1d1a; }
.glass-btn.wa svg { width: 18px; height: 18px; }
.confirmed .ok svg { width: 30px; height: 30px; }

/* ---------- prices: a clean, plain figure font so ₹ amounts read at a glance ---------- */
.reel-price, .std-info .info-price, .d-price b, .o-price, .pay-sum b {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em;
}
.reel-price { font-size: 16px; font-weight: 600; }
.std-info .info-price { font-weight: 500; }
.d-price b { font-weight: 600; }
.reel-price small, .std-info .info-price small { font-family: "Bodoni Moda", Georgia, serif; font-weight: 400; }

/* =====================================================================
   Portfolio start: blurred designs behind "What are you looking for?"
   ===================================================================== */
.std.instant, .std.instant.open { transition: none; }
.std-pick {
  position: absolute; inset: 0; z-index: 88; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(254, 253, 243, .2), rgba(254, 253, 243, .55)),
    rgba(120, 88, 30, .08);
  backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.std-pick.open { opacity: 1; pointer-events: auto; }
.std.picking .std-hint, .std.picking .std-arrows { opacity: 0; pointer-events: none; }
.pick-card {
  width: min(400px, 100%); padding: 30px 22px 22px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 254, 248, .82), rgba(252, 247, 234, .76));
  box-shadow: inset 0 0 0 .5px rgba(184, 116, 2, .32), 0 40px 90px -36px rgba(80, 50, 10, .55);
  transform: translateY(14px) scale(.98); transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.std-pick.open .pick-card { transform: none; }
.pick-logo { width: 44px; height: auto; margin: 0 auto 10px; display: block; }
.pick-card h3 {
  margin: 8px 0 22px; font: italic 200 30px/1.15 "Atlante Display", "Noto Serif Display", serif;
  letter-spacing: .02em; color: var(--char);
}
.pick-list { display: grid; gap: 10px; }
.pick-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 18px 0 20px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  font: 500 16px/1 "Bodoni Moda", serif; letter-spacing: .06em; color: var(--char);
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 .5px rgba(184, 116, 2, .3), 0 10px 24px -18px rgba(90, 60, 10, .5);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s, box-shadow .25s;
}
.pick-list button svg { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .3s; }
.pick-list button:active { transform: scale(.98); }
@media (hover: hover) {
  .pick-list button:hover { background: var(--char); color: #fdf8ea; box-shadow: inset 0 0 0 .5px rgba(214, 168, 72, .6), 0 14px 28px -16px rgba(60, 40, 10, .6); }
  .pick-list button:hover svg { transform: translateX(4px); color: var(--gold-2); }
}
/* staggered entrance */
.pick-list button { opacity: 0; translate: 0 8px; }
.std-pick.open .pick-list button { opacity: 1; translate: 0 0; transition: opacity .5s, translate .6s cubic-bezier(.2, .8, .2, 1), transform .35s, background .25s, color .25s; }
.std-pick.open .pick-list button:nth-child(2) { transition-delay: .08s; }
.std-pick.open .pick-list button:nth-child(3) { transition-delay: .16s; }

/* portfolio: no back button – categories + count only */
.std.portfolio .std-top { grid-template-columns: 1fr auto; }
@media (min-width: 1000px) {
  .std.portfolio .std-top { grid-template-columns: 1fr auto 1fr; }
  .std.portfolio .std-cats { grid-column: 2; }
  .std.portfolio .std-count { grid-column: 3; }
}
@media (min-width: 1000px) {
  .pick-card { width: 460px; padding: 38px 30px 28px; }
  .pick-card h3 { font-size: 36px; }
  .pick-list button { height: 60px; font-size: 17px; }
}
