/* Main homepage atmosphere, scoped to the approved showroom scene. */
.hd-atmosphere {
  position: relative;
  isolation: isolate;
  background: var(--hd-bg, #080d10);
  overflow: clip;
}
.hd-atmosphere-scene {
  position: relative; width: 100%; aspect-ratio: 1672 / 941; overflow: hidden;
  /* The same soft perimeter blends the still and its canvas together. */
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 98.5%, transparent),
    linear-gradient(to bottom, transparent, #000 min(1.4vw, 28px), #000 calc(100% - min(3vw, 64px)), transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.hd .hd-atmosphere-image {
  position: absolute; left: 0; bottom: 0;
  display: block; width: 100%; height: auto; max-width: none;
  aspect-ratio: 1672 / 941; object-fit: contain;
  transform: none; filter: none;
}
.hd-atmosphere-canvas {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1672 / 941;
  pointer-events: none; mix-blend-mode: screen;
}
.hd .hd-atmosphere-image, .hd-atmosphere-canvas {
  /* Also feather source-image boundaries when a tall viewport reveals the full still. */
  mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent);
}
.hd-atmosphere-copy {
  position: absolute; z-index: 2; left: 5%; top: 26px;
  width: min(34%, 470px);
}
.hd-atmosphere-copy .hd-eyebrow { font-size: 12.5px; letter-spacing: .22em; margin: 0 0 14px; }
.hd .hd-atmosphere-copy h1 {
  font-family: Georgia, serif; font-size: clamp(50px, 4.75vw, 80px);
  line-height: .98; letter-spacing: -.035em; margin: 0 0 12px;
}
.hd .hd-atmosphere-copy h1 span { color: var(--hd-accent); }
.hd-atmosphere-description { font-size: 17.5px; line-height: 1.45; color: #e0e8e7; margin: 0 0 16px; max-width: 350px; }
.hd-atmosphere-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.hd-atmosphere-actions .hd-button { min-height: 48px; padding: 12px 16px; font-size: 15px; }
.hd-atmosphere-actions .hd-text-link { min-height: 44px; font-size: 15px; gap: 6px; }
.hd-atmosphere-controls { position: absolute; z-index: 3; right: 24px; bottom: 20px; }
.hd-atmosphere-toggle, .hd-atmosphere-static {
  min-height: 44px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #738584; background: #081012ee; color: #eef8f6; font-size: 12px;
}
.hd .hd-atmosphere-toggle { font-size: 12px; }
.hd-atmosphere-toggle:hover { background: #142b2b; border-color: #46d3c8; }
.hd-atmosphere-toggle:focus-visible { outline: 3px solid #46d3c8; outline-offset: 4px; }
@media (min-width: 901px) {
  /* Full browser width; consume the available viewport beneath the actual header.
     Very short/ultrawide windows retain enough height to protect every vehicle. */
  .hd-atmosphere-scene { aspect-ratio: auto; height: var(--hd-hero-available, calc(100svh - 160px)); min-height: 40vw; }
  .hd .hd-atmosphere-image, .hd-atmosphere-canvas {
    width: 85%; left: 7.5%; top: var(--hd-hero-image-top, 0px); bottom: auto;
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 98.5%, transparent),
      linear-gradient(to bottom, transparent, #000 3%, #000 94%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
  }
}
@media (min-width: 1151px) {
  .hd-atmosphere-copy { top: 22px; width: min(64%, 800px); }
  .hd .hd-atmosphere-copy h1 { font-size: clamp(50px, 3.4375vw, 67.5px); white-space: nowrap; margin-bottom: 9px; }
  .hd-atmosphere-copy h1 br { display: none; }
  .hd-atmosphere-copy .hd-eyebrow { margin-bottom: 9px; }
  .hd-atmosphere-description { font-size: 16.25px; line-height: 1.45; max-width: 600px; margin-bottom: 10px; }
  .hd-atmosphere-actions .hd-button { min-height: 44px; padding: 10px 14px; }
  .hd-atmosphere-controls { top: 22px; bottom: auto; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .hd-atmosphere-copy { top: 22px; width: 34%; }
  .hd-atmosphere-copy .hd-eyebrow { font-size: 11.25px; margin-bottom: 10px; }
  .hd .hd-atmosphere-copy h1 { font-size: 50px; }
  .hd-atmosphere-description { font-size: 15px; margin-bottom: 10px; }
  .hd-atmosphere-actions { gap: 2px 12px; }
  .hd-atmosphere-actions .hd-button { padding: 10px 12px; min-height: 44px; gap: 12px; }
}
@media (max-width: 900px) {
  /* Full source width is retained. Extra copy space is ABOVE the scene, never a car crop. */
  .hd-atmosphere { display: flex; flex-direction: column; }
  .hd-atmosphere-copy { position: relative; order: -1; top: auto; left: 6%; width: 88%; margin: 22px 0 12px; }
  .hd-atmosphere-copy .hd-eyebrow { font-size: 11.25px; margin-bottom: 12px; }
  .hd .hd-atmosphere-copy h1 { font-size: 52.5px; margin-bottom: 10px; }
  .hd-atmosphere-description { font-size: 15px; margin-bottom: 10px; max-width: 360px; }
  .hd-atmosphere-actions { gap: 8px 16px; }
  .hd-atmosphere-actions .hd-button { min-height: 44px; padding: 10px 12px; gap: 12px; }
  .hd-atmosphere-actions .hd-text-link { font-size: 13.75px; }
  .hd-atmosphere-scene::before {
    content: ''; position: absolute; z-index: 1; inset: 0 0 auto; height: 24px;
    background: linear-gradient(#080d10, transparent); pointer-events: none;
  }
  .hd-atmosphere-controls { right: 12px; bottom: 10px; }
  .hd-atmosphere-toggle, .hd-atmosphere-static { padding: 9px 11px; }
}
@media (max-width: 360px) {
  .hd-atmosphere-actions { gap: 0; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-atmosphere-canvas { display: none; }
}
