/* BR Code.ai, the luxe layer: loaded after css/site.css on every page, it only restyles (the words and
   structure stay as they are). Obsidian grounds with mesh light, the logo's ember orange metal, an editorial serif
   over a geometric sans, frosted glass with bevelled 1px borders, and the hover physics js/luxe.js drives. */

:root {
  --p-bg: #070709; --p-surface: #111116; --p-ink: #f4efe6; --p-muted: #a9a297;
  --p-accent: #ff6b1a; --p-accent-ink: #0b0a08; --p-action: #ff6b1a; --p-action-ink: #0b0a08;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-text: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --display-weight: 500; --display-tracking: -0.012em; --display-tracking-xl: -0.02em;
  --ember: linear-gradient(135deg, #ffd9b8 0%, #ffa35c 22%, #ff6b1a 48%, #d9520f 72%, #9a3a0a 100%);
  --ember-text: linear-gradient(100deg, #ffd9b8 0%, #ffa35c 35%, #ff6b1a 60%, #ffd9b8 100%);
  --bevel: linear-gradient(135deg, rgb(255 217 184 / .55), rgb(154 58 10 / .12) 35%, rgb(255 217 184 / .08) 60%, rgb(255 107 26 / .45));
  --glass: rgb(14 14 19 / .58);
  --ease-lux: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- grounds: obsidian, velvet charcoal and midnight bronze, lit by soft mesh light and a film grain */
html, body { background: #070709; }
body { color: var(--p-ink); font-family: var(--font-text); }
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 82% 8%, rgb(255 107 26 / .10), transparent 70%),
    radial-gradient(38% 40% at 6% 30%, rgb(70 40 26 / .22), transparent 72%),
    radial-gradient(45% 40% at 70% 92%, rgb(156 100 80 / .10), transparent 70%),
    linear-gradient(180deg, #070709, #0b0a0d 50%, #0d0b0a); }
body::after { content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero { background:
    radial-gradient(36% 46% at 74% 40%, rgb(255 107 26 / .16), transparent 70%),
    radial-gradient(30% 38% at 18% 78%, rgb(84 44 24 / .28), transparent 72%),
    radial-gradient(26% 30% at 92% 92%, rgb(217 160 138 / .10), transparent 70%),
    linear-gradient(180deg, #070709, #0a090c); }
main > section.section:not(.ground-inverse):not(.hero) { background:
    radial-gradient(50% 42% at 100% 0%, rgb(255 107 26 / .07), transparent 70%),
    radial-gradient(46% 50% at 0% 100%, rgb(70 40 26 / .16), transparent 72%),
    linear-gradient(180deg, #0a0a0d 0%, #070709 100%); }
main > section.section:not(.ground-inverse):not(.hero):nth-of-type(even) { background:
    radial-gradient(50% 42% at 0% 0%, rgb(255 107 26 / .06), transparent 70%),
    radial-gradient(46% 50% at 100% 100%, rgb(156 100 80 / .09), transparent 72%),
    linear-gradient(180deg, #111116 0%, #0c0b0f 100%); }
/* the light band stays light: warm pearl, not paper */
.ground-inverse { background: radial-gradient(60% 60% at 80% 10%, #fffaf0, transparent 70%), radial-gradient(50% 60% at 0% 100%, #f3dcc8, transparent 70%), linear-gradient(180deg, #f5efe4, #ebe2d2); }
main > section.section:not(.hero)::before { background: linear-gradient(90deg, transparent, rgb(154 58 10 / .5) 22%, rgb(255 217 184 / .75) 50%, rgb(154 58 10 / .5) 78%, transparent); }

/* ---------- type: an editorial serif for headings, ember on the words that carry them; wide-tracked micro labels */
h1, h2, .t-h1, .t-h2, .close__word { font-family: var(--font-display); font-weight: 500; }
h1, .t-h1 { letter-spacing: -0.018em; line-height: 1.02; font-size: clamp(2.9rem, 1.6rem + 4.6vw, 6rem); }
h2, .t-h2 { letter-spacing: -0.01em; line-height: 1.06; font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem); }
h1, h2, .t-h1, .t-h2 { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
h3, h4, .card > h3, .card > h4 { font-family: var(--font-text); letter-spacing: -0.01em; }
.lux-ember, h2 .muted, h1 em { font-style: italic; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: var(--ember-text); background-size: 200% 100%; animation: lux-sheen 9s var(--ease-lux) infinite; }
h2 .muted { font-style: normal; }
@keyframes lux-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.t-label, .hero__eyebrow, .est__rail-h { font-family: var(--font-text); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 600; }
.hero__eyebrow, .t-label { color: #ff9a52; }
.hero__lead, .t-lead { color: #cfc7ba; line-height: 1.65; }

/* ---------- the header: a floating frosted-glass bar with a bevelled metal edge; it tightens once the page scrolls */
.nav { background: transparent; border-bottom: 0; }
.nav .nav__bar { margin-top: 12px; height: calc(100% - 12px); padding-inline: 22px; border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--bevel) border-box;
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 50px -24px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 236 214 / .08);
  transition: margin .6s var(--ease-lux), height .6s var(--ease-lux), box-shadow .6s var(--ease-lux); }
.nav.is-scrolled .nav__bar { margin-top: 6px; height: calc(100% - 14px); box-shadow: 0 22px 60px -20px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 107 26 / .08), inset 0 1px 0 rgb(255 236 214 / .1); }
.nav__link, .nav__links > a { transition: color .4s var(--ease-lux), transform .5s var(--ease-lux); }
.nav__link:hover, .nav__links > a:hover { color: #ffd9b8; }
.nav__menu { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); background: rgb(10 10 14 / .92); }

/* ---------- buttons: a ember ingot, extruded, glowing, with a shimmer sweeping across on hover; glass for the second */
.btn { transition: transform .5s var(--ease-lux), box-shadow .5s var(--ease-lux), background-position .8s var(--ease-lux); position: relative; overflow: hidden; isolation: isolate; }
.btn.btn--primary { color: #0b0a08 !important; background: var(--ember) !important; background-size: 160% 160% !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgb(255 240 225 / .75), inset 0 -2px 0 rgb(110 40 5 / .45), 0 3px 0 #8a3208, 0 14px 34px -10px rgb(255 107 26 / .55), 0 0 60px -18px rgb(255 217 184 / .45) !important; }
.btn.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; translate: -120% 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .65) 50%, transparent 70%); transition: translate .9s var(--ease-lux); }
.btn.btn--primary:hover::after { translate: 120% 0; }
.btn.btn--primary:hover { background-position: 100% 0 !important; transform: translateY(-2px); }
.btn.btn--primary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 240 225 / .6), 0 1px 0 #8a3208, 0 6px 18px -8px rgb(255 107 26 / .5) !important; }
.btn.btn--secondary { color: #f4efe6 !important; border: 1px solid transparent !important;
  background: linear-gradient(rgb(18 18 24 / .6), rgb(18 18 24 / .6)) padding-box, var(--bevel) border-box !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn.btn--secondary:hover { transform: translateY(-2px); box-shadow: 0 0 30px -8px rgb(255 107 26 / .4); }
.ground-inverse .btn.btn--secondary { color: #14110e !important; background: linear-gradient(rgb(255 252 245 / .7), rgb(255 252 245 / .7)) padding-box, var(--bevel) border-box !important; }

/* ---------- cards: dark translucent glass, a bevelled edge, a spotlight that follows the cursor; tilt comes from js/luxe.js */
.card { --mx: 50%; --my: 50%; transition: transform .7s var(--ease-lux), box-shadow .7s var(--ease-lux); }
main > section:not(.ground-inverse) .card.card--open, main > section:not(.ground-inverse) a.card {
  border: 1px solid transparent;
  background: linear-gradient(rgb(17 17 22 / .66), rgb(10 10 14 / .8)) padding-box, var(--bevel) border-box;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 70px -40px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 236 214 / .06); }
.lux-spot { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 6; opacity: 0; transition: opacity .5s var(--ease-lux);
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgb(255 217 184 / .95), rgb(255 107 26 / .5) 30%, transparent 65%); }
.card.is-lit > .lux-spot { opacity: 1; }
.card.is-lit { box-shadow: 0 40px 90px -40px rgb(0 0 0 / .95), 0 0 70px -30px rgb(255 107 26 / .35); }

.hero--product .hero__stage--live { background: radial-gradient(44% 58% at 50% 62%, rgb(255 107 26 / .14), transparent 70%); }

/* ---------- the close and the footer: an oversized metal watermark and a low ambient glow */
.footer.closing { position: relative; isolation: isolate; background:
    radial-gradient(50% 40% at 50% 0%, rgb(255 107 26 / .09), transparent 72%),
    radial-gradient(40% 50% at 0% 100%, rgb(70 40 26 / .2), transparent 72%),
    linear-gradient(180deg, #0a0a0d, #050507); }
.close__word { color: transparent !important; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, rgb(255 217 184 / .55), rgb(255 107 26 / .22) 55%, rgb(154 58 10 / .05)); font-style: italic; letter-spacing: -0.02em; }
.footer.closing, .footer.closing .ground-inverse { --bg: #070709; --surface: #111116; --ink: #f4efe6; --muted: #a9a297; --line: rgb(255 217 184 / .12); --accent: #ff6b1a; --accent-ink: #0b0a08; color: #f4efe6; }
.footer.closing :is(h2, h3, p, li, a, span):not(.close__word):not(.btn):not(.btn *) { color: inherit; }
.footer.closing :is(.t-lead, p, .muted, small) { color: #b9b1a4; }
.footer.closing #close-h { color: #f4efe6; }
.footer a:hover { color: #ffd9b8; }

/* ---------- the preloader, the ring cursor and the back-to-top button (all made by js/luxe.js) */
.lux-loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #070709;
  transition: opacity .9s var(--ease-lux), visibility 0s .9s; }
.lux-loader.is-done { opacity: 0; visibility: hidden; }
.lux-loader__in { display: grid; justify-items: center; gap: 18px; }
.lux-loader__n { font: italic 500 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-display); font-variant-numeric: tabular-nums;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--ember-text); }
.lux-loader__bar { width: 180px; height: 1px; background: rgb(255 217 184 / .14); overflow: hidden; }
.lux-loader__bar i { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(var(--p, 0)); }
.lux-loader__l { font: 600 .7rem/1 var(--font-text); letter-spacing: .3em; text-transform: uppercase; color: #a9a297; }

.lux-cursor { position: fixed; left: 0; top: 0; z-index: 9995; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgb(255 217 184 / .85); box-shadow: 0 0 18px -4px rgb(255 107 26 / .6);
  transition: width .45s var(--ease-lux), height .45s var(--ease-lux), margin .45s var(--ease-lux), background-color .45s var(--ease-lux), opacity .3s; }
.lux-cursor.is-hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background-color: rgb(255 217 184 / .12); mix-blend-mode: difference; }
.lux-cursor.is-off { opacity: 0; }

.lux-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #ffd9b8; border: 1px solid transparent; background: linear-gradient(rgb(14 14 19 / .72), rgb(14 14 19 / .72)) padding-box, var(--bevel) border-box;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px -16px rgb(0 0 0 / .9), 0 0 30px -12px rgb(255 107 26 / .4);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .6s var(--ease-lux), translate .6s var(--ease-lux), transform .5s var(--ease-lux); }
.lux-top.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.lux-top:focus-visible { outline: 2px solid #ff6b1a; outline-offset: 3px; }
.lux-top svg { width: 18px; height: 18px; }

/* the scroll choreography: the hero's text drifts up and fades as the page scrolls (js/luxe.js sets --hs, 0 to 1); the stage keeps its size */
.hero .hero__head { transform: translate3d(0, calc(var(--hs, 0) * -60px), 0); opacity: calc(1 - var(--hs, 0) * 1.1); }

/* the phone and tablet menu: the sheet and its buttons are fixed to the screen, but the bar's frosted blur makes the bar
   their frame (a backdrop-filter holds fixed children), so they shrank into the pill over the page. While the menu is
   open the bar drops the blur and turns solid, and the sheet covers the screen under it. */
@media (max-width: 1023px) {
  .nav.is-open .nav__bar { -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--bevel) border-box; }
  .nav.is-open .nav__links { top: 0; padding-top: calc(var(--nav) + var(--s-4)); z-index: 1; background: #070709; }
  .nav.is-open :is(.nav__logo, .nav__toggle) { position: relative; z-index: 2; }
  .nav.is-open .nav__menu .menu-card { color: var(--ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 12px); }
}
@media (max-width: 767px) {
  .nav .nav__bar { margin-top: 8px; height: calc(100% - 8px); padding-inline: 14px; }
  .lux-top { right: 14px; bottom: 84px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .lux-ember, h2 .muted, h1 em { animation: none; }
  .hero .hero__head { transform: none !important; opacity: 1 !important; }
  .card, .btn { transition: none; }
}
@media (hover: none), (pointer: coarse) { .lux-cursor { display: none; } }

/* the hero's words, centred in one column over the live tower: eyebrow, headline, lead, one link to the tools */
.hero.hero--product .hero__head.hero__head--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-4); }
.hero.hero--product .hero__head.hero__head--center > :first-child { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.hero.hero--product .hero__head.hero__head--center > :first-child > *,
.hero.hero--product .hero__head.hero__head--center > * { margin: 0; align-self: center; grid-column: auto; grid-row: auto; }
.hero.hero--product .hero__head.hero__head--center .hero__eyebrow { margin: 0; }
.hero.hero--product .hero__head.hero__head--center h1 { max-width: 22ch; margin: 0; font-size: clamp(2.6rem, 1.4rem + 3vw, 4.4rem); line-height: 1.04; }
.hero.hero--product .hero__head.hero__head--center .hero__lead { max-width: 64ch; margin: 0; text-wrap: balance; }
/* the headline reads as two lines on a wide screen: the promise, then where and how fast */
@media (min-width: 900px) {
  .hero.hero--product .hero__head.hero__head--center h1 { max-width: none; font-size: clamp(2.6rem, 0.9rem + 3.1vw, 4rem); line-height: 1.08; }
  .hero.hero--product .hero__head.hero__head--center h1 .hero__line { display: block; white-space: nowrap; }
}
@media (max-width: 899px) { .hero.hero--product .hero__head.hero__head--center h1 { text-wrap: balance; } }
.hero.hero--product .hero__head.hero__head--center > .btn-row { justify-content: center; margin-top: var(--s-2); }
.hero.hero--product .hero__head.hero__head--center + .hero__stage--live { margin-top: var(--s-5); min-height: 0; }
@media (max-width: 767px) {
  .hero.hero--product .hero__head.hero__head--center { align-items: stretch; }
  .hero.hero--product .hero__head.hero__head--center h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 2.9rem); }
}

/* the tower stage stands as tall as the wardrobe and kitchen planners' 3D panes, so the hero grows past the fold */
@media (min-width: 768px) {
  main > section.hero.hero--product { height: auto; min-height: 100svh; padding-bottom: var(--s-8); }
  .hero.hero--product .hero-text.hero__in { height: auto; }
  .hero.hero--product .hero__head.hero__head--center + .hero__stage--live { flex: none; height: clamp(560px, 44vw, 660px); margin-bottom: 0; }
}

/* ---------- AR try-on: the statement and its lead side by side, the room photo whole under them, never clipped */
main > section#try-on { height: auto; min-height: 100svh; overflow: visible; }
#try-on .wrap { justify-content: center; gap: var(--s-7); padding-block: var(--s-4); }
#try-on .section-head.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-8); align-items: end; max-width: none; }
#try-on .statement .mo-lt__type { font-size: clamp(42px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; margin: 0; }
#try-on .statement > p { margin: 0; max-width: 46ch; font-size: 1.125rem; line-height: 1.65; color: #4a4038; }
#try-on .tryon { --p-h: clamp(300px, 44vh, 440px); box-shadow: 0 40px 80px -48px rgb(60 30 10 / .55); }
#try-on .tryon .frame__img { object-position: 50% 70%; }
@media (max-width: 899px) {
  #try-on .section-head.statement { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
  #try-on .tryon { --p-h: clamp(260px, 42vh, 380px); }
}

/* ---------- About: each founder card is the video itself, the name and story set over its lower part */
.team__grid { width: 100%; }
.founder { position: relative; height: clamp(560px, calc(100vh - 200px), 720px); isolation: isolate; }
.founder__media { position: absolute; inset: 0; height: auto; aspect-ratio: auto; z-index: 0; }
.founder__media::after { height: 72%; z-index: 0;
  background: linear-gradient(to top, rgb(7 6 6 / .97) 0%, rgb(7 6 6 / .88) 32%, rgb(7 6 6 / .45) 62%, transparent 100%); }
.founder__media--soon { place-items: start center; padding-top: 18%; }
.founder__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 28px 28px 30px; }
.founder__body h3 { font-size: 1.75rem; color: #f8f3ec; }
.founder__body p:last-child { color: #d6cec2; }
.founder__body .t-label { color: #ff8a4a; }
.founder__sound, .founder__soon { top: 16px; bottom: auto; z-index: 3; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 960px) {
  .founder { height: clamp(520px, 140vw, 680px); }
  .founder__media { aspect-ratio: auto; }
}

/* ---------- phones: a lighter header, the 3D model before its options, tidy readouts, trades as chips,
   no stray floating button, and a footer in two readable columns */
@media (max-width: 767px) {
  /* header: a slim glass bar, a compact Book a demo */
  .nav .nav__bar { gap: var(--s-3); }
  .nav .nav__logo img { height: 20px; }
  .nav .btn.btn--primary { height: 38px; min-height: 38px; padding: 0 16px; font-size: 14px;
    box-shadow: inset 0 1px 0 rgb(255 240 225 / .6), 0 2px 0 #8a3208, 0 8px 20px -10px rgb(255 107 26 / .6) !important; }
  .lux-top { display: none; }

  /* hero */
  .hero__eyebrow { letter-spacing: .14em; font-size: .66rem; }
  .hero.hero--product .hero__head.hero__head--center .hero__lead { font-size: 1rem; line-height: 1.6; }

  /* section heads: one size, less air */
  main > section h2, main > section .t-h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 2.3rem); line-height: 1.08; }
  .section-head p, .section-head .t-lead { font-size: 1rem; line-height: 1.6; }

  /* the wardrobe and kitchen planners: the 3D model first, a good size, then its options */
  .app.ui > .app__pane--open { order: -1; min-height: clamp(320px, 92vw, 420px) !important; border-radius: 18px 18px 0 0; }
  .app.ui > .app__pane--list { border-radius: 0 0 18px 18px; }
  .cfg__seg { flex-wrap: wrap; }
  .cfg__spec, .cfg__spec--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); justify-content: stretch; }
  .cfg__spec dd { font-size: 13px; overflow-wrap: anywhere; }

  /* industries: the trades as wrapped chips instead of a ragged list */
  #industries .trades .mo-mq__track { flex-wrap: wrap; white-space: normal; gap: 8px; animation: none !important; transform: none !important; }
  #industries .trades .mo-mq__track li { font: 500 14px/1 var(--font-text); letter-spacing: 0; padding: 10px 14px; border-radius: 999px;
    border: 1px solid rgb(255 217 184 / .18); background: rgb(255 255 255 / .03); }
  #industries .trades .mo-mq__track li::after { content: none; }
  #industries .trades .mo-mq__track[aria-hidden="true"], #industries .trades .mo-mq__track + .mo-mq__track { display: none; }

  /* questions: straight to the answers */
  .faq__photo { display: none; }

  /* footer: the statement, then the links two columns wide */
  .closing__links .grid > .footer__col { grid-column: auto / span 6 !important; }
  .closing__links .grid > .footer__col li a { white-space: nowrap; }
  .close__word { font-size: calc(100cqi / 4.6); }
}

/* ---------- every tool in its own section, in the wardrobe's format
   The sofa customizer and the railing designer are live 3D (js/ui3d.js floats their options in the scene).
   AR try-on and virtual try-on are photographs, so their options float over the frame as an HTML glass panel
   (.app--float) that matches the 3D one. Under 1024px every tool stacks: the view first, then its options. */
@media (max-width: 1023px) {
  .app.ui.fill { flex: none; height: auto; min-height: 0; }
  .app.ui > .app__pane--open { min-height: clamp(320px, 62vw, 520px); }
  .app.ui .cfg { height: auto; }
}
@media (max-width: 639px) { .app.ui .cfg { padding: var(--s-4); gap: var(--s-4); } }

@media (min-width: 1024px) {
  main .app.ui.app--float { position: relative; grid-template-columns: minmax(0, 1fr); }
  main .app.ui.app--float > .app__pane + .app__pane { border: 0; }
  main .app.ui.app--float > .app__pane--open { min-height: clamp(560px, 44vw, 660px); }
  main .app.ui.app--float > .app__pane--list {
    position: absolute; z-index: 3; top: 50%; left: 28px; translate: 0 -50%; width: 300px; overflow: visible;
    border-radius: 16px; background: rgb(18 16 14 / .84); border: 1px solid rgb(255 255 255 / .11);
    -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7);
    --ink: #f6f2ec; --muted: #a8a29a; --line: rgb(255 255 255 / .09); --p-surface: #12100e;
  }
  main .app.ui.app--float.app--flip > .app__pane--list { left: auto; right: 28px; }
  main .app.ui.app--float .cfg--dense { padding: var(--s-4); }
}

/* AR try-on: the room photograph fills the frame, the placed sofa's tag and reticle over it */
.tryon--app { position: absolute; inset: 0; overflow: hidden; }
.tryon--app .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.tryon--app .tryon__dim { transition: width .5s cubic-bezier(.16, 1, .3, 1); }
[data-ar][data-size="190"] .tryon__dim { width: 216px; }
[data-ar][data-size="190"] .tryon__reticle { width: 184px; }

/* virtual try-on: the shopper fills the frame (the stage sizes itself to the frame, js/lux.js recolours it) */
#virtual-try-on .app__pane--open { background: #1a1612 url("../assets/img/photo-f61838183-500.jpg") 50% 40% / cover; }
.vt__frame { position: absolute; inset: 0; overflow: hidden; container-type: size;
  -webkit-backdrop-filter: blur(36px) brightness(.45) saturate(.9); backdrop-filter: blur(36px) brightness(.45) saturate(.9); }
/* the portrait fits the frame's height (a touch closer), centred in the frame; on a desktop, centred beside the panel */
#virtual-try-on .vt__stage { width: calc(100cqh * 960 / 1247 * 1.1); top: 52%; box-shadow: 0 0 80px 20px rgb(0 0 0 / .35); }
@media (min-width: 1024px) { #virtual-try-on .vt__stage { left: calc((100% - 328px) / 2); } }
@media (max-width: 1023px) { #virtual-try-on .vt__stage { width: max(calc(100cqh * 960 / 1247 * 1.1), 46cqw); } }
@media (min-width: 1024px) { .tryon--app :is(.tryon__dim, .tryon__reticle) { left: 62%; } }

.tryon--app .tryon__dim span { padding: 8px 12px; }
