/* Hero reveal and the persistent 3D product stage. */

/* Pinned sections resize under the reader; browser scroll anchoring would otherwise jump the
   page by the pin distance (about 1.2s after a breakpoint change). Positions are kept by JS. */
body.duos-home {
  overflow-anchor: none;
}

.duos-root .demo-anchor { width: 0; height: 0; opacity: 0; pointer-events: none; }
.duos-root .demo-power {
  position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0;
  transform: translate(-50%, -50%); border: 1px solid rgba(90,90,90,.5);
  border-radius: 50%; background: transparent; pointer-events: auto; touch-action: pan-y;
  cursor: pointer;
}
.duos-root .demo-power:hover { background: rgba(255,255,255,.12); }
/* A faint pulsing light shows the button can be pressed, without a text hint (2026-10-28 EC-11,
   client instruction; an exception to DESIGN_DUOS §7 "no glow"). Still once the demo is open. */
.duos-root .demo-power::after {
  /* Storefront hides button::after; display is restated so the ring is generated. */
  content: ''; display: block; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  /* A light ring with a hairline dark edge, so it reads over the dark body and the white canvas. */
  box-shadow: 0 0 0 1px rgba(255,255,255,.85), 0 0 0 2px rgba(28,28,28,.28), 0 0 14px 4px rgba(255,255,255,.6);
  /* Three pulses per page view (lcd-demo.js marks the button found), then a still ring: an endless
     animation keeps the page producing frames over the 3D canvas (seconds of main-thread work in
     lab rendering). */
  opacity: .45; animation: duos-power-pulse 2400ms ease-in-out 3;
}
.duos-root .stage-layer--demo .demo-power::after,
.duos-root .demo-power--found::after { animation: none; opacity: .4; }
@keyframes duos-power-pulse {
  0%, 100% { opacity: .2; transform: scale(.92); }
  50% { opacity: .9; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .duos-root .demo-power::after { animation: none; opacity: .5; transform: none; }
}
.duos-root .demo-power:focus-visible { outline: 3px solid #647887; outline-offset: 3px; }
.duos-root .demo-guide {
  position: absolute; left: 5vw; top: 61%; width: min(360px, 34vw);
  color: #333; pointer-events: auto; font-size: 13px; line-height: 1.7;
}
.duos-root .demo-guide p { margin: 0 0 10px; }
.duos-root .demo-guide__title { font-weight: 600; letter-spacing: .08em; }
.duos-root .demo-guide__note { font-size: 11px; color: #666; }
.duos-root .demo-guide .pill { margin: 0 0 12px; padding: 10px 18px; }
.duos-root .demo-guide [data-demo-status] { font-weight: 600; }
.duos-root .demo-power[hidden], .duos-root .demo-guide[hidden], .duos-root [data-demo-return][hidden] { display: none; }
/* Leader lines and explanations for the LCD elements. Hidden while the camera moves. */
.duos-root .demo-callouts { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--ease-out); }
.duos-root .stage-layer--demo[data-demo-transition="false"] .demo-callouts { opacity: 1; }
/* Difference blending keeps the hairline readable across the dark body and the white canvas. */
.duos-root .demo-callouts__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: difference; }
.duos-root .demo-callout__line { fill: none; stroke: var(--color-canvas); stroke-width: 1; }
.duos-root .demo-callout__dot { fill: var(--color-canvas); stroke: none; }
.duos-root .demo-callout { position: absolute; margin: 0; max-width: 260px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 3px; }
.duos-root .demo-callout[hidden] { display: none; }
.duos-root .demo-callout__target { color: var(--color-ink); font-size: var(--text-label); font-weight: var(--weight-medium); line-height: var(--leading-label); letter-spacing: var(--tracking-label); }
.duos-root .demo-callout__text { color: var(--color-graphite); font-size: var(--text-caption); line-height: var(--leading-caption); }
@media (max-width: 767px) {
  .duos-root .demo-guide { top: 130px; bottom: auto; left: 6vw; width: 40vw; font-size: 11px; line-height: 1.45; }
  .duos-root .stage-layer--demo .demo-guide { top: auto; bottom: 30px; width: 88vw; }
  .duos-root .stage-layer--demo .stage__viewer { transform: translate(var(--stage-shift, 0%), -6%); }
  .duos-root:has(.stage-layer--demo) .showcase--on .showcase__tags { top: 94px; bottom: auto; width: 88vw; gap: 8px; }
  .duos-root:has(.stage-layer--demo) .showcase__hint { display: none; }
  /* The demo camera fills the narrow column; the lead would push the second tag row onto the model. */
  .duos-root:has(.stage-layer--demo) .showcase__lead { display: none; }
  .duos-root .demo-guide p { margin-bottom: 5px; }
  .duos-root .demo-guide .pill { padding: 7px 12px; margin-bottom: 5px; min-height: 40px; }
  .duos-root .demo-guide__note { font-size: 10px; }
  .duos-root .demo-callout { max-width: none; gap: 2px; }
  .duos-root .demo-callout__target { white-space: nowrap; }
  .duos-root .demo-callout__text { font-size: var(--text-label); line-height: 1.4; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .duos-root .stage__viewer { transition: none; }
  .duos-root .demo-callouts { transition: none; }
}

.duos-root .hero-wrap,
.duos-root .hero {
  position: relative;
}

.duos-root .hero {
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--surface-canvas);
}

.duos-root .hero__frame {
  --product-x-in-frame: 0.685;
  --hero-anchor: 68.5vw;
  --frame-w: max(100vw, calc(100svh * 16 / 9));
  position: absolute;
  top: 50%;
  left: calc(var(--hero-anchor) - var(--product-x-in-frame) * var(--frame-w));
  width: var(--frame-w);
  height: max(100svh, calc(100vw * 9 / 16));
  transform: translateY(-50%);
}

.duos-root .hero__picture {
  display: contents;
}

.duos-root .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  pointer-events: none;
}

