/* SVG portal and editorial layout; all colors use the existing Cars Space palette. */
.cs-home .cs-hero {
  min-height: max(790px, 100svh);
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  background: radial-gradient(ellipse 78% 60% at 50% 26%, rgba(122, 54, 70, .72), transparent 68%), var(--cs-ink);
}
.cs-home .cs-hero__media { display: none; }
.cs-home .cs-hero__shade,
[dir="ltr"] .cs-home .cs-hero__shade {
  background: linear-gradient(0deg, var(--cs-ink) 0%, transparent 28%),
    radial-gradient(circle at 50% 30%, transparent 14%, rgba(26, 13, 20, .16) 72%);
}
.cs-hero__portal {
  position: absolute;
  z-index: 0;
  top: 6%; left: 50%;
  width: min(1150px, 100vw);
  height: min(540px, 64svh);
  object-fit: contain;
  pointer-events: none;
  transform: translateX(-50%);
  animation: cs-portal-breathe 6s ease-in-out infinite alternate;
}
.cs-hero__brand {
  position: absolute;
  z-index: 1;
  top: clamp(140px, 21svh, 195px);
  left: 50%;
  width: min(520px, 52vw);
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 65px rgba(26, 13, 20, .45), 0 0 40px rgba(217, 169, 93, .2);
  pointer-events: none;
  transform: translateX(-50%);
  animation: cs-brand-in .95s cubic-bezier(.22, 1, .36, 1) both;
}
.cs-hero__brand img { display: block; width: 100%; height: auto; }
.cs-home .cs-hero__inner {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-block: clamp(390px, 55svh, 520px) 32px;
}
.cs-home .cs-hero h1 {
  max-width: 24ch;
  margin-top: 10px;
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  line-height: 1.4;
}
.cs-home .cs-hero h1 span { display: inline; }
.cs-home .cs-hero__lead {
  max-width: 68ch;
  margin-top: 12px;
  font-size: clamp(.85rem, 1.12vw, 1rem);
  line-height: 1.8;
}
.cs-home .cs-hero__actions { justify-content: center; margin-top: 22px; }
.cs-hero__scroll {
  position: relative;
  z-index: 2;
  margin: 0 auto 25px;
  color: #fff;
  text-decoration: none;
  font: 800 .8rem/1 var(--cs-font);
  letter-spacing: .2em;
  transition: color .25s ease, transform .25s ease;
}
.cs-hero__scroll:hover { color: var(--cs-gold-2); transform: translateY(4px); }
.cs-hero__facts-bar { position: relative; z-index: 2; width: 100%; }

/* Subtle portal watermark on service pages, without changing their brand styling. */
.cs-phero::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(48vw, 620px);
  content: "";
  pointer-events: none;
  background: url('/assets/img/global/cs-portal.svg') center / contain no-repeat;
  opacity: .18;
}
.cs-phero__inner { position: relative; z-index: 1; }

@keyframes cs-portal-breathe {
  from { opacity: .84; filter: drop-shadow(0 0 14px rgba(217, 169, 93, .2)); }
  to { opacity: 1; filter: drop-shadow(0 0 32px rgba(217, 169, 93, .45)); }
}
@keyframes cs-brand-in {
  from { opacity: 0; transform: translate(-50%, 25px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 700px) {
  .cs-home .cs-hero { min-height: max(760px, 100svh); }
  .cs-hero__portal { top: 5%; width: 120vw; max-width: none; height: 46svh; }
  .cs-hero__brand { top: clamp(210px, 28svh, 250px); width: min(78vw, 300px); padding: 5px; border-radius: 10px; }
  .cs-home .cs-hero__inner { padding-block: clamp(330px, 45svh, 430px) 30px; }
  .cs-home .cs-hero h1 { max-width: 22ch; font-size: clamp(1.45rem, 6vw, 2.1rem); }
  .cs-home .cs-hero__lead { font-size: .88rem; }
  .cs-home .cs-hero__actions { gap: 8px; }
  .cs-home .cs-hero__actions .cs-btn { min-height: 46px; padding-inline: 16px; font-size: .78rem; }
  .cs-hero__scroll { margin-bottom: 18px; }
  .cs-phero::after { width: 90vw; opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero__portal, .cs-hero__brand { animation: none; }
}
