/* Finish showcase: only the inner image layers crossfade. The existing hero
   wrapper keeps ownership of pointer parallax and the entrance animation. */
.surface-hero[data-hero-showcase] {
  min-height: max(700px, calc(100svh - var(--home-header-height, 78px)));
  padding-bottom: 110px;
}
.surface-hero[data-hero-showcase] h1 {
  line-height: 0.92;
  letter-spacing: 0;
  -webkit-text-stroke: 2px var(--paper);
  paint-order: stroke fill;
}
.surface-hero[data-hero-showcase] .headline-line {
  padding-bottom: 0.04em;
  margin-bottom: 0;
  white-space: nowrap;
}
.surface-hero[data-hero-showcase] .hero-metal {
  top: 0;
  right: 0;
  width: 57%;
  height: 65%;
}
.hero-parts-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 933;
  isolation: isolate;
}
.hero-metal .hero-parts-stack > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 780ms var(--ease-in-out);
  filter: drop-shadow(0 24px 22px rgba(21, 25, 30, 0.1));
}
.hero-metal .hero-parts-stack > img.is-active {
  opacity: 1;
}
.surface-hero[data-hero-immediate="true"] .hero-parts-stack > img {
  transition: none;
}
/* The current finish shares the quote row; the selector sits over the footer rule. */
.surface-hero[data-hero-showcase] .surface-hero-actions {
  position: relative;
  width: 100%;
}
.hero-finish-current {
  position: absolute;
  top: 50%;
  right: -100%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}