.duos-root .hero--video .hero__video { visibility: visible; }
.duos-root .hero--video .hero__picture { visibility: hidden; }
.duos-root .hero--video .hero__dust,
.duos-root .hero--video .hero__shader { visibility: hidden; }

.duos-root .hero__bg,
.duos-root .hero__product,
.duos-root .stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.duos-root .hero__bg,
.duos-root .hero__product {
  object-fit: fill;
}

/* Chromium leaves an image that fills the whole viewport out of LCP, so the first-view product
   never counted and text revealed after the KV handoff (about 20 s on Slow 4G) became the LCP.
   Clip the top overflow plus 1px; those rows of the product image are transparent up to about
   a 2.3:1 viewport (the product starts 11.7% down the PC image, 42.9% down the SP image). */
.duos-root .hero__product--dark {
  clip-path: inset(calc((100% - 100svh) / 2 + 1px) 0 0 0);
}

.duos-root .hero__product--white,
.duos-root .stage-layer,
.duos-root .showcase {
  opacity: 0;
}

/* First-visit opening (kv-intro.js): a spotlight mask grows down from the top edge while the
   backdrop brightens. The image itself keeps painting, so the LCP element is unchanged. */
.duos-root .hero--kv .hero__bg {
  filter: brightness(var(--kv-light, 1));
}

