


body {
  margin: 0;              
  overflow-x: hidden;     
}






#hero-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 200000; 
}


#hero-overlay.hero-overlay--open {
  pointer-events: auto;
  opacity: 1;
}


.hero-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}


.hero-overlay__panel {
  position: relative;
  max-width: 480px;
  margin: 0 16px;
  padding: 28px 28px 24px;
  border-radius: 4px;
  background: #f5ead6;
  color: #2a1208;
  border: 2px solid #2a1208;
  outline: 4px solid #b8922a;
  outline-offset: -6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}


.hero-overlay__image-band {
  margin: -28px -28px 0;       
  border-radius: 4px 4px 0 0;  
  overflow: hidden;
}

.hero-overlay__yard-img {
  width: 100%;
  height: auto;
  display: block;
}


.hero-overlay__rule {
  height: 1px;
  background: #b8922a;
  margin: 14px 0;
}


.hero-overlay__cta-preview {
  display: none;
  justify-content: center;
}


.hero-overlay__bottom-rule {
  display: none;
  margin: 8px -18px -2px;  
  height: 8px;
  background: #b8922a;
}

.hero-overlay__cta-card {
  width: 120px;
  max-width: 40vw;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}


.hero-overlay__body {
  margin: 0 0 20px;
}

.hero-overlay__body p {
  margin: 0 0 6px;
  font-family: "PragRoman", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #2a1208;
}

.hero-overlay__body p:last-child {
  margin-bottom: 0;
  margin-top: 12px; 
  font-style: italic;
}


.hero-overlay__actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}


#hero-overlay-start {
  padding: 9px 28px;
  border-radius: 999px;
  border: 2px solid #2a1208;
  background: #b8922a;
  color: #2a1208;
  font-family: "Windlass", "PragRoman", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

#hero-overlay-start:hover {
  background: #9a7820;
}


body.hero-overlay-open {
  overflow: hidden;
}




@media (max-width: 600px) {
  #hero-overlay {
    z-index: 2000000;
  }
  .hero-overlay__bottom-rule {
    display: block;
  }
  .hero-overlay__actions {
    justify-content: center;
  }
}


.hero-overlay__image-aside {
  display: none;
  border: 2px solid #2a1208;
  outline: 4px solid #b8922a;
  outline-offset: -6px;
  border-radius: 4px;
  overflow: hidden;
}

.hero-overlay__image-aside .hero-overlay__yard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 600px) and (orientation: portrait) {
  #hero-overlay {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-overlay__panel {
    margin: 0;
    padding: 20px 18px 0;
    border-radius: 4px 4px 0 0;
  }
  
  .hero-overlay__image-band {
    margin: -20px -18px 0;
  }
  .hero-overlay__body p {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }
  #hero-overlay-start {
    padding: 8px 22px;
  }
  .hero-overlay__cta-preview {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    margin: 0;
    padding: 16px 0;
  }
}


@media (min-width: 601px) and (max-width: 1200px) and (orientation: portrait) {
  #hero-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 5px 5px 0;  
  }
  .hero-overlay__panel {
    margin: 0;
    max-width: 90vw;
    width: 100%;
    padding: 28px 28px 0;
    border-radius: 4px 4px 0 0;
  }
  
  .hero-overlay__image-band {
    flex-shrink: 0;
  }
  .hero-overlay__yard-img {
    height: auto;                 
  }
  .hero-overlay__bottom-rule {
    display: block;
    margin: 8px -28px -2px;  
  }
  .hero-overlay__body p {
    font-size: 1.7rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  .hero-overlay__cta-preview {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    margin: 0;
    padding: 16px 0;
  }
}




@media (orientation: landscape) {
  #hero-overlay {
    flex-direction: row;
    align-items: center;        
    justify-content: center;    
    padding: 0;
    gap: clamp(8px, 2vw, 32px); 
  }
  .hero-overlay__panel {
    margin: 0;
    padding: 8px 16px 0;        
    border-radius: 4px;         
    flex-shrink: 0;
    max-height: 100dvh;         
    overflow: hidden;           
    
  }
  
  .hero-overlay__image-band {
    display: none;
  }
  
  .hero-overlay__rule--top {
    display: none;
  }
  
  .hero-overlay__rule {
    margin: 6px 0;
  }
  
  .hero-overlay__bottom-rule {
    display: block;
    margin: 4px -16px -2px;     
  }
  
  .hero-overlay__image-aside {
    display: flex;
    align-self: center;
    flex: 0 1 auto;
    height: min-content;        
    max-height: 100dvh;
    min-height: 0;
    overflow: visible;
    border: none;               
    outline: none;
    border-radius: 0;
    position: relative;
    z-index: 1;
  }
  
  .hero-overlay__image-aside .hero-overlay__yard-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, calc(100dvh * 1.9638));
    max-height: 100dvh;
    object-fit: contain;
  }
  .hero-overlay__body {
    margin: 0;
  }
  .hero-overlay__body p:last-child {
    margin-top: 6px;
  }
  
  .hero-overlay__cta-preview {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    margin: 0;
    padding: 16px 0;
  }
}


@media (orientation: landscape) {
  .hero-overlay__panel {
    width: clamp(360px, 36vw, 560px);
    max-width: none;      
  }
  .hero-overlay__body p {
    font-size: clamp(14px, 0.9vw + 6px, 18px);
    line-height: clamp(1.3, 1.45, 1.55);
    margin-bottom: clamp(2px, 0.5vw, 8px);
  }
  .hero-overlay__actions {
    margin-top: clamp(6px, 0.8vw, 10px);
  }
  #hero-overlay-start {
    padding: clamp(6px, 0.4vw + 2px, 8px) clamp(18px, 1.5vw, 22px);
    font-size: clamp(0.8rem, 0.6vw + 0.4rem, 1rem);
  }
  .hero-overlay__image-aside {
    
    margin: 0 clamp(0px, 1vw, 16px) 0 8px;
  }
}





#pre-deal-loader {
  position: absolute;
  inset: 0;
  display: none;            
  z-index: 500;             
  pointer-events: none;
  background: #000;
}


#pre-deal-compass {
  position: absolute;
  inset: 0;
  display: none;            
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 400;             
  pointer-events: none;
}


html.ss-fresh-deal #pre-deal-compass {
  display: flex;
}


#stage.pre-deal-done #pre-deal-compass {
  opacity: 0;
  transition: opacity 0.8s ease;
}


#stage.pre-deal-hidden #pre-deal-compass {
  display: none;
}


#pre-deal-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.75;
}


#pre-deal-rose {
  position: relative;
  z-index: 2;
  width: min(38vmin, 320px);
  height: min(38vmin, 320px);
  object-fit: contain;
  animation: rose-spin 8s linear infinite;
  opacity: 0.90;
}


#pre-deal-text {
  position: relative;
  z-index: 2;
  margin: 1.2em 0 0;
  font-family: "Windlass", "PragRoman", system-ui, sans-serif;
  font-size: clamp(0.85rem, 2.5vmin, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a96e;
  opacity: 0.88;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}


@keyframes rose-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}


@media (prefers-reduced-motion: reduce) {
  #pre-deal-rose {
    animation: none;
  }
}