.hero-finish-current strong {
  font: 700 clamp(54px, 5.5vw, 78px) / .96 var(--display);
  letter-spacing: -.025em;
}
.hero-finish-current [data-hero-tone] {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}
.hero-finish-console {
  position: absolute;
  z-index: 4;
  left: calc(var(--gutter) + 155px);
  right: calc(var(--gutter) + 58px);
  bottom: 56px;
  display: grid;
  grid-template-columns: 84px minmax(0, 650px) 84px;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
  row-gap: 7px;
  border: 0;
  padding: 0;
  background: none;
}
.hero-finish-options {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
}
.hero-finish-options > button {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.hero-finish-label {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  column-gap: 4px;
  min-height: 34px;
  padding: 5px 7px;
}
.hero-finish-progress {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.hero-finish-label--progress {
  position: absolute;
  z-index: 2;
  inset: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.hero-finish-swatch {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(21,25,30,.27);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #c8d0d5 47%, #f5f7f8 70%, #adb7be 100%);

  flex: 0 0 10px;
  margin-right: 2px;
}
.hero-finish-swatch[data-tone="black"] {
  background: linear-gradient(135deg, #454c53, #13191e 65%, #636c73);
}
.hero-finish-option-alloy {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -.025em;
}
.hero-finish-option-tone {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.hero-finish-options > button[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.hero-finish-options > button[aria-pressed="true"] > .hero-finish-label:not(.hero-finish-label--progress) .hero-finish-option-alloy {
  color: var(--blue);
}
.hero-finish-label--progress .hero-finish-option-alloy,
.hero-finish-label--progress .hero-finish-option-tone {
  color: #fff;
}
.hero-finish-label--progress .hero-finish-swatch {
  border-color: rgba(255,255,255,.7);

  flex: 0 0 10px;
  margin-right: 2px;
}
.hero-finish-options > button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.hero-finish-play {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-start;
  gap: 6px;
  min-height: 36px;
  padding: 4px 0 4px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  font-size: 12px;
  cursor: pointer;
}
.hero-finish-play svg {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}
.hero-finish-details {
  grid-column: 2 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  background: var(--paper);
  box-shadow: 0 0 0 6px var(--paper);
}
.hero-finish-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.hero-finish-details [data-hero-view-tools] { min-width: 0; margin-left: auto; }
.surface-hero[data-hero-showcase] .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (hover: hover) and (pointer: fine) {
  .hero-finish-options > button:not([aria-pressed="true"]):hover {
    border-color: var(--navy);
    background: #fff;
  }
  .hero-finish-play:hover { color: var(--blue); }
}

@media (min-width: 1101px) {
  .surface-hero[data-hero-showcase] {
    --hero-content-inset: var(--gutter);
  }
  .surface-hero[data-hero-showcase] .surface-hero-copy {
    width: 50%;
  }
  .surface-hero[data-hero-showcase] h1 {
    max-width: 100%;
    font-size: clamp(110px, 12.7vw, 205px);
  }
  /* Oversized product art sits behind the headline and crops off the right. */
  .surface-hero[data-hero-showcase] .hero-metal {
    top: clamp(0px, calc((100svh - 900px) * 0.24), 80px);
    left: 26%;
    right: auto;
    width: 96%;
    height: auto;
    aspect-ratio: 1400 / 933;
  }
  /* Match every crossfade layer to the same oversized composition. */
  .surface-hero[data-hero-showcase] .hero-metal .metal-entry,
  .surface-hero[data-hero-showcase] .hero-parts-stack {
    height: 100%;
  }
}
@media (min-width: 1101px) and (max-height: 800px) {
  .surface-hero[data-hero-showcase] {
    min-height: 660px;
    padding-top: 24px;
    padding-bottom: 154px;
  }
  .surface-hero[data-hero-showcase] .hero-metal {
    top: 0;
    width: 92%;
    height: auto;
  }
  .surface-hero[data-hero-showcase] h1 {
    font-size: clamp(110px, 15.3svh, 128px);
  }
  .surface-hero[data-hero-showcase] .surface-hero-intro {
    font-size: 18px;
    margin-top: 18px;
  }
  .surface-hero[data-hero-showcase] .surface-hero-actions { margin-top: 22px; }
}
@media (min-width: 1720px) {
  .surface-hero[data-hero-showcase] {
    --hero-content-inset: max(var(--gutter), calc((100% - 1540px) / 2));
  }

}
@media (min-width: 761px) and (max-width: 1100px) {
  .surface-hero[data-hero-showcase] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px 32px;
    min-height: calc(100svh - var(--home-header-height, 72px));
    max-height: none;
    padding: 40px var(--gutter) 25px;
  }
  .surface-hero[data-hero-showcase] .surface-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .surface-hero[data-hero-showcase] h1 {
    max-width: 100%;
    font-size: clamp(92px, 11vw, 122px);
  }
  .surface-hero[data-hero-showcase] .surface-hero-intro {
    font-size: 18px;
    margin-top: 22px;
  }
  .surface-hero[data-hero-showcase] .surface-hero-actions {
    gap: 20px;
  }
  .surface-hero[data-hero-showcase] .surface-hero-actions .button {
    gap: 12px;
    padding-inline: 13px;
    font-size: 12px;
  }
  .surface-hero[data-hero-showcase] .surface-hero-actions .button-line {
    padding-inline: 0;
  }
  .surface-hero[data-hero-showcase] .hero-metal {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    top: auto;
    right: auto;
    width: 176%;
    height: auto;
    margin-left: -41%;
    min-height: 0;
  }
  .hero-finish-console {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 84px;
    column-gap: 12px;
    justify-self: stretch;
  }
  .hero-finish-options { grid-column: 1; }
  .hero-finish-play { grid-column: 2; }
  .hero-finish-details { grid-column: 1 / -1; }
  .hero-finish-current {
    right: calc(-100% - 32px);
    gap: 10px;
  }
  .hero-finish-current strong { font-size: clamp(44px, 5.3vw, 58px); }
  .hero-finish-current [data-hero-tone] { font-size: 16px; padding-left: 10px; }
  .hero-finish-label { padding-inline: 6px; column-gap: 5px; }
  .surface-hero[data-hero-showcase] .hero-scroll {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    inset: auto;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .surface-hero[data-hero-showcase] h1 {
    font-size: clamp(76px, 24vw, 160px);
  }
  .surface-hero[data-hero-showcase] {
    min-height: calc(100svh - var(--home-header-height, 68px));
    max-height: none;
    padding: 28px var(--gutter) 16px;
  }
  .surface-hero[data-hero-showcase] .hero-metal {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    width: calc(134% + 42px);
    height: auto;
    min-height: 0;
    margin: 10px -21px 20px;
    aspect-ratio: 1400 / 933;
  }
  .hero-finish-console {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) 64px;
    column-gap: 10px;
    row-gap: 10px;
  }
  .hero-finish-current {
    position: static;
    grid-column: 1 / -1;
    justify-self: end;
    transform: none;
    min-height: 48px;
    margin-top: 10px;
    gap: 10px;
  }
  .hero-finish-current strong { font-size: clamp(42px, 12vw, 62px); }
  .hero-finish-current [data-hero-tone] { font-size: 16px; padding-left: 10px; }
  .hero-finish-options {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-finish-options > button { min-height: 44px; }
  .hero-finish-label { min-height: 42px; padding: 5px; column-gap: 4px; }
  .hero-finish-option-alloy { font-size: 11px; }
  .hero-finish-option-tone { font-size: 11px; }
  .hero-finish-play {
    grid-column: 2;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px 0;
    font-size: 11px;
  }
  .hero-finish-details {
    grid-column: 1 / -1;
    display: grid;
    gap: 3px;
  }
  .hero-finish-details [data-hero-view-tools] { width: 100%; margin-left: 0; }
  .surface-hero[data-hero-showcase] .hero-scroll {
    position: relative;
    order: 4;
    inset: auto;
    width: 100%;
    margin-top: 16px;
  }
}
@media (max-width: 359px) {
  .hero-finish-options { grid-template-columns: minmax(0, 1fr); }
  .hero-finish-option-alloy { font-size: 11px; }
  .hero-finish-label { padding-inline: 4px; column-gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-metal .hero-parts-stack > img,
  .hero-finish-options > button,
  .hero-finish-play {
    transition: none;
  }
}

.hero-cycle-play {
  display: none;
}
[data-hero-autoplay="false"] .hero-cycle-play {
  display: block;
}
[data-hero-autoplay="false"] .hero-cycle-pause {
  display: none;
}

/* Compact on desktop; preserve a comfortable Play target for touch. */
@media (pointer: coarse) {
  .hero-finish-play {
    min-height: 44px;
  }
}

/* Protect the supporting copy while the headline overlaps the product art. */
@media (min-width: 761px) {
  .surface-hero[data-hero-showcase] .surface-hero-intro {
    width: fit-content;
    background: transparent;
    box-shadow: none;
  }
  .surface-hero[data-hero-showcase] .surface-hero-actions .button-line {
    background: var(--paper);
    box-shadow:
      8px 0 0 var(--paper),
      -8px 0 0 var(--paper);
  }
}

/* The poster holds layout and first paint; reveal only a rendered canvas. */
.hero-parts-stack > .hero-3d-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 250ms var(--ease-in-out);
  pointer-events: none;
  filter: drop-shadow(0 24px 22px rgba(21,25,30,.1));
}
[data-hero-renderer="3d"] .hero-parts-stack > .hero-3d-canvas { opacity: 1; }
[data-hero-renderer="3d"] .hero-metal .hero-parts-stack > img { opacity: 0; transition-duration: 250ms; }
@media (prefers-reduced-motion: reduce) {
  .hero-parts-stack > .hero-3d-canvas { transition: none; }
}

/* Direct manipulation stays behind copy/links and never captures page scroll. */
[data-hero-renderer="3d"] .hero-metal .hero-3d-canvas {
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
[data-hero-renderer="3d"][data-hero-dragging="true"] .hero-3d-canvas { cursor: grabbing; }
[data-hero-renderer="3d"] .surface-hero-copy { pointer-events: none; }
[data-hero-renderer="3d"] .surface-hero-copy > h1,
[data-hero-renderer="3d"] .surface-hero-copy > .surface-hero-intro,
[data-hero-renderer="3d"] .surface-hero-actions a { pointer-events: auto; }
.hero-3d-canvas:focus { outline: none; }
.hero-3d-canvas:focus-visible:not(.is-pointer-focused) { outline: 2px solid var(--blue); outline-offset: -6px; }
.hero-view-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.hero-view-tools button {
  min-height: 28px;
  padding: 4px 0 4px 10px;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero-view-tools button:disabled { opacity: .4; cursor: default; }
.hero-view-tools button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .hero-view-tools button:enabled:hover { color: var(--blue); }
}
@media (pointer: coarse) {
  .hero-view-tools button { min-height: 44px; }
}

/* The quiet view tools share the finish rail's details row. */
.hero-finish-details .hero-view-tools { margin: 0; gap: 18px; }
@media (max-width: 760px) {
  .hero-finish-details .hero-view-tools { justify-content: space-between; }
}

/* Keep the full finish name on one line in both countdown label layers. */
.hero-finish-label { white-space: nowrap; }
.hero-finish-option-tone { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1200px) {
  .hero-finish-label { padding-inline: 4px; column-gap: 3px; }
  .hero-finish-option-alloy, .hero-finish-option-tone { font-size: 11.5px; }
}

@media (pointer: coarse) {
  .hero-finish-options > button { min-height: 44px; }
  .hero-finish-label { min-height: 42px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .hero-finish-label { padding-inline: 4px; column-gap: 4px; }
}