.duos-root .hero--kv .hero__product--dark {
  -webkit-mask-image: radial-gradient(ellipse 110% var(--kv-spot, 240%) at 50% 0%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 110% var(--kv-spot, 240%) at 50% 0%, #000 55%, transparent 100%);
}

.duos-root .hero__dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.duos-root .hero__copy {
  position: absolute;
  top: 20vh;
  left: var(--page-gutter);
  z-index: var(--layer-media);
  pointer-events: none;
}

.duos-root .hero__category {
  margin-bottom: var(--spacing-14);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
}

.duos-root .hero__heading {
  display: flex;
  flex-direction: column;
  color: var(--color-canvas);
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: var(--weight-display-heading);
  line-height: var(--leading-heading);
}

.duos-root .hero__heading span {
  white-space: nowrap;
}

.duos-root .hero__meta {
  margin-top: var(--spacing-14);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
}

/* The purchase CTA (DESIGN_DUOS §4) on the inverted Hero: the fill is the canvas white. */
.duos-root .hero__copy .hero__cta {
  margin-top: var(--spacing-22);
  border-color: var(--color-canvas);
  background: var(--color-canvas);
  color: var(--color-ink);
  pointer-events: auto;
}

.duos-root .hero__copy .hero__cta:hover {
  background: transparent;
  color: var(--color-canvas);
}

/* Direct routes to the comparison and the colour prices, below the main CTA. */
.duos-root .hero__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--spacing-22);
  margin: var(--spacing-10) 0 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.duos-root .hero__shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-canvas);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.duos-root .hero__shortcut:hover {
  text-decoration-thickness: 2px;
}

.duos-root .hero__scroll {
  position: absolute;
  bottom: var(--spacing-43);
  left: 50%;
  z-index: var(--layer-media);
  width: 1px;
  height: 43px;
  background: var(--color-ink-surface-rule);
}

.duos-root .hero__scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid var(--color-ink-surface-rule);
  border-left: 1px solid var(--color-ink-surface-rule);
  transform: rotate(-45deg);
  transform-origin: bottom left;
}

.duos-root .showcase {
  position: fixed;
  inset: 0;
  z-index: var(--layer-diagram);
  pointer-events: none;
}

.duos-root .showcase__tags {
  position: absolute;
  top: 50%;
  left: var(--page-gutter);
  width: 33.333%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-22);
  transform: translateY(-50%);
}

/* One sentence above the selectors, one step below the KV heading (heading-sm, Display). */
.duos-root .showcase__lead {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-display-heading);
  line-height: var(--leading-heading-sm);
}

.duos-root .showcase__lead br {
  display: none;
}

.duos-root .taglist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-7);
}

.duos-root .tag--asis {
  text-transform: none;
}

.duos-root .tag {
  padding: var(--spacing-6) var(--spacing-16);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-tags);
  background: transparent;
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.duos-root .tag--on {
  background: var(--color-ink);
  color: var(--color-canvas);
}

.duos-root .showcase__hint {
  color: var(--color-graphite);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
}

.duos-root .stage-layer {
  position: fixed;
  inset: 0;
  z-index: var(--layer-stage);
  overflow: hidden;
  visibility: visible;
  pointer-events: none;
}

.duos-root .stage-layer--off {
  visibility: hidden;
}

/* Mobile Safari: keep the 3D layer at the small-viewport height while the toolbars slide away,
   so it stays aligned with the Story placed from the same height (stage-anchor.js). */
@supports (height: 100svh) {
  .duos-root .stage-layer {
    bottom: auto;
    height: var(--duos-svh, 100svh);
  }
}

.duos-root .stage-layer .stage {
  pointer-events: none;
}

.duos-root .stage__viewer {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate(var(--stage-shift, 0%), var(--stage-shift-y, 0%));
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
  background-color: transparent;
  touch-action: pan-y;
  cursor: grab;
  --progress-bar-color: transparent;
  --progress-bar-height: 0px;
  --min-hotspot-opacity: 0.7;
}

.duos-root .stage__viewer:active {
  cursor: grabbing;
}

/* Still image while the selected 3D model is loading or unavailable (stage-layer.js).
   In the Hero pose it is the Hero artwork itself; in the showcase, the selected colour. */
