/* Opt-in loader adds this body class only to draft 6353. Native Divi fields
   remain unchanged; this layer fixes only the requested Assemblage layout. */
body.page-id-6353.apc3d-asm-layout-v1 { --apc-asm-orange: #ff7700; }
body.page-id-6353.apc3d-asm-layout-v1 .apc-service { --as-orange: #ff7700; }

/* Three source photos fill the useful row. The separate eight-item gallery
   retains its established four columns and receives no grid override. */
body.page-id-6353.apc3d-asm-layout-v1 .as-inserts-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-inserts-grid > .et_pb_column {
  width: auto !important; min-width: 0; margin: 0 !important;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-inserts-grid .et_pb_image_wrap {
  display: block; width: 100%; overflow: visible;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-inserts-grid .as-gallery-image img {
  display: block; width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; transform: none;
}

/* Five existing symbols and all business text stay in their native Text
   modules. Equal tracks and normal flow remove absolute-position offsets. */
body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px);
  align-items: stretch;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid > .et_pb_column {
  min-width: 0; width: auto !important; padding: 0;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid .et_pb_text {
  height: 100%; padding: 0; text-align: center;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-step .et_pb_text_inner {
  display: grid; grid-template-rows: 24px 80px 3.5em 1fr;
  justify-items: center; align-items: start; gap: 12px; height: 100%;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-step .as-number {
  position: static; width: 24px; height: 24px; padding: 0;
  margin: 0; line-height: 24px; border-radius: 0; background: #ff7700;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-step svg {
  position: static; width: 56px; height: 56px; margin: 12px 0;
  color: #ff7700; transform-origin: center; overflow: visible;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-step h3 {
  padding: 0; margin: 0; width: 100%; overflow-wrap: anywhere;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-step p:not(.as-number) {
  padding: 0; margin: 0; width: 100%;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid > .et_pb_column::after {
  top: 57px; right: calc(clamp(12px, 2vw, 32px) / -2 - 5px); color: #ff7700;
}
/* A finite reveal/single hover pulse, no looping motion or hidden text. */
@keyframes apc-asm-symbol-pulse {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(var(--asm-symbol-angle, 0deg)); }
}
body.page-id-6353.apc3d-asm-layout-v1 .as-process-symbol--analyse { --asm-symbol-angle: -8deg; }
body.page-id-6353.apc3d-asm-layout-v1 .as-process-symbol--preparation { --asm-symbol-angle: 5deg; }
body.page-id-6353.apc3d-asm-layout-v1 .as-process-symbol--assemblage { --asm-symbol-angle: -12deg; }
body.page-id-6353.apc3d-asm-layout-v1 .as-process-symbol--cablage { --asm-symbol-angle: 8deg; }
body.page-id-6353.apc3d-asm-layout-v1 .as-process-symbol--tests { --asm-symbol-angle: -5deg; }
body.page-id-6353.apc3d-asm-layout-v1:not(.apc-asm-motion-paused):not(.apc-asm-static):not(.et-fb)
  .as-process-step:is(.apc-asm-revealed, :hover, :focus-within) svg {
  animation: apc-asm-symbol-pulse 650ms ease-out 1 both;
}

/* Every button, including native PDF/menu/3D controls, stays rectangular and
   orange in all states. Dark text preserves contrast on the requested orange. */
body.page-id-6353.apc3d-asm-layout-v1 :is(.et_pb_button, button, [role="button"], .as-menu .et-menu > li:last-child > a),
body.page-id-6353.apc3d-asm-layout-v1 :is(.et_pb_button, button, [role="button"], .as-menu .et-menu > li:last-child > a):is(:hover, :focus, :focus-visible, :active) {
  background: #ff7700 !important; border-color: #ff7700 !important;
  border-radius: 0 !important; color: #050505 !important;
  text-shadow: none !important; transform: none;
}
body.page-id-6353.apc3d-asm-layout-v1 :is(.et_pb_button, button, [role="button"]):focus-visible {
  outline: 3px solid #fff; outline-offset: 4px;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-cta-band {
  background: #ff7700 !important; border-color: #ff7700 !important; border-radius: 0;
}
body.page-id-6353.apc3d-asm-layout-v1 .as-hero-visual::before {
  background: linear-gradient(transparent, #ff7700 10%, #ff7700 70%, transparent);
  box-shadow: 0 0 12px #ff7700;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__stage { border-radius: 0; }
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__poster,
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__canvas {
  box-sizing: border-box; padding-bottom: 72px; object-fit: contain;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__canvas {
  height: calc(100% - 72px); padding-bottom: 0;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__activate {
  display: inline-flex; align-items: center; justify-content: center;
  left: 50%; bottom: 12px; transform: translateX(-50%) !important;
  min-height: 44px; height: auto; width: max-content; max-width: calc(100% - 24px);
  padding: 12px 18px; box-sizing: border-box;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif !important;
  white-space: normal; text-align: center; overflow-wrap: anywhere;
  border: 1px solid #ff7700; cursor: pointer; touch-action: manipulation;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-model-3d__activate:disabled { cursor: progress; }
@media (max-width: 600px) {
  body.page-id-6353.apc3d-asm-layout-v1 .as-inserts-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step .et_pb_text_inner {
    grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto;
    text-align: left; justify-items: start; align-items: start; gap: 8px 16px;
  }
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step .as-number { grid-column: 1; grid-row: 1; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step svg { grid-column: 1; grid-row: 2; margin: 0; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step h3 { grid-column: 2; grid-row: 1; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step p:not(.as-number) { grid-column: 2; grid-row: 2; }
  body.page-id-6353.apc3d-asm-layout-v1 .as-assembly-process-grid > .et_pb_column::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-6353.apc3d-asm-layout-v1 .as-process-step svg { animation: none !important; transform: none !important; }
}
body.page-id-6353.apc3d-asm-layout-v1:is(.apc-asm-motion-paused, .apc-asm-static, .et-fb) .as-process-step svg {
  animation: none !important; transform: none !important;
}

/* RC6 Assemblage usability R2: seven native photos plus the sole final model
 * stay editable; only gallery tracks, model room and requested control contrast. */
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02 {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column {
  width:auto!important; min-width:0; margin:0!important;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child {
  grid-column:span 2!important;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child .apc3d-native-model-slot {
  width:100%!important; height:auto!important; min-height:clamp(320px,30vw,420px); max-width:none!important;
}
body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child .apc3d-model-3d__stage {
  width:100%!important; max-width:none!important; height:clamp(320px,30vw,420px)!important; aspect-ratio:auto!important;
}
body.page-id-6353.apc3d-asm-layout-v1 #page-container .et_pb_section .et_pb_button.apc3d-rc6-asm-s04-b02,
body.page-id-6353.apc3d-asm-layout-v1 #page-container .et_pb_section .et_pb_button.apc3d-rc6-asm-s04-b02:is(:hover,:focus,:focus-visible,:active) {
  color:#050505!important;
}
body.page-id-6353.apc3d-asm-layout-v1 #page-container .mobile_menu_bar::before,
body.page-id-6353.apc3d-asm-layout-v1 #page-container .mobile_menu_bar:is(:hover,:focus,:focus-visible,:active)::before {
  color:#050505!important;
}
body.page-id-6353.apc3d-asm-layout-v1 #page-container .as-cta-band .et_pb_button,
body.page-id-6353.apc3d-asm-layout-v1 #page-container .as-cta-band .et_pb_button:is(:hover,:focus,:focus-visible,:active) {
  border:2px solid #050505!important; padding:14px 24px!important; font-weight:700!important;
}
@media(max-width:980px) {
  body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02 { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media(max-width:600px) {
  body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02 { grid-template-columns:minmax(0,1fr)!important; }
  body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child { grid-column:span 1!important; }
  body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child .apc3d-native-model-slot { min-height:300px; }
  body.page-id-6353.apc3d-asm-layout-v1 .apc3d-rc6-asm-s06-r02>.et_pb_column:last-child .apc3d-model-3d__stage { height:300px!important; }
}
