/* Scroll-driven product study. The track is tall; the frame stays pinned while it plays out.
   Uses the site's own palette: white, --fog panels, --ink text and the cobalt accent. */
.hero-discover { display: inline-flex; align-items: center; gap: 10px; padding: 8px 5px; margin-left: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.discover-icon { position: relative; display: grid; place-items: center; height: 34px; width: 34px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; color: #fff; transition: background .25s, border-color .25s, color .25s; }
.discover-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The play triangle is filled and nudged right so it looks centred in the circle. */
.hero-film .discover-icon svg { fill: currentColor; stroke: none; margin-left: 2px; }
.hero-discover:hover .discover-icon { background: #fff; border-color: #fff; color: var(--ink); }
.product-studio { padding: clamp(56px, 7vw, 92px) 0 clamp(56px, 7vw, 92px); background: #fff; }
.studio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 8px; }
.studio-heading .h2 { max-width: 640px; }
.studio-heading > p { max-width: 360px; margin: 0 0 4px; color: var(--mute); font-size: 16px; line-height: 1.65; }

.studio-track { position: relative; height: calc(var(--studio-count, 2) * 170vh); }
.studio-sticky { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); display: flex; flex-direction: column; padding: 24px 0 20px; }
/* site-motion.css shrinks the header to 72px once the page scrolls; the scene follows it. */
html.site-header-compact .studio-sticky { top: 72px; height: calc(100vh - 72px); height: calc(100svh - 72px); }
.studio-frame { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); }

.studio-copies { position: relative; min-height: 0; }
.studio-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
/* Only the first product shows until product-studio.js takes over the crossfades. */
.studio-copy ~ .studio-copy, .stage-product ~ .stage-product { opacity: 0; visibility: hidden; }
.studio-copy h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.studio-description { margin: 0 0 26px; max-width: 38ch; color: var(--mute); font-size: 16px; line-height: 1.7; }
.layer-steps { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 380px; border-top: 1px solid var(--line); }
.layer-steps li { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #9aa2ab; transition: color .4s; }
.layer-steps li span { flex: none; width: 22px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; transition: color .4s; }
.layer-steps b { font-weight: 600; font-size: 15.5px; }
.layer-steps li.is-active { color: var(--ink); }
.layer-steps li.is-active span { color: var(--accent); }
.studio-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.studio-link .ic { width: 16px; height: 16px; transition: transform .3s; }
.studio-link:hover .ic { transform: translateX(4px); }

.product-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--fog); }
.stage-product { --morph: 0; position: absolute; inset: 0; }
/* The photograph gives way to the model: it fades and grows slightly as the 3D view fades in.
   Opacity and transform only, so each scroll frame stays cheap to paint. */
/* Every photograph is a cut-out with a transparent background (assets/img/*.webp). */
.product-photograph { position: absolute; left: 8%; right: 8%; top: 7%; bottom: 7%; opacity: calc(1 - var(--morph)); transform: scale(calc(1 + var(--morph) * .06)); will-change: opacity, transform; }
.product-photograph img { width: 100%; height: 100%; object-fit: contain; }
/* One canvas shared by every product; product-studio.js sets its opacity. */
.stage-model { position: absolute; inset: 0; opacity: 0; }
.stage-model .model-canvas { display: block; width: 100%; height: 100%; }
.models-failed .stage-model { display: none; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; }
.layer-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; transition: opacity .25s; font-size: 13px; font-weight: 600; color: var(--ink); }
.layer-label > span { padding: 2px 8px; background: rgba(255, 255, 255, .9); }
.layer-label::before { content: ""; width: 28px; height: 1px; background: var(--ink); opacity: .45; }
.layer-label.is-left { flex-direction: row-reverse; }
.layer-label b { padding: 2px 6px; background: var(--accent); font-family: var(--display); font-size: 12px; color: #fff; }

.studio-bar { flex: none; width: 100%; display: flex; align-items: center; gap: 28px; padding-top: 18px; }
.studio-tabs { display: flex; gap: 18px; }
.studio-tabs button { position: relative; padding: 6px 0; border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #9aa2ab; transition: color .3s; }
.studio-tabs button:hover, .studio-tabs button[aria-current="true"] { color: var(--ink); }
.studio-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.studio-tabs button[aria-current="true"]::after { transform: scaleX(1); }
.studio-progress-bar { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.studio-progress-bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--studio-progress, 0)); transform-origin: left; }
.studio-skip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: color .3s, opacity .3s, visibility .3s; }
.studio-skip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.studio-skip:hover { color: var(--accent); }
.studio-skip:hover svg { transform: translateY(3px); }
/* Nothing left to skip once the last product is on screen. */
.is-ending .studio-skip { opacity: 0; visibility: hidden; }
.studio-footnote { margin: 14px 0 0; color: var(--mute); font-size: 13px; }
.product-studio :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px), (max-height: 560px) {
  .studio-track { height: calc(var(--studio-count, 2) * 150vh); }
  .studio-sticky { padding: 12px 0 14px; }
  .studio-frame { display: flex; flex-direction: column; gap: 14px; }
  .studio-copies { flex: none; height: 126px; }
  .studio-copy { justify-content: flex-start; }
  .studio-copy .kicker { margin-bottom: 4px; }
  .studio-copy h3 { font-size: 24px; margin-bottom: 10px; }
  .studio-description, .studio-link { display: none; }
  .layer-steps { display: flex; gap: 10px; max-width: none; border: 0; }
  .layer-steps li { flex: 1; flex-direction: column; gap: 2px; padding: 8px 0 0; border-bottom: 0; border-top: 2px solid var(--line); transition: color .4s, border-color .4s; }
  .layer-steps li.is-active { border-top-color: var(--accent); }
  .layer-steps b { font-size: 12.5px; line-height: 1.3; }
  .product-stage { flex: 1; }
  .studio-bar { padding-top: 12px; gap: 16px; }
  .studio-tabs { gap: 12px; }
  .studio-tabs button { font-size: 13px; }
  .studio-skip { font-size: 13px; }
}
@media (max-width: 760px) {
  .studio-heading { display: block; }
  .studio-heading > p { margin-top: 14px; font-size: 15px; }
}
@media (max-width: 430px) {
  .hero-discover { margin: 2px 0 0; }
  .layer-label span { display: none; }
  .layer-label::before { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer-steps li, .layer-steps li span, .layer-label { transition: none; }
}