.duos-root .stage__fallback {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.duos-root .stage__fallbackPicture {
  display: contents;
}

.duos-root .stage__fallbackHero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.duos-root .stage__fallbackCutout {
  position: absolute;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.duos-root .stage__fallbackHero,
.duos-root .stage__fallbackCutout {
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.duos-root .stage-layer[data-stage-fallback="hero"] .stage__fallbackHero,
.duos-root .stage-layer[data-stage-fallback="cutout"] .stage__fallbackCutout {
  opacity: 1;
}

.duos-root .stage-layer[data-stage-status="ready"] .stage__fallback,
.duos-root .stage-layer:not([data-stage-status="ready"]) .stage__viewer {
  opacity: 0;
}

.duos-root .stage-hit {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
}

.duos-root .stage-hit:active {
  cursor: grabbing;
}

.duos-root .stage-layer--off .stage-hit {
  pointer-events: none;
}

.duos-root .showcase--on {
  opacity: 1;
}

.duos-root .showcase--on .showcase__tags {
  pointer-events: auto;
}

/* Held over the Story until the stick appears: visible, never operable. */
.duos-root .showcase--passive .showcase__tags {
  pointer-events: none;
}

.duos-root .showcase--passive .showcase__hint {
  visibility: hidden;
}

.duos-root .showcase--hinting .showcase__hint {
  visibility: hidden;
}

/* No rotation guidance over the still image; its status is stated instead. */
.duos-root .showcase--static .showcase__hint {
  display: none;
}

.duos-root .showcase__status {
  margin: 0;
  color: var(--color-graphite);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
}

.duos-root .showcase__status[hidden] {
  display: none;
}

.duos-root .hotspot {
  display: flex;
  align-items: center;
  gap: var(--spacing-7);
  padding: 0;
  border: 0;
  background: none;
  white-space: nowrap;
  cursor: default;
  pointer-events: auto;
  transform: translate(50%, -50%);
}

.duos-root .hotspot__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-tags);
}

.duos-root .hotspot__text {
  position: relative;
  margin-left: 210px;
  color: var(--color-graphite);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
}

.duos-root .hotspot__text::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 203px;
  height: 1px;
  background: var(--color-ink);
}

.duos-root .hotspot__target {
  margin-right: var(--spacing-6);
  color: var(--color-ink);
}

.duos-root .stage__hint {
  position: absolute;
  bottom: 18vh;
  left: 50%;
  z-index: var(--layer-diagram);
  display: flex;
  align-items: center;
  gap: var(--spacing-10);
  transform: translateX(-50%);
  color: var(--color-graphite);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
  pointer-events: none;
  animation: duos-hint-in var(--duration-base) var(--ease-out) both;
}

.duos-root .stage__hintTrack {
  display: block;
  width: 43px;
  height: 1px;
  background: var(--color-ink);
  transform-origin: left center;
  animation: duos-hint-track 2.4s var(--ease-out) infinite;
}

@keyframes duos-hint-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes duos-hint-track {
  0%, 100% { opacity: 0.3; transform: scaleX(0.2); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 767px) {
  .duos-root .hotspot {
    flex-direction: row-reverse;
    transform: translate(-50%, -50%);
  }

  .duos-root .hotspot__text {
    max-width: 104px;
    margin-right: 64px;
    margin-left: 0;
    text-align: right;
    white-space: normal;
    font-size: 11px;
  }

  .duos-root .hotspot__target {
    display: block;
    margin-right: 0;
  }

  .duos-root .hotspot__text::before {
    right: auto;
    left: 100%;
    width: 58px;
  }

  .duos-root .hero {
    min-height: 0;
  }

  .duos-root .hero__frame {
    --product-x-in-frame: 0.66;
    --hero-anchor: 66vw;
    --frame-w: max(100vw, calc(100svh * 1170 / 2532));
    height: max(100svh, calc(100vw * 2532 / 1170));
  }

  .duos-root .hero__copy {
    top: 14vh;
    right: var(--page-gutter);
  }

  .duos-root .hero__heading {
    font-size: min(var(--text-heading), 7.6vw);
  }

  /* One per line in the left column, clear of the product on the right. */
  .duos-root .hero__shortcuts {
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--spacing-6);
  }

  .duos-root .showcase__tags {
    top: auto;
    right: auto;
    bottom: var(--spacing-22);
    left: var(--page-gutter);
    width: calc(48vw - var(--page-gutter));
    gap: var(--spacing-14);
    transform: none;
  }

  .duos-root .showcase__lead {
    font-size: min(var(--text-heading-sm), 6.4vw);
  }

  .duos-root .showcase__lead br {
    display: inline;
  }

  .duos-root .taglist {
    gap: var(--spacing-6);
  }

  .duos-root .tag {
    padding: var(--spacing-6) var(--spacing-10);
  }

  .duos-root .stage__hint {
    display: none;
  }

  .duos-root .showcase--hinting .showcase__hint {
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .duos-root .stage__hintTrack {
    animation: none;
    transform: scaleX(1);
  }
}

/* Two-row navigation needs its own space on the narrowest phones. */
@media (max-width: 374px) {
  .duos-root .hero__copy { top: max(14svh, 108px); }
}

/* Landscape phones use the desktop artwork but must not use desktop type size. */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 600px) {
  .duos-root .hero { min-height: 100svh; }
  .duos-root .hero__copy { top: 100px; width: 45vw; }
  .duos-root .hero__heading { font-size: 30px; }
  .duos-root .hero__heading span { white-space: normal; }
  .duos-root .hero__copy .hero__cta { margin-top: 14px; }
}

