/* Demonstration, examples and client workflow on the LABS home. */
.labs-reel {
  --reel-card-width:min(62vw,960px);
  --reel-gap:clamp(16px,2.2vw,32px);
  width:100%;
  margin-inline:auto;
}
.labs-home:has(.labs-reel) .labs-home__hero {
  padding-top:clamp(70px,8.5svh,98px);
}
.labs-home:has(.labs-reel) .labs-home__lead {
  max-width:620px;
  margin:18px auto 0;
  text-wrap:pretty;
}
.labs-home:has(.labs-reel) .labs-home__hero-actions {
  gap:18px;
  margin:22px 0 28px;
}
.labs-reel__stage {
  position:relative;
  isolation:isolate;
  width:100vw;
  height:calc(var(--reel-card-width) * 9 / 16);
  margin-left:calc(50% - 50vw);
  overflow:hidden;
  touch-action:pan-y;
}
.labs-reel__stage::before,.labs-reel__stage::after {
  content:"";
  position:absolute;
  z-index:3;
  top:0;
  bottom:0;
  width:calc((100% - var(--reel-card-width)) / 2);
  pointer-events:none;
}
.labs-reel__stage::before {
  left:0;
  background:linear-gradient(90deg,var(--theme-canvas),color-mix(in srgb,var(--theme-canvas) 94%,transparent) 16%,color-mix(in srgb,var(--theme-canvas) 56%,transparent) 55%,transparent);
}
.labs-reel__stage::after {
  right:0;
  background:linear-gradient(270deg,var(--theme-canvas),color-mix(in srgb,var(--theme-canvas) 94%,transparent) 16%,color-mix(in srgb,var(--theme-canvas) 56%,transparent) 55%,transparent);
}
.labs-reel__card {
  position:absolute;
  inset:0 auto auto calc(50% - var(--reel-card-width) / 2);
  width:var(--reel-card-width);
  height:100%;
  overflow:hidden;
  margin:0;
  border:0;
  border-radius:var(--radius-card);
  background:var(--surface-raised);
  transform:translate3d(calc(var(--reel-position) * (var(--reel-card-width) + var(--reel-gap))),0,0) scale(.91);
  opacity:0;
}
.labs-reel__card[data-reel-position="0"] { transform:translate3d(0,0,0) scale(1); opacity:1; z-index:2; }
.labs-reel__card[data-reel-position="-1"],.labs-reel__card[data-reel-position="1"] { opacity:.82; }
.labs-reel[data-reel-moving] .labs-reel__card { transition:transform .62s cubic-bezier(.22,.68,0,1),opacity .48s ease; }
.labs-reel__card video { display:block; width:100%; height:100%; object-fit:cover; }
.labs-reel__side-hit {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  border-radius:inherit;
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.labs-reel__side-hit[hidden] { display:none; }
.labs-reel__side-hit:focus-visible { outline:2px solid var(--accent); outline-offset:-4px; }
.labs-reel__controls button:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.labs-reel__side-hit>span {
  position:absolute;
  top:50%;
  left:22px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:var(--control-radius);
  background:var(--surface);
  transform:translateY(-50%);
}
.labs-reel__card[data-reel-position="-1"] .labs-reel__side-hit>span { left:auto; right:22px; }
.labs-reel svg,.labs-customer__divider svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.labs-reel__choices {
  --prompt-card:52px;
  --prompt-pad:12px;
  position:relative;
  z-index:4;
  width:min(62%,476px);
  margin:-22px auto 0;
}
.labs-reel__prompt-box {
  min-height:calc(var(--prompt-card) + 2 * var(--prompt-pad));
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--prompt-card);
  align-items:center;
  gap:12px;
  padding:var(--prompt-pad) calc(var(--prompt-pad) + 8px) var(--prompt-pad) calc(var(--prompt-pad) + 4px);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface);
  color:var(--muted);
  box-shadow:0 8px 24px color-mix(in srgb,var(--text) 9%,transparent);
  text-align:left;
  font:400 14px/1.45 var(--font-ui);
  overflow-wrap:anywhere;
}
.labs-reel__prompt-copy { min-width:0; display:grid; }
.labs-reel__prompt-copy>span { grid-area:1/1; }
[data-home-reel-prompt-measure] { visibility:hidden; }
.labs-reel__choices:is([data-prompt-phase="empty"],[data-prompt-phase="typing"]) [data-home-reel-prompt]::after {
  display:inline-block;
  width:1px;
  height:1em;
  margin-inline-start:2px;
  background:var(--muted);
  vertical-align:-.12em;
  content:"";
}
.labs-reel__attachment { position:relative; height:var(--prompt-card); }
.labs-reel__attachment-slot,.labs-reel__source-card { position:absolute; inset:0; }
.labs-reel__attachment-slot {
  display:grid;
  place-items:center;
  border:1px dashed var(--line-strong,var(--line));
  border-radius:var(--control-radius);
  background:var(--surface);
  color:var(--muted);
  opacity:calc(1 - var(--reel-load,0));
  transition:transform .14s ease,border-color .14s ease;
}
.labs-reel__choices[data-prompt-phase="pressed"] .labs-reel__attachment-slot {
  transform:scale(.91);
  border-color:var(--labs-primary);
}
.labs-reel__source-card {
  z-index:1;
  opacity:var(--reel-load,0);
  transform:translateY(calc(4px * (1 - var(--reel-load,0)))) scale(calc(.88 + .12 * var(--reel-load,0)));
}
.labs-reel__source-frame {
  position:absolute;
  inset:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  background:var(--surface);
  box-shadow:0 3px 12px color-mix(in srgb,var(--text) 12%,transparent);
}
.labs-reel__source-frame:nth-child(1) { z-index:2; }
.labs-reel__source-frame:nth-child(2) {
  z-index:1;
  transform:translate(4px,-4px) rotate(8deg);
}
.labs-reel__source-frame:nth-child(3) {
  transform:translate(8px,-8px) rotate(16deg);
}
.labs-reel__source-frame img { display:block; width:100%; height:100%; object-fit:cover; }
.labs-reel svg.labs-reel__cursor {
  position:absolute;
  z-index:2;
  top:calc(50% - 3px);
  left:calc(50% - 4px);
  display:none;
  width:24px;
  height:24px;
  fill:#ef7d2c;
  stroke:white;
  stroke-width:1.1;
  filter:drop-shadow(0 1px 3px #532d1b55);
  transform:translate(calc(14px * var(--reel-approach,0)),calc(14px * var(--reel-approach,0)));
  transform-origin:4px 3px;
}
.labs-reel__choices:is([data-prompt-phase="approach"],[data-prompt-phase="pressed"]) .labs-reel__cursor { display:block; }
.labs-reel__choices[data-prompt-phase="pressed"] .labs-reel__cursor { transform:scale(.9); }
.labs-reel__controls {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  width:var(--reel-card-width);
  max-width:100%;
  margin:8px auto 0;
  text-align:left;
}
.labs-reel__controls-group { display:flex; align-items:center; gap:12px; flex:none; color:var(--muted); font:500 12px/1 var(--font-ui); }
.labs-reel__controls-group a { font-size:12px; }
.labs-reel__controls button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
}
.labs-reel__controls .labs-reel__mobile-step { display:none; }
.labs-customer h3 {
  margin:0;
  color:var(--text);
  font:600 clamp(17px,1.6vw,22px)/1.4 var(--font-ui);
  letter-spacing:-.025em;
}
.labs-customer__selection p {
  margin:8px 0 0;
  color:var(--muted);
  font:400 14px/1.6 var(--font-ui);
}
.labs-customer[data-home-customer] { margin-top:0; padding:clamp(46px,6vw,86px) 0 0; }
.labs-customer__heading { text-align:center; justify-content:center; }
#labs-customer-title,#labs-home-showcase { scroll-margin-top:112px; }
.labs-customer__tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.labs-customer__tabs button,.labs-customer__upload {
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  background:var(--surface);
  color:var(--muted);
  font:550 13px/1.4 var(--font-ui);
  cursor:pointer;
}
.labs-customer__tabs button[aria-selected="true"] {
  border-color:var(--line-strong);
  color:var(--text);
  background:var(--surface-raised);
}
.labs-customer__example { display:grid; grid-template-columns:minmax(0,2.25fr) minmax(0,1fr); gap:14px; }
.labs-customer__compare {
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:var(--radius-card);
  background:var(--surface-raised);
  isolation:isolate;
}
.labs-customer__compare>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.labs-customer__compare>[data-customer-before] { clip-path:inset(0 calc(100% - var(--reveal)) 0 0); }
.labs-customer__compare>input { position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:ew-resize; z-index:3; touch-action:pan-y; }
.labs-customer__compare:focus-within { outline:2px solid var(--accent); outline-offset:4px; }
.labs-customer__compare.is-local>[data-customer-before] { clip-path:none; object-fit:contain; }
.labs-customer__compare.is-local .labs-customer__divider,
.labs-customer__compare [hidden] { display:none; }
.labs-customer__before,.labs-customer__after {
  position:absolute;
  top:12px;
  padding:6px 10px;
  background:#fff;
  color:#353535;
  font:550 11px/1.4 var(--font-ui);
  border-radius:4px;
  z-index:2;
}
.labs-customer__before { left:12px; }
.labs-customer__after { right:12px; }
.labs-customer__divider { position:absolute; top:0; bottom:0; left:var(--reveal); width:2px; background:white; transform:translateX(-50%); pointer-events:none; z-index:2; }
.labs-customer__divider i {
  position:absolute;
  top:50%;
  left:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:white;
  color:#333;
  box-shadow:0 2px 12px #0002;
}
.labs-customer__divider svg { width:14px; height:14px; }
.labs-customer__selection {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:start;
  gap:20px;
  padding:clamp(16px,2.15vw,30px);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface-raised);
}
.labs-customer__input,.labs-customer__upload,.labs-customer__selection>.labs-home__action { width:100%; }
.labs-customer__upload { display:flex; align-items:center; justify-content:center; gap:8px; border-style:dashed; }
.labs-customer__upload:hover { color:var(--text); border-color:var(--line-strong); }
.labs-customer__samples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:8px; }
.labs-customer__samples button {
  min-width:0;
  overflow:hidden;
  padding:0;
  text-align:left;
  border:1px solid var(--line);
  border-radius:var(--control-radius);
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
}
.labs-customer__samples button[aria-pressed="true"] { border:1px solid var(--labs-primary); color:var(--text); }
.labs-customer__samples button img { aspect-ratio:1.9; object-fit:cover; }
.labs-customer__samples button span { display:block; padding:4px; text-align:center; font:500 11px/1.3 var(--font-ui); }
.labs-customer__selection [data-customer-status] { font-size:12px; }
.labs-customer__selection [data-customer-status]:empty { display:none; }

