/* Viewport-sized discovery scene; the same shell survives the phone transition. */
.story-product{transform:none}
/* Venue photography fills its preview frame, including while the phone moves. */
.phone[data-sector="entertainment"] :is(.story-product,.scan-product){object-fit:cover;object-position:center}
.discovery-shell,.journey-device{font-family:var(--ui-font-family);color:var(--ink);--orange:#f87317;--orange-dark:#d85c09}
.discovery-shell{height:100svh;display:flex;flex-direction:column;min-height:0}

.discovery-shell>.journey-top{height:42px;padding:10px 4%;flex-shrink:0}
.discovery-shell .scenario-page{width:100%;flex:1;min-height:0;padding:18px 4% 10px;display:flex;flex-direction:column}
.discovery-shell .scenario-heading{flex-shrink:0;margin-bottom:18px;gap:25px;align-items:center}
.discovery-shell .scenario-heading h1{font-size:clamp(27px,2.2vw,36px);margin:9px 0 0;line-height:1.15}
.discovery-shell .scenario-heading p{font-size:13px;line-height:1.65}
/* Shared tracks keep the three handsets aligned when a caption wraps or the font loads. */
.discovery-shell .scenario-grid{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}
.discovery-shell .scenario-card{display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);grid-row:1 / span 3;height:100%;min-height:0;padding:22px;gap:14px;justify-content:flex-start}
.discovery-shell .scenario-label{flex:none}
.scenario-visual{position:relative;flex:1;min-height:0;width:100%;container-type:size}
.discovery-shell .scenario-card .phone{--device-height:min(330px,94cqh);height:var(--device-height);width:calc(var(--device-height)*.508);font-size:calc(var(--device-height)/31.5);right:5%;top:50%;transform:translateY(-50%) rotate(7deg)}
.discovery-shell .scenario-card:hover .phone{transform:translateY(-50%) rotate(0deg);opacity:1}
.discovery-shell .scenario-copy{align-self:end;margin-top:0;flex:none;max-width:100%}
.discovery-shell .scenario-copy h2{font-size:clamp(22px,1.75vw,29px);line-height:1.08;margin-bottom:10px}
.discovery-shell .scenario-copy p{font-size:13px;line-height:1.55;max-width:340px;margin-bottom:16px}
.discovery-shell .scene-footnote{margin:10px 0 0;line-height:1.5;font-size:11px;flex:none}
.scenario-switcher,.scenario-progress,.scene-footnote .touch-hint{display:none}
@media(max-width:1050px){
 .discovery-shell .scenario-card{padding:18px;gap:10px}
 .discovery-shell .scenario-copy p{font-size:12px;line-height:1.5}
 .discovery-shell .scenario-heading p{max-width:270px;font-size:12px}
}
@media(max-width:850px){
 .discovery-shell>.journey-top{height:38px;padding:9px 20px}
 .discovery-shell .scenario-page{padding:14px 20px 10px}
 .discovery-shell .scenario-heading{display:block;margin-bottom:12px}
 .discovery-shell .scenario-heading h1{font-size:27px;margin-top:7px}
 .discovery-shell .scenario-heading p{display:none}
 .scenario-switcher{display:flex;gap:6px;flex:none;margin:0 0 12px}
 .scenario-switcher button{background:#fff;border:1px solid #dce3e9;border-radius:30px;font-size:11px;font-weight:600;padding:8px 12px;color:#536171}
 .scenario-switcher button:hover,.scenario-switcher button:focus-visible{color:var(--orange);border-color:var(--orange)}
 .discovery-shell .scenario-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc(100% - 18px);gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:4px;scrollbar-width:none;padding:4px}
 .discovery-shell .scenario-grid::-webkit-scrollbar{display:none}
 .discovery-shell .scenario-card{scroll-snap-align:start;scroll-snap-stop:always;padding:20px;gap:12px}
 .discovery-shell .scenario-card .phone{right:8%;--device-height:min(320px,92cqh)}
 .discovery-shell .scenario-copy h2{font-size:26px;max-width:100%}
 .discovery-shell .scenario-copy p{max-width:100%;font-size:13px;line-height:1.5;margin-bottom:13px}
 .discovery-shell .scenario-label{font-size:12px}
 .scene-footnote .desktop-hint{display:none}.scene-footnote .touch-hint{display:inline}
}
/* Shared progress treatment; visibility is limited to phones and touch tablets
   in portrait. Each bar uses the same column as its scene selector. */