/* SP full-screen 3D operation view (stage-layer.js). The stage covers the page, the
   selectors stay at the bottom above it, and every drag in between rotates the model. */
.duos-root .showcase__inspect {
  align-self: flex-start;
  min-height: 44px;
  padding: var(--spacing-10) var(--spacing-16);
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-canvas);
  pointer-events: auto;
}

.duos-root .showcase__inspect[hidden],
.duos-root .stage-inspect__bar[hidden] {
  display: none;
}

html.duos-inspecting,
html.duos-inspecting body {
  overflow: hidden;
  overscroll-behavior: none;
}

.duos-root .stage-layer--inspect {
  bottom: 0;
  height: auto;
  z-index: 1000;
  background: var(--surface-canvas);
  pointer-events: auto;
}

.duos-root .stage-layer--inspect .stage-hit {
  touch-action: none;
}

.duos-root .stage-inspect__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  padding: calc(var(--spacing-10) + env(safe-area-inset-top)) var(--page-gutter-sp) var(--spacing-10);
  pointer-events: auto;
}

.duos-root .stage-inspect__hint {
  margin: 0;
  color: var(--color-graphite);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
}

.duos-root .stage-inspect__close {
  min-height: 44px;
  padding: var(--spacing-10) var(--spacing-22);
  background: var(--color-canvas);
}

.duos-root .showcase--inspect {
  z-index: 1001;
}

/* Only the selectors remain; the lead and the inline guidance belong to the scrolling page. */
.duos-root .showcase--inspect .showcase__tags {
  right: var(--page-gutter-sp);
  bottom: calc(var(--spacing-16) + env(safe-area-inset-bottom));
  width: auto;
}

.duos-root .showcase--inspect .showcase__lead,
.duos-root .showcase--inspect .showcase__hint,
.duos-root .showcase--inspect .showcase__status {
  display: none;
}

/* Before the LCD demo starts, the top bar's hint replaces its guide. */
.duos-root .stage-layer--inspect:not(.stage-layer--demo) .demo-guide {
  display: none;
}

/* LCD demo inside the view: its guide sits under the top bar, clear of the selectors. */
.duos-root .stage-layer--inspect .demo-guide,
.duos-root .stage-layer--inspect.stage-layer--demo .demo-guide {
  top: calc(64px + env(safe-area-inset-top));
  right: var(--page-gutter-sp);
  bottom: auto;
  left: var(--page-gutter-sp);
  width: auto;
}

.duos-root:has(.stage-layer--inspect.stage-layer--demo) .showcase--on .showcase__tags {
  top: auto;
  bottom: calc(var(--spacing-16) + env(safe-area-inset-bottom));
}