.labs-home-furniture { --furniture-columns:minmax(0,1.55fr) minmax(285px,1fr); --furniture-gap:clamp(16px,3vw,40px); }
.labs-home-furniture .labs-home__section-head,.labs-home-furniture__layout {
  display:grid;
  grid-template-columns:var(--furniture-columns);
  column-gap:var(--furniture-gap);
}
.labs-home-furniture .labs-home__section-head>p { max-width:350px; margin:0; }
.labs-home-furniture__layout { align-items:start; }
.labs-home-furniture__room { position:relative; overflow:hidden; margin:0; border-radius:var(--radius-card); }
.labs-home-furniture__room>img { display:block; width:100%; height:auto; aspect-ratio:1250 / 833; object-fit:cover; }
.labs-home-furniture__room figcaption {
  position:absolute;
  inset:auto 0 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:end;
  gap:10px;
  padding:34px 18px 18px;
  background:linear-gradient(transparent,rgba(0,0,0,.62));
  color:#fff;
  font:500 12px/1.4 var(--font-ui);
}
.labs-home-furniture__room figcaption a { color:inherit; text-underline-offset:3px; }
.labs-home-furniture__list { scroll-margin-top:92px; }
.labs-home-furniture__list>h3 { margin:0 0 8px; color:var(--text); font:650 18px/1.4 var(--font-ui); }
.labs-home-furniture__list>details { border-bottom:1px solid var(--line); }
.labs-home-furniture__list summary {
  display:grid;
  grid-template-columns:68px minmax(0,1fr) 24px;
  align-items:center;
  gap:12px;
  min-height:88px;
  padding:10px 2px;
  color:var(--text);
  list-style:none;
  cursor:pointer;
}
.labs-home-furniture__list summary::-webkit-details-marker { display:none; }
.labs-home-furniture__thumbnail {
  display:grid;
  width:68px;
  height:68px;
  place-items:center;
  overflow:hidden;
  border-radius:var(--control-radius);
  background:#f8f8f8;
}
.labs-home-furniture__thumbnail>img { display:block; width:100%; height:100%; object-fit:contain; }
.labs-home-furniture__thumbnail[data-furniture-thumbnail="sofa"]>img { transform:scale(1.33); }
.labs-home-furniture__thumbnail[data-furniture-thumbnail="table"]>img { transform:scale(.78); }
.labs-home-furniture__list summary strong,.labs-home-furniture__list summary small { display:block; line-height:1.45; }
.labs-home-furniture__list summary strong { font-weight:600; }
.labs-home-furniture__list summary small { color:var(--muted); font-size:11px; }
.labs-home-furniture__expand { justify-self:center; font-size:22px; color:var(--muted); transition:transform .2s; }
.labs-home-furniture__list details[open] .labs-home-furniture__expand { transform:rotate(45deg); }
.labs-home-furniture__detail { padding:0 12px 14px 82px; color:var(--muted); font:400 13px/1.55 var(--font-ui); }
.labs-home-furniture__detail p { margin:0 0 4px; }
.labs-home .labs-home-furniture__list>.labs-home__action { display:flex; width:fit-content; margin:20px auto 0; }

