/* Pacinthe Badran — website. Becane-inspired: soft grey ground, small white floating panels,
   tiny expanded uppercase labels, one big look in the centre. Logical properties throughout so
   Arabic (RTL) mirrors automatically. */
:root {
  --bg: #f2f1ee;
  --panel: #ffffff;
  --ink: #121110;
  --ink-2: #3b3835;
  --muted: #9c978f;
  --line: #e3e0da;
  --blush: #d9b8ab;
  --wine: #6b1f2a;
  --ok: #3f7d53;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gut: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[dir="rtl"] { --wide: "IBM Plex Sans Arabic", "Archivo", sans-serif; --serif: "Amiri", "Cormorant Garamond", serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--wide); font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }

/* type */
.eyebrow, .lab, .lbl, .navrow a, .bar, .btn, .chip, .dim, .specs dt, .hint, .link, .card-bar, .thumb + *, .house-lab {
  font-family: var(--wide); font-stretch: 125%; text-transform: uppercase; font-size: 10px; letter-spacing: .02em; font-weight: 600;
}
html[dir="rtl"] :is(.eyebrow, .lab, .lbl, .navrow a, .bar, .btn, .chip, .dim, .specs dt, .hint, .link, .card-bar, .house-lab) { font-size: 12px; letter-spacing: 0; text-transform: none; }
.dim, .specs dt { color: var(--muted); }
.title-xl { font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 3.1vw, 40px); line-height: .95; letter-spacing: -.01em; margin: 6px 0 0; text-transform: uppercase; }
.title-xxl { font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 7vw, 96px); line-height: .9; margin: 8px 0 24px; text-transform: uppercase; letter-spacing: -.02em; }
html[dir="rtl"] :is(.title-xl, .title-xxl) { font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.serif, .manifesto { font-family: var(--serif); }
.body { font-size: 14px; color: var(--ink-2); max-width: 56ch; }
.note { font-size: 12px; color: var(--muted); }
.price-big { font-stretch: 125%; font-weight: 700; font-size: 16px; margin: 6px 0 16px; }
.lede { font-size: 22px; line-height: 1.35; font-style: italic; }
.center { text-align: center; justify-content: center; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; }

/* panels & buttons */
.panel { background: var(--panel); border-radius: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.dark { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn.wide { width: 100%; height: 44px; margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: progress; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on, .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------- chrome */
#chrome { position: fixed; inset-block-start: var(--gut); inset-inline-start: var(--gut); z-index: 50; width: min(370px, calc(100vw - 2 * var(--gut))); }
.brandbar { padding: 10px 12px 9px; }
.brandrow { display: flex; justify-content: space-between; align-items: center; }
.logo { font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 16px; letter-spacing: -.01em; }
html[dir="rtl"] .logo { font-style: normal; font-size: 18px; }
.langbtn { font-size: 12px; font-weight: 600; border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; font-family: "IBM Plex Sans Arabic", var(--wide); }
.langbtn:hover { border-color: var(--ink); }
.navrow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.navrow a { color: var(--ink); opacity: .9; }
.navrow a i { font-style: normal; color: var(--muted); margin-inline-start: 3px; }
.navrow a.is-active { text-decoration: underline; text-underline-offset: 3px; }
.navrow .navbook { margin-inline-start: auto; color: var(--wine); }

/* --------------------------------------------------------------- carousel (stage view) */
.stage-view { position: relative; height: 100vh; min-height: 640px; overflow: hidden; overflow: clip; }
.stage { position: absolute; inset: 0; touch-action: pan-y; user-select: none; outline: none; cursor: grab; }
.stage:active { cursor: grabbing; }
.look { position: absolute; top: 52%; left: 50%; margin: 0; height: 82vh; aspect-ratio: 1179 / 2096; transform: translate(-50%, -50%); transition: transform .8s var(--ease), opacity .8s var(--ease); will-change: transform; }
.stage:not(.ready) .look { transition: none; }
.look img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.look.cutout img { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 62% at 50% 52%, #000 62%, transparent 100%); filter: contrast(1.04) saturate(.92); }
.look.photo img { border-radius: 1px; }
.look:not(.is-current) img { filter: grayscale(.7) contrast(.9) brightness(1.06); }
.look.is-current { cursor: zoom-in; }
.line-aurore .look, .line-couture-bridal .look { height: 72vh; aspect-ratio: 2 / 3; }

.col-switch { position: absolute; z-index: 20; inset-block-start: calc(var(--gut) + 92px); inset-inline-start: var(--gut); display: flex; align-items: center; gap: 10px; padding: 8px 10px; max-width: calc(100vw - 2 * var(--gut)); flex-wrap: wrap; }
.col-links { display: flex; gap: 10px; }
.col-links a { color: var(--muted); font-stretch: 125%; font-size: 10px; font-weight: 600; text-transform: uppercase; }
html[dir="rtl"] .col-links a { font-size: 12px; text-transform: none; }
.col-links a.is-active { color: var(--ink); }

.info { position: absolute; z-index: 20; inset-block-start: 190px; inset-inline-start: calc(var(--gut) + 10px); width: min(320px, 34vw); pointer-events: none; }
.info .title-xl { min-height: 1.9em; }
.specs { margin: 26px 0 0; display: grid; gap: 14px; }
.specs div { display: grid; grid-template-columns: 104px 1fr; align-items: baseline; }
.specs dt { margin: 0; }
.specs dd { margin: 0; font-stretch: 125%; font-weight: 700; font-size: 11px; text-transform: uppercase; }
html[dir="rtl"] .specs dd { font-size: 13px; text-transform: none; }

.look-counter { position: absolute; z-index: 20; inset-block-start: var(--gut); inset-inline-end: var(--gut); display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 10px; max-width: min(46vw, 420px); }
html[dir="rtl"] .look-counter { padding: 4px 10px 4px 4px; }
.thumbs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 24px; height: 24px; border: 1px solid transparent; overflow: hidden; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; }
.thumb.is-current { border-color: var(--ink); }

.bars { position: absolute; z-index: 20; inset-block-end: var(--gut); inset-inline-start: var(--gut); display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100vw - 2 * var(--gut) - 340px); }
.bar { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding-inline: 2px 10px; background: var(--panel); color: var(--ink); min-width: 188px; transition: background .2s; }
.bar em { margin-inline-start: auto; font-style: normal; color: var(--muted); }
.bar .sw { width: 24px; height: 24px; display: grid; place-items: center; background: var(--bg); font-size: 12px; overflow: hidden; }
.bar .sw svg { height: 22px; width: auto; }
.bar:hover { background: #fafaf8; }
.bar.dark { background: var(--ink); color: #fff; }
.bar.dark .sw { background: #2a2826; color: #fff; }
.bar.dark em { color: #aaa; }
.desc-panel { position: absolute; z-index: 20; inset-block-end: 62px; inset-inline-end: var(--gut); width: 300px; padding: 12px; font-size: 12px; color: var(--ink-2); }
.desc-panel p { margin: 0 0 8px; }
.hint { position: absolute; z-index: 5; inset-block-end: 64px; inset-inline-start: 50%; transform: translateX(-50%); color: var(--muted); margin: 0; white-space: nowrap; }
html[dir="rtl"] .hint { transform: translateX(50%); }

/* --------------------------------------------------------------- below the fold */
.below { padding: 120px var(--gut) 40px; max-width: 1240px; margin: 0 auto; }
.manifesto { font-size: 22px; line-height: 1.35; text-align: center; max-width: 30ch; margin: 0 auto; font-style: italic; }
.manifesto.big { font-size: clamp(26px, 3.4vw, 44px); max-width: 26ch; }
.cta-row { display: flex; justify-content: center; gap: 8px; margin: 32px 0 120px; flex-wrap: wrap; }
.section-lab { font-stretch: 125%; font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 12px; }
html[dir="rtl"] .section-lab { font-size: 13px; text-transform: none; }
.houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 120px; }
.house { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; background: #e9e7e2; }
.house img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.house:hover img { transform: scale(1.03); }
.house-lab { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; display: flex; gap: 10px; padding: 6px 8px; }
.house-lab i { font-style: normal; color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 120px; }
.tool { padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease); }
.tool:hover { transform: translateY(-3px); }
.tool b { font-stretch: 125%; font-size: 15px; text-transform: uppercase; font-weight: 800; }
html[dir="rtl"] .tool b { text-transform: none; font-size: 17px; }
.tool p { margin: 0 0 8px; color: var(--ink-2); }
.tool .link { margin-top: auto; }
.tool-art { height: 220px; display: grid; place-items: center; background: var(--bg); margin-bottom: 12px; }
.tool-art svg { height: 200px; width: auto; }
.tool-art.quiz { font-family: var(--serif); font-size: 140px; font-style: italic; color: var(--blush); }
.press-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 80px; }
.press-strip span { background: var(--panel); padding: 14px 16px; font-stretch: 125%; font-weight: 800; font-size: 13px; flex: 1 1 auto; text-align: center; }
.press-strip i { font-style: normal; color: var(--muted); font-weight: 600; font-size: 10px; margin-inline-start: 4px; }

/* footer */
.site-foot { padding: 80px var(--gut) var(--gut); }
.site-foot .manifesto { margin-bottom: 64px; }
.foot-bars { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.panel.inline { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 10px; }
.panel.inline a { font-stretch: 125%; font-size: 10px; font-weight: 600; text-transform: uppercase; }
html[dir="rtl"] .panel.inline a { font-size: 12px; text-transform: none; }
.foot-small { color: var(--muted); font-size: 11px; margin: 14px 0 0; }

/* --------------------------------------------------------------- drawer, toast */
.drawer-wrap { position: fixed; inset: 0; z-index: 200; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 18, 16, .18); opacity: 0; transition: opacity .25s; }
.drawer { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(480px, 100vw); background: var(--panel); overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); }
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-wrap.open .drawer { transform: none; }
.drawer-wrap.open .drawer-scrim { opacity: 1; }
.drawer-x { position: sticky; inset-block-start: 0; float: inline-end; margin: 14px; font-stretch: 125%; font-size: 10px; font-weight: 600; text-transform: uppercase; background: var(--panel); padding: 4px; z-index: 2; }
.drawer-body { padding: 24px; }
.gallery { display: grid; gap: 4px; margin-top: 20px; }
.gallery img { width: 100%; }
.mini-gown { background: var(--bg); height: 300px; display: grid; place-items: center; margin: 14px 0; }
.mini-gown svg { height: 280px; }
.toast { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 14px; opacity: 0; transition: all .3s; z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* forms */
.form { display: grid; gap: 6px; }
.form.two { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.form.two .full { grid-column: 1 / -1; }
.lbl { margin: 10px 0 2px; display: block; color: var(--ink-2); }
.lbl i { font-style: normal; color: var(--muted); margin-inline-start: 6px; }
.inp { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; border-radius: 2px; font-size: 14px; }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--ink); }
.inp.big { height: 56px; font-size: 18px; max-width: 320px; }

/* booking status */
.held { border: 1px solid var(--line); padding: 20px; margin-top: 16px; background: var(--panel); animation: rise .5s var(--ease); }
.held-slot { font-stretch: 125%; font-weight: 800; font-size: 24px; margin: 6px 0; text-transform: uppercase; }
html[dir="rtl"] .held-slot { text-transform: none; }
.held-state { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.held.is-confirmed { border-color: var(--ok); }
.held.is-confirmed .held-state { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c9a227; display: inline-block; flex: none; }
.dot.ok { background: #4caf6e; }
.dot.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------- flows (finder, contact) */
.flow { max-width: 980px; margin: 0 auto; padding: 150px var(--gut) 80px; }
.flow-top { display: flex; align-items: center; gap: 16px; }
.progress { flex: 1; height: 2px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .5s var(--ease); }
.flow-q { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; margin: 40px 0 28px; max-width: 18ch; }
html[dir="rtl"] .flow-q { font-style: normal; line-height: 1.4; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.opts.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opts.slots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.opt { background: var(--panel); border: 1px solid transparent; padding: 18px 16px; text-align: start; display: flex; flex-direction: column; gap: 6px; min-height: 76px; transition: border-color .2s, transform .2s var(--ease); }
.opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.opt.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-t { font-stretch: 125%; font-weight: 700; font-size: 13px; text-transform: uppercase; }
html[dir="rtl"] .opt-t { text-transform: none; font-size: 15px; }
.opt-s { color: var(--muted); font-size: 12px; }
.opt-art { height: 180px; display: grid; place-items: center; background: var(--bg); margin: -6px -4px 6px; }
.opt.is-on .opt-art { background: #2a2826; }
.opt-art svg { height: 170px; width: auto; }
.flow-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.step { animation: slideR .45s var(--ease); }
.step.in-l { animation-name: slideL; }
@keyframes slideR { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-24px); } }
.date-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.date-row .btn { height: 56px; }
.results { display: grid; gap: 8px; }
.result { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: var(--panel); padding: 10px; }
.result-img { background: var(--bg); aspect-ratio: 3 / 4; overflow: hidden; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-img.cutout img { mix-blend-mode: multiply; }
.result h3 { font-stretch: 125%; font-weight: 800; font-size: 26px; margin: 6px 0; }
.result .why { color: var(--ink-2); }
.callout { padding: 20px; margin-top: 8px; display: grid; gap: 8px; justify-items: start; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 300px; gap: 24px; max-width: 1280px; margin: 0 auto; padding-inline-end: var(--gut); }
.contact .flow { margin: 0; max-width: none; }
.contact-side { margin-top: 150px; padding: 16px; align-self: start; position: sticky; top: 20px; display: grid; gap: 2px; }
.side-link { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-link b { font-stretch: 125%; font-size: 10px; text-transform: uppercase; }
.side-link span { color: var(--ink-2); font-size: 12px; }
.side-hours { display: grid; gap: 4px; padding-top: 12px; font-size: 12px; color: var(--ink-2); }
.lead-in { margin-top: 24px; }
.picked { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; margin-top: 20px; }
.picked img { width: 32px; height: 40px; object-fit: cover; mix-blend-mode: multiply; }
.picked span { font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; }

/* --------------------------------------------------------------- Miss PB index */
.index-view { padding: 150px var(--gut) 40px; }
.index-head { max-width: 900px; margin-bottom: 24px; }
.index-head .lede { margin: -8px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.card { display: flex; flex-direction: column; text-align: start; }
.card-img { aspect-ratio: 3 / 4; background: #e9e7e2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-bar { display: flex; justify-content: space-between; gap: 8px; background: var(--panel); padding: 8px; }
.card-bar i { font-style: normal; color: var(--muted); white-space: nowrap; }
.filter { margin-top: 12px; }

/* --------------------------------------------------------------- atelier */
.atelier { display: grid; grid-template-columns: 1fr 420px; min-height: 100vh; }
.atelier-canvas { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.gown-wrap { height: 88vh; transition: opacity .3s; }
.gown-wrap.swap { opacity: .4; }
.gown-wrap svg { height: 100%; width: auto; }
.canvas-top { position: absolute; inset-block-start: calc(var(--gut) + 92px); inset-inline-start: var(--gut); display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 10px; }
.canvas-bottom { position: absolute; inset-block-end: var(--gut); inset-inline-start: var(--gut); display: flex; align-items: center; gap: 14px; padding: 8px 10px; flex-wrap: wrap; }
.canvas-bottom b { font-stretch: 125%; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { padding: 4px 10px; font-stretch: 125%; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.seg button.is-on { background: var(--ink); color: #fff; }
.atelier-ctrl { background: var(--panel); padding: 120px 24px 40px; }
.grp { margin-top: 14px; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.preset { display: grid; gap: 4px; text-align: center; font-size: 9px; font-stretch: 125%; text-transform: uppercase; font-weight: 600; }
.preset img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; background: var(--bg); mix-blend-mode: multiply; border: 1px solid transparent; }
.preset.is-on img { border-color: var(--ink); }
.swatches { gap: 8px; }
.sw-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); box-shadow: inset 0 0 0 2px #fff; }
.sw-btn.is-on { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.gown.is-sketch { background: transparent; }

/* --------------------------------------------------------------- try-on */
.tryon { display: grid; grid-template-columns: 250px 1fr 280px; gap: 16px; padding: 140px var(--gut) 40px; min-height: 100vh; }
.pick-list { display: grid; gap: 4px; }
.pick { display: flex; gap: 8px; align-items: center; background: var(--panel); padding: 4px; text-align: start; border: 1px solid transparent; }
.pick.is-on { border-color: var(--ink); }
.pick img { width: 40px; height: 54px; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; background: var(--bg); }
.pick span { display: grid; font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pick i { font-style: normal; color: var(--muted); font-weight: 500; }
.tryon-stage { position: relative; }
.tryon-stage .canvas-top { position: static; display: inline-flex; margin-bottom: 8px; }
.tryon-stage .canvas-bottom { position: static; margin-top: 8px; }
.fit { position: relative; height: 72vh; min-height: 460px; background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.fit-empty { display: grid; gap: 14px; text-align: center; justify-items: center; padding: 24px; max-width: 420px; }
.fit-empty.snap-only { position: absolute; inset-block-end: 16px; z-index: 3; }
#photo, #result, #video { max-height: 100%; max-width: 100%; object-fit: contain; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; cursor: move; touch-action: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .12)); }
.overlay svg { width: 100%; height: 100%; }
.overlay.pop { animation: rise .5s var(--ease); }
.busy { position: absolute; inset-block-end: 14px; background: var(--ink); color: #fff; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.rng { display: inline-flex; align-items: center; gap: 6px; font-stretch: 125%; font-size: 10px; text-transform: uppercase; font-weight: 600; }
.rng input { width: 90px; accent-color: var(--ink); }
.real { background: var(--panel); aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 10px; }
.real img { width: 100%; height: 100%; object-fit: cover; }
.real.cutout img { mix-blend-mode: multiply; }
.tryon-side h3 { font-stretch: 125%; font-weight: 800; font-size: 20px; margin: 4px 0; }

/* --------------------------------------------------------------- pages */
.page { max-width: 1100px; margin: 0 auto; padding: 150px var(--gut) 40px; }
.press-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 2px; }
.press-list li { display: grid; grid-template-columns: 40px 220px 1fr 60px; gap: 16px; background: var(--panel); padding: 16px; align-items: baseline; }
.press-list .pn, .press-list i { color: var(--muted); font-style: normal; font-size: 11px; }
.press-list b { font-stretch: 125%; font-weight: 800; text-transform: uppercase; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 4px; overflow-x: auto; margin: 32px 0; }
.strip img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* --------------------------------------------------------------- concierge */
#concierge { position: fixed; z-index: 120; inset-block-end: var(--gut); inset-inline-end: var(--gut); }
.cz-fab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
#concierge.open .cz-fab { display: none; }
.cz-box { display: none; width: min(360px, calc(100vw - 2 * var(--gut))); height: min(520px, 70vh); flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .12); }
#concierge.open .cz-box { display: flex; animation: rise .35s var(--ease); }
.cz-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cz-head b { font-stretch: 125%; font-size: 11px; text-transform: uppercase; }
.cz-x { margin-inline-start: auto; }
.cz-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { margin: 0; padding: 8px 11px; max-width: 85%; font-size: 13px; line-height: 1.4; border-radius: 12px; }
.msg.bot { background: var(--bg); align-self: flex-start; border-end-start-radius: 3px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-end-end-radius: 3px; }
.msg.sys { align-self: center; font-size: 11px; color: var(--ok); background: none; }
.typing { display: inline-flex; gap: 3px; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
.cz-sugg { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 8px; }
.cz-sugg button { font-size: 11px; border: 1px solid var(--line); padding: 4px 8px; border-radius: 12px; }
.cz-form { display: flex; border-top: 1px solid var(--line); }
.cz-form input { flex: 1; border: 0; padding: 12px; outline: none; background: none; }
.cz-form button { width: 44px; font-size: 16px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .bars { max-width: calc(100vw - 2 * var(--gut)); inset-block-end: 150px; }
  .desc-panel { width: auto; inset-inline-start: var(--gut); }
  .tryon { grid-template-columns: 1fr; }
  .pick-list { grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; }
  .atelier { grid-template-columns: 1fr; }
  .atelier-canvas { position: relative; height: 80vh; }
  .atelier-ctrl { padding-top: 24px; }
  .contact { grid-template-columns: 1fr; }
  .contact-side { margin: 0 var(--gut) 40px; position: static; }
}
@media (max-width: 720px) {
  :root { --gut: 12px; }
  #chrome { width: calc(100vw - 2 * var(--gut)); }
  .stage-view { height: 100svh; min-height: 560px; }
  .look { height: 62vh; top: 46%; }
  .info { inset-block-start: auto; inset-block-end: 210px; width: calc(100vw - 2 * var(--gut)); }
  .info .specs { display: none; }
  .info .title-xl { font-size: 26px; min-height: 0; }
  .col-switch { inset-block-start: calc(var(--gut) + 96px); }
  .look-counter { display: none; }
  .bars { inset-block-end: 96px; gap: 3px; }
  .bar { min-width: 0; flex: 1 1 45%; }
  .desc-panel { display: none; }
  .hint { display: none; }
  .houses, .tools { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .form.two { grid-template-columns: 1fr; }
  .press-list li { grid-template-columns: 30px 1fr; }
  .press-list li span:not(.pn), .press-list li i { grid-column: 2; }
  .cols { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(3, 1fr); }
  .flow { padding-top: 140px; }
}

/* --------------------------------------------------------------- 360° turntable (film or 3D preview) */
.look .spin { position: absolute; inset: 0; pointer-events: none; }
.look.is-current .spin { pointer-events: auto; cursor: ew-resize; touch-action: none; }
.look .spin canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.look.is-3d .spin canvas { opacity: 1; }
.look.is-3d img { opacity: 0; transition: opacity .5s var(--ease); }
.look img { transition: opacity .5s var(--ease); }
.look video.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.look.cutout video.film { mix-blend-mode: multiply; }
.look.has-film img { opacity: 0; }
.look.has-film.is-current { cursor: ew-resize; }
.spin-panel { display: inline-flex; align-items: center; gap: 12px; padding: 6px 10px; margin-top: 22px; pointer-events: auto; transition: opacity .3s; }
.spin-panel.is-off { opacity: .35; }
.spin-panel .deg { font-stretch: 125%; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 92px; }
.ruler { position: relative; width: 130px; height: 14px; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 6.5px); opacity: .9; }
html[dir="rtl"] .ruler { transform: scaleX(-1); }
.ruler i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); inset-inline-start: 0; transform: translateX(-1px); }
.spin-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; pointer-events: auto; }
.sp { height: 24px; padding: 0 9px; background: var(--panel); font-stretch: 125%; font-size: 9px; font-weight: 700; text-transform: uppercase; }
html[dir="rtl"] .sp { font-size: 11px; text-transform: none; }
.sp:hover:not(:disabled) { background: var(--ink); color: #fff; }
.sp.is-on { background: var(--ink); color: #fff; }
.sp:disabled { opacity: .4; cursor: default; }
.sp-note { flex-basis: 100%; color: var(--muted); font-size: 10px; margin-top: 2px; }
@media (max-width: 720px) {
  .info .spin-panel { margin-top: 8px; }
  .spin-ctrl .sp-note { display: none; }
}

/* hero calls to action, top centre of the carousel */
.top-cta { position: absolute; z-index: 30; inset-block-start: var(--gut); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.top-cta .btn { height: 38px; padding: 0 16px; }
.look-counter { max-width: min(26vw, 300px); }
.manifesto.big { margin-bottom: 120px; }
@media (max-width: 1180px) { .top-cta .btn { height: 32px; padding: 0 10px; font-size: 9px; } }
@media (max-width: 960px) { .top-cta { inset-block-start: calc(var(--gut) + 140px); } .col-switch { display: none; } }
@media (max-width: 720px) { .top-cta { inset-block-start: calc(var(--gut) + 100px); width: calc(100vw - 2 * var(--gut)); justify-content: center; } .top-cta .btn { flex: 1; } }
@media (max-width: 1240px) and (min-width: 961px) {
  .top-cta { left: max(50%, 612px); }
  .look-counter .thumbs { display: none; }
  .look-counter { padding: 6px 10px; }
}

/* --------------------------------------------------------------- fitting room (try-on) */
.fr { max-width: 1240px; margin: 0 auto; padding: 128px var(--gut) 60px; }
.fr-head { text-align: center; display: grid; justify-items: center; gap: 6px; }
.fr-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 4px 0; }
html[dir="rtl"] .fr-title { font-style: normal; }
.fr-sub { color: var(--ink-2); max-width: 52ch; margin: 0; font-size: 14px; }
.fr-steps { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 18px 0 0; }
.fr-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--panel); border-radius: 20px; font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); transition: color .3s; }
html[dir="rtl"] .fr-steps li { padding: 5px 5px 5px 12px; font-size: 12px; text-transform: none; }
.fr-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); transition: all .3s; }
.fr-steps li.is-on { color: var(--ink); }
.fr-steps li.is-on b { background: var(--ink); color: #fff; }

.fr-strip { display: flex; gap: 8px; overflow-x: auto; padding: 28px 2px 22px; margin: 0 auto; justify-content: safe center; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fr-strip::-webkit-scrollbar { display: none; }
.fr-gown { flex: 0 0 104px; display: grid; gap: 3px; text-align: center; scroll-snap-align: center; transition: transform .3s var(--ease); }
.fr-gown:hover { transform: translateY(-3px); }
.fr-gown-img { height: 138px; background: var(--panel); border: 1px solid transparent; border-radius: 2px; overflow: hidden; transition: border-color .2s, box-shadow .3s; }
.fr-gown-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; mix-blend-mode: multiply; }
.fr-gown.is-on .fr-gown-img { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); }
.fr-gown b { font-stretch: 125%; font-size: 9px; font-weight: 800; text-transform: uppercase; margin-top: 4px; }
html[dir="rtl"] .fr-gown b { font-size: 12px; text-transform: none; }
.fr-gown i { font-style: normal; font-size: 10px; color: var(--muted); }

.fr-body { display: grid; grid-template-columns: 1fr 290px; gap: 32px; align-items: start; }
.fr-mirror-wrap { display: grid; justify-items: center; gap: 12px; }
.fr-mirror { position: relative; width: min(440px, 100%); aspect-ratio: 3 / 4.5; border-radius: 999px 999px 4px 4px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #ffffff, #ebe9e4 75%); border: 10px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(30, 20, 10, .35); transition: box-shadow .3s; }
.fr-mirror.is-drag { box-shadow: 0 0 0 2px var(--ink), 0 40px 70px -40px rgba(30, 20, 10, .35); }
.fr-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 28px; text-align: center; }
.fr-ghost { height: 210px; opacity: .55; }
.fr-ghost svg { height: 100%; width: auto; }
.fr-drop { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 0; }
.fr-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fr-photo #photo, .fr-photo #result { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.fr-photo #result { position: absolute; }
.fr-gown-layer { position: absolute; cursor: move; touch-action: none; overflow: visible; }
.fr-gown-layer svg { position: absolute; filter: drop-shadow(0 6px 10px rgba(40, 30, 20, .18)); }
.fr-gown-layer.pop { animation: rise .7s var(--ease); }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fr-status { position: absolute; inset-block-end: 18px; left: 50%; transform: translateX(-50%); background: var(--panel); padding: 8px 14px; border-radius: 20px; display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .3); z-index: 3; animation: rise .4s var(--ease); }
.fr-status.warn { white-space: normal; text-align: center; width: 80%; color: #8a6514; }
.fr-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fr-tools .chip { border-radius: 16px; cursor: pointer; }
.fr-tools .rng { background: var(--panel); height: 28px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line); }
.fr-side { position: sticky; top: 130px; display: grid; gap: 8px; }
.fr-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: var(--panel); padding: 8px; align-items: center; }
.fr-card-img { height: 124px; background: var(--bg); overflow: hidden; }
.fr-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.fr-card-img.cutout img { mix-blend-mode: multiply; }
.fr-card h3 { font-stretch: 125%; font-weight: 800; font-size: 16px; margin: 2px 0; }
.fr-card .price { margin: 0; color: var(--ink-2); }
.fr-side .swatches { display: flex; gap: 8px; }
.fr-actions { display: grid; gap: 6px; margin-top: 6px; }
.fr-actions .btn.wide, .fr-side > .btn.wide { margin-top: 0; }
.fr-side .btn:disabled { opacity: .45; }
@media (max-width: 900px) {
  .fr { padding-top: 120px; }
  .fr-body { grid-template-columns: 1fr; }
  .fr-side { position: static; }
  .fr-strip { justify-content: flex-start; }
}

/* --------------------------------------------------------------- collapsible top-left menu */
#chrome .menubtn { display: none; font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; margin-inline-start: auto; margin-inline-end: 6px; }
#chrome.collapsed .menubtn { display: inline-block; }
#chrome .navrow { transition: opacity .25s, max-height .3s var(--ease), margin .3s; max-height: 80px; overflow: hidden; }
#chrome.collapsed .navrow { max-height: 0; opacity: 0; margin-top: 0; }
#chrome.collapsed:hover .navrow, #chrome.collapsed.open .navrow, #chrome.collapsed:focus-within .navrow { max-height: 80px; opacity: 1; margin-top: 10px; }
#chrome.collapsed { width: auto; min-width: 250px; box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .25); }
#chrome.collapsed:hover, #chrome.collapsed.open { width: min(370px, calc(100vw - 2 * var(--gut))); }

/* elements toggled with the hidden attribute must really disappear (some classes set display) */
[hidden] { display: none !important; }

/* --------------------------------------------------------------- 3D atelier ("Design it with us") */
.a3 { display: grid; grid-template-columns: 1fr 400px; min-height: 100vh; }
.a3-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 42%, #ffffff 0%, #f3f1ec 55%, #e7e3dc 100%); }
.a3-canvas { position: absolute; inset: 0; }
.a3-canvas canvas { display: block; }
.a3-loading { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 8px; align-items: center; color: var(--muted); font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.a3-fallback { height: 100%; display: grid; place-items: center; } .a3-fallback svg { height: 86%; }
.a3-title { position: absolute; inset-block-start: calc(var(--gut) + 60px); inset-inline-start: var(--gut); padding: 10px 14px; }
.a3-title h1 { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1; }
html[dir="rtl"] .a3-title h1 { font-style: normal; }
.a3-views { position: absolute; inset-block-start: var(--gut); inset-inline-end: var(--gut); display: flex; align-items: center; gap: 2px; padding: 4px; }
.a3-views button { height: 26px; padding: 0 9px; font-stretch: 125%; font-size: 9px; font-weight: 700; text-transform: uppercase; border-radius: 2px; transition: background .2s, color .2s; }
html[dir="rtl"] .a3-views button { font-size: 11px; text-transform: none; }
.a3-views button:hover { background: var(--ink); color: #fff; }
.a3-deg { font-stretch: 125%; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 8px; min-width: 46px; color: var(--muted); }
.a3-auto { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-stretch: 125%; font-size: 9px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.a3-auto input { display: none; }
.a3-auto span { width: 26px; height: 14px; border-radius: 7px; background: #d8d3ca; position: relative; transition: background .2s; }
.a3-auto span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .2s; }
.a3-auto input:checked + span { background: var(--ink); }
.a3-auto input:checked + span::after { transform: translateX(12px); }
.a3-hint { position: absolute; inset-block-end: 96px; left: 50%; transform: translateX(-50%); margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; pointer-events: none; }
.a3-bottom { position: absolute; inset-block-end: var(--gut); inset-inline: var(--gut); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
.a3-bottom b { display: inline-block; font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: -.01em; margin-inline-end: 10px; transform-origin: left center; }
.a3-lead { color: var(--muted); font-size: 11px; }
.a3-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.a3-panel { background: var(--panel); display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.a3-tabs { position: sticky; top: 0; z-index: 5; background: var(--panel); display: flex; padding: 96px 20px 0; border-bottom: 1px solid var(--line); }
.a3-tabs button { flex: 1; padding: 14px 0 12px; font-stretch: 125%; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); transition: color .25s; }
html[dir="rtl"] .a3-tabs button { font-size: 14px; text-transform: none; }
.a3-tabs button.is-on { color: var(--ink); }
.a3-tabbar { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--ink); transition: transform .4s var(--ease), width .4s var(--ease); }
.a3-body { padding: 8px 20px 40px; }
.a3-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.a3-label { margin: 0 0 10px; font-stretch: 125%; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--ink-2); letter-spacing: .02em; }
html[dir="rtl"] .a3-label { font-size: 12px; text-transform: none; }
.a3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a3-chip { height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--line); background: #faf9f6; font-size: 12px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.a3-chip:hover { border-color: var(--ink-2); }
.a3-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.a3-sw { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.a3-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s var(--ease); }
.a3-dot:hover { transform: scale(1.1); }
.a3-dot.is-on { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.a3-range { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 12px; }
.a3-range output { font-stretch: 125%; font-size: 11px; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.a3-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
html[dir="rtl"] .a3-range input[type=range] { background: linear-gradient(-90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
.a3-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; }
.a3-range input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; }
.a3-looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.a3-look { display: grid; gap: 4px; text-align: center; font-size: 9px; font-stretch: 125%; font-weight: 700; text-transform: uppercase; }
.a3-look img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; background: var(--bg); mix-blend-mode: multiply; border: 1px solid transparent; transition: border-color .2s; }
.a3-look.is-on img { border-color: var(--ink); }
.a3-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 18px; }
@media (max-width: 1000px) {
  .a3 { grid-template-columns: 1fr; }
  .a3-stage { position: relative; height: 78vh; }
  .a3-tabs { padding-top: 0; }
  .a3-hint { display: none; }
  .a3-title { inset-block-start: calc(var(--gut) + 56px); }
  .a3-views { inset-block-start: auto; inset-block-end: 92px; inset-inline: var(--gut); justify-content: center; flex-wrap: wrap; }
}
.a3-sketch { position: absolute; inset: 0; display: grid; place-items: center; padding: 130px 0 90px; }
.a3-sketch svg { height: 100%; width: auto; }
.a3-mode { position: absolute; inset-block-start: calc(var(--gut) + 148px); inset-inline-start: var(--gut); display: flex; gap: 2px; padding: 4px; }
.a3-mode button { height: 26px; padding: 0 10px; font-stretch: 125%; font-size: 9px; font-weight: 700; text-transform: uppercase; border-radius: 2px; color: var(--ink-2); }
html[dir="rtl"] .a3-mode button { font-size: 11px; text-transform: none; }
.a3-mode button.is-on { background: var(--ink); color: #fff; }
@media (max-width: 1000px) { .a3-mode { inset-block-start: calc(var(--gut) + 130px); } }

/* standalone atelier: embed mode (?embed=1) for an <iframe> on her website, no top bar */
html.embed .a3-title { inset-block-start: var(--gut); }
html.embed .a3-mode { inset-block-start: calc(var(--gut) + 88px); }
html.embed .a3-tabs { padding-top: 12px; }
html.embed .a3 { min-height: 100vh; }

/* real measurements (Body tab) */
.a3-mtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a3-mtop .a3-label { margin: 0; }
.a3-size { font-stretch: 125%; font-size: 10px; font-weight: 800; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 10px; white-space: nowrap; }
.a3-note.tight { margin: 8px 0 4px; }
.a3-meas { padding: 12px 0 4px; border-top: 1px dashed var(--line); margin-top: 8px; }
.a3-meas:first-of-type { border-top: 0; }
.a3-mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.a3-mhead b { display: block; font-size: 13px; font-weight: 600; }
.a3-mhead i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.a3-mval { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: 2px 4px; background: #faf9f6; flex: none; }
.a3-mval input { width: 52px; border: 0; background: none; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; outline: none; }
.a3-mval input::-webkit-outer-spin-button, .a3-mval input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.a3-mval em { font-style: normal; font-size: 11px; color: var(--muted); padding-inline-end: 4px; }
.a3-step { width: 24px; height: 24px; border-radius: 50%; font-size: 15px; line-height: 1; color: var(--ink-2); }
.a3-step:hover { background: var(--ink); color: #fff; }
.a3-meas input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
html[dir="rtl"] .a3-meas input[type=range] { background: linear-gradient(-90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
.a3-meas input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; }
.a3-meas input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; }
.a3-est { display: inline-block; margin-top: 6px; font-size: 10px; color: #8a6514; background: #f8efd9; padding: 2px 7px; border-radius: 8px; }
.a3-reest { margin-top: 12px; font-size: 11px; }
.a3-tailor summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.a3-tailor summary::after { content: "+"; font-size: 14px; }
.a3-tailor[open] summary::after { content: "–"; }
.a3-tgrid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.a3-tgrid label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }

/* zoom slider on the canvas */
.a3-zoom { position: absolute; inset-inline-end: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; z-index: 6; }
.a3-zoom button { width: 28px; height: 28px; border-radius: 50%; font-size: 16px; line-height: 1; }
.a3-zoom button:hover { background: var(--ink); color: #fff; }
.a3-zoom input[type=range] { -webkit-appearance: none; appearance: none; writing-mode: vertical-lr; direction: rtl; width: 4px; height: 160px; border-radius: 2px; background: linear-gradient(0deg, var(--ink) var(--p, 26%), var(--line) var(--p, 26%)); outline: none; cursor: pointer; }
.a3-zoom input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.a3-zoom input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
@media (max-width: 1000px) { .a3-zoom { top: 42%; } .a3-zoom input[type=range] { height: 110px; } }

/* fabric upload + sub labels */
.a3-label.sub { margin: 14px 0 8px; color: var(--muted); }
.a3-upload { margin-top: 12px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; transition: border-color .2s, background .2s; }
.a3-upload span { font-size: 11px; color: var(--muted); }
.a3-upload.is-drag { border-color: var(--ink); background: #faf9f6; }
.a3-upbtn { cursor: pointer; font-weight: 600; font-size: 12px; padding: 8px 12px; border-radius: 16px; background: var(--ink); color: #fff; }
.a3-upload.has-img { grid-template-columns: 64px 1fr; justify-items: start; text-align: start; align-items: center; border-style: solid; }
.a3-upload.has-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.a3-upload.has-img b { display: block; font-size: 12px; }

/* ---- colour wheel swatch */
.a3-wheel { position: relative; cursor: pointer; background: conic-gradient(from 0deg, #ff5a5a, #ffb44d, #f2ec50, #62dc6a, #4fd3ee, #5a6cff, #c252ff, #ff4fa0, #ff5a5a); }
.a3-wheel::after { content: "+"; position: absolute; inset: 6px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--ink-2); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.a3-wheel.is-on::after { content: ""; background: var(--c); }
.a3-wheel input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* ---- interactive sketch */
.a3-sketch { display: block; padding: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.sk-stage { position: absolute; inset: 130px 0 90px; transform-origin: 0 0; }
.a3-sketch .sk-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sk-stage [data-part] { cursor: grab; transition: opacity .25s var(--ease); }
.sk-stage [data-part] * { pointer-events: visible; }
.sk-stage svg:has([data-part]:hover) [data-part]:not(:hover), .sk-stage svg.has-sel [data-part]:not(.is-sel) { opacity: .4; }
.a3-sketch.is-dragging, .a3-sketch.is-dragging [data-part] { cursor: grabbing; }
.sk-stage [data-part].will-go { opacity: .55; }
.sk-hint { position: absolute; inset-block-end: 96px; left: 50%; transform: translateX(-50%); margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; pointer-events: none; }
.sk-tray { position: absolute; inset-inline-start: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 5; max-height: 60vh; }
.sk-tray-t { margin: 0 0 -2px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sk-piece { display: grid; justify-items: center; gap: 1px; width: 96px; padding: 8px 6px 7px; border-radius: 16px; background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -14px rgba(50, 35, 25, .45), inset 0 0 0 1px rgba(0, 0, 0, .05); cursor: grab; touch-action: none; transition: box-shadow .2s var(--ease); }
.sk-piece:hover { box-shadow: 0 18px 36px -14px rgba(50, 35, 25, .55), inset 0 0 0 1px var(--ink); }
.sk-piece.is-drag { cursor: grabbing; z-index: 9; transition: none; }
.sk-piece.will-land { box-shadow: 0 0 0 2px var(--ink), 0 20px 40px -14px rgba(50, 35, 25, .55); }
.sk-float { display: block; animation: skbob 3.4s ease-in-out infinite; }
.a3-sketch .sk-float svg { width: 70px; height: 64px; display: block; }
.sk-piece em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sk-piece i { font-style: normal; font-size: 9px; color: var(--muted); }
@keyframes skbob { 0%, 100% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(4px) rotate(2deg); } }
.sk-pop { position: absolute; z-index: 7; width: 236px; padding: 12px 12px 10px; }
.sk-pop-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sk-pop-h b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sk-x { width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; color: var(--muted); }
.sk-x:hover { background: var(--ink); color: #fff; }
.sk-pop .a3-chips { margin-bottom: 8px; }
.sk-off { width: 100%; height: 32px; border-radius: 999px; border: 1px solid var(--ink); font-size: 11px; font-weight: 600; }
.sk-off:hover { background: var(--ink); color: #fff; }
.sk-note { margin: 0; font-size: 11px; color: var(--muted); }
@media (max-width: 1000px) { .sk-hint { display: none; } .sk-piece { width: 78px; } .a3-sketch .sk-float svg { width: 56px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .sk-float { animation: none; } }

/* sketch callouts: leader line + clickable label */
.sk-co { cursor: pointer; }
.sk-co * { pointer-events: visible; }
.sk-co-l { fill: none; stroke: #2a2421; stroke-width: 1; opacity: .45; transition: opacity .2s; }
.sk-co-d { fill: #fff; stroke: #2a2421; stroke-width: 1.2; }
.sk-co-b { fill: rgba(255, 255, 255, .92); stroke: rgba(42, 36, 33, .35); stroke-width: 1; transition: fill .2s, stroke .2s; }
.sk-co-t { text-anchor: middle; font: 700 12.5px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; fill: #2a2421; pointer-events: none; }
html[dir="rtl"] .sk-co-t { text-transform: none; letter-spacing: 0; font-size: 14px; }
.sk-co:hover .sk-co-b, .sk-co.is-sel .sk-co-b { fill: #2a2421; stroke: #2a2421; }
.sk-co:hover .sk-co-t, .sk-co.is-sel .sk-co-t { fill: #fff; }
.sk-co:hover .sk-co-l, .sk-co.is-sel .sk-co-l { opacity: 1; }
.sk-co.is-sel .sk-co-d, .sk-co:hover .sk-co-d { fill: #2a2421; }
.sk-stage svg.has-hov [data-part]:not(.is-hov) { opacity: .4; }