.scenario-progress{align-items:center;flex:none;min-height:28px;margin:0 0 6px}
.scenario-progress button{flex:1;min-width:24px;height:28px;padding:0;border:0;border-radius:4px;background:transparent}
.scenario-progress button::before{content:'';display:block;height:4px;border-radius:8px;background:#d5dde5;transition:background-color .18s ease,box-shadow .18s ease}
.scenario-progress button[aria-pressed="true"]::before{background:var(--orange);box-shadow:0 0 0 2px #f8731714}
.scenario-progress button:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
@media(max-width:600px){
 .discovery-shell .scenario-grid{grid-auto-columns:100%}
 .discovery-shell .scenario-switcher,.scenario-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .discovery-shell .scenario-switcher{margin-bottom:0}
}
@media(min-width:601px) and (max-width:1100px) and (orientation:portrait){
 :root[data-discovery-input="touch"] :is(.scenario-switcher,.scenario-progress){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 :root[data-discovery-input="touch"] .discovery-shell .scenario-switcher{flex:none;margin:0}
 :where(:root[data-discovery-input="touch"]) .scenario-switcher button{min-width:0;background:#fff;border:1px solid #dce3e9;border-radius:30px;font-size:11px;font-weight:600;padding:8px 12px;line-height:1.3;white-space:normal;color:#536171}
 :root[data-discovery-input="touch"] .discovery-shell .scenario-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:100%;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:4px;scrollbar-width:none;padding:4px}
 :root[data-discovery-input="touch"] .discovery-shell .scenario-grid::-webkit-scrollbar{display:none}
 :root[data-discovery-input="touch"] .discovery-shell .scenario-card{scroll-snap-align:start;scroll-snap-stop:always}
}
@media(max-height:700px){
 .discovery-shell>.journey-top{height:36px}
 .discovery-shell .scenario-page{padding-top:12px;padding-bottom:8px}
 .discovery-shell .scenario-heading{margin-bottom:12px}
 .discovery-shell .scenario-heading h1{font-size:27px;margin-top:5px}
 .discovery-shell .scenario-copy h2{font-size:22px;margin-bottom:7px}
 .discovery-shell .scenario-copy p{font-size:12px;line-height:1.45;margin-bottom:10px}
 .discovery-shell .scenario-card{padding:16px;gap:8px}
 .discovery-shell .scenario-label{font-size:12px}
 .discovery-shell .scene-cta{font-size:12px}
 .scenario-switcher{margin-bottom:8px}.scenario-switcher button{padding:6px 10px}
}
/* Very short/zoomed windows retain readable content and keyboard access. */
@media(max-height:540px){.discovery-shell{height:auto;min-height:100svh}.discovery-shell .scenario-grid{min-height:450px}.discovery-shell .scenario-card{min-height:450px}.scenario-visual{min-height:160px}}

/* Rich variants remain compact, labelled and aligned on all product cards. */
.product-options{margin-top:24px;display:grid;gap:20px}
.product-option-group{border:0;padding:0;margin:0;min-width:0}
.product-option-group legend{font:600 13px/20px var(--ui-font-family);padding:0;margin-bottom:10px;color:#334155}
.product-option-group legend span{font-weight:400;color:#798491;margin-left:9px}
.product-option-group .sizes,.product-option-group .swatches{margin:0;display:flex;flex-wrap:wrap;gap:8px}
.product-option-group .size{font-size:12px;line-height:1.4;padding:9px 12px;min-height:36px;min-width:42px;white-space:normal}
.product-option-group .swatches{display:grid;grid-template-columns:repeat(5,34px);max-width:100%}
.product-option-group .swatch{width:34px;height:34px}
.product-option-group .size.active{border-color:#334155;background:#eef2f5;color:#1e293b}
.product-option-group .swatch:focus-visible,.product-option-group .size:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.reference-product .product-note{margin:10px 2px;color:#7a8591;font-size:11px;line-height:18px}
.shop-card-swatches{gap:7px;overflow:hidden;flex-wrap:nowrap}
.card-variant-more{font-size:10px;color:#64748b;white-space:nowrap}
.filter-colors{display:grid;grid-template-columns:repeat(5,32px);gap:12px;clear:both;width:100%;max-width:216px;padding:4px}.filter-color-caption{font-size:12px;line-height:18px;color:#64748b;margin:13px 0 0}
@media(max-width:620px){.product-options{gap:18px}.product-option-group .size{padding:8px 10px;font-size:12px}.shop-card-swatches{gap:5px}.card-variant-more{font-size:9px}}

/* Let the camera photograph supply the paper colour and the stand's edges. */
.phone-scan:not(:has(img[src$="/scan-print.svg"])) .camera-printed-qr {
  width: min(var(--qr-w), var(--paper-print-width, 17%));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
}
.phone-scan[data-sector="retail"],
.phone-scan[data-sector="government"] { --paper-print-width: 14%; }
.phone-scan[data-sector="hospitality"] { --paper-print-width: 15%; }

/* Short desktop windows use the scrollable card layout and a stable phone height. */
@media (min-width: 851px) and (max-height: 540px) {
  .discovery-shell:not(.cx-discovery) .scenario-card .phone-v31 {
    --device-height: 210px;
  }
}