.labs-home-workflow { margin-top:clamp(58px,8vw,112px); padding:clamp(56px,7vw,96px) 0; background:var(--surface-raised); }
.labs-home-workflow h2 { margin:0 0 26px; }
.labs-home-workflow__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.labs-home-workflow__grid>article {
  display:flex;
  flex-direction:column;
  align-items:start;
  padding:clamp(18px,2.8vw,34px);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface);
}
.labs-home-workflow__grid svg { width:26px; height:26px; fill:none; stroke:var(--labs-primary); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.labs-home-workflow__grid h3 { margin:18px 0 6px; color:var(--text); font:650 clamp(16px,2vw,22px)/1.3 var(--font-ui); }
.labs-home-workflow__grid p { margin:0 0 18px; color:var(--muted); font:400 14px/1.6 var(--font-ui); }
.labs-home-workflow__grid .labs-home__text-action { margin-top:auto; }
.labs-home-workflow__note { margin-top:10px; color:var(--muted); font:500 11px/1.4 var(--font-ui); }
.labs-home-workflow__proof { margin-top:16px; }
.labs-home-workflow__before-after,.labs-home-workflow__shorts { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; }
.labs-home-workflow__before-after figure { margin:0; }
.labs-home-workflow__before-after figcaption { margin-top:6px; color:var(--muted); font:500 12px/1.4 var(--font-ui); }
.labs-home-workflow__before-after img,.labs-home-workflow__sample,.labs-home-workflow__shorts video { display:block; width:100%; height:auto; border-radius:var(--radius-card); }
.labs-home-workflow__before-after img { aspect-ratio:16/9; object-fit:cover; }
.labs-home-workflow__shorts video { aspect-ratio:9/16; object-fit:contain; background:#000; }
@media (min-width:761px) {
  .labs-home-workflow__grid>article:not(:has(.labs-home-workflow__note)) .labs-home__text-action { margin-bottom:25.4px; }
}

@media (max-width:760px) {
  .labs-home:has(.labs-reel) .labs-home__hero { padding-top:84px; }
  .labs-home:has(.labs-reel) .labs-home__hero-actions { margin:18px 0 24px; }
  .labs-reel { --reel-card-width:calc(100vw - 72px); --reel-gap:12px; }
  .labs-reel__choices { --prompt-card:42px; --prompt-pad:8px; width:min(100%,476px); margin:8px auto 0; }
  .labs-reel__prompt-box { min-height:80px; font-size:13px; }
  .labs-reel__controls { width:100%; gap:10px; }
  .labs-reel__controls-group { gap:6px; }
  .labs-reel__controls .labs-reel__mobile-step { display:grid; }
  .labs-reel__side-hit>span { display:none; }
  .labs-customer__example,.labs-home-workflow__grid { grid-template-columns:1fr; }
  .labs-home-furniture { --furniture-columns:minmax(0,1fr); }
  .labs-home-furniture .labs-home__section-head { align-items:start; row-gap:10px; }
  .labs-customer__tabs { gap:6px; }
  .labs-customer__tabs button { padding:8px 9px; font-size:12px; }
}
@media (max-width:374px) {
  .labs-reel__prompt-box { min-height:114px; }
}
@media(prefers-reduced-motion:reduce) {
  .labs-reel[data-reel-moving] .labs-reel__card,.labs-home-furniture__expand { transition:none; }
}

/* Action case follows the global landing convention; content labels stay natural. */
html[data-labs-market="GLOBAL"] .labs-home :is(.labs-home__action,.labs-home__text-action,.labs-home__inline,.labs-customer__upload,.app-card__info) { text-transform:uppercase; }

/* Every tab reserves its actual wrapped copy size; no clipped fixed-height text. */
.labs-customer__copy { width:100%; }
.labs-customer__copy-row { display:grid; }
.labs-customer__copy-row>* { grid-area:1 / 1; min-width:0; }
.labs-customer__copy-measure { visibility:hidden; pointer-events:none; }
html body .labs-home .labs-customer__samples>button[type="button"] { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; padding:0; min-height:0; }
.labs-customer__samples button img { display:block; flex:none; width:100%; margin:0; border-radius:0; }
.labs-customer__samples button span { flex:1; display:grid; place-items:center; }
