/* ---------- 3D home hero ---------- */
.dps-hero {
    padding: 0 !important; /* template gives every <section> 115px padding */
    position: relative;
    min-height: max(100vh, 680px);
    overflow: hidden;
    background: #070708;
    isolation: isolate;
    display: flex;
    align-items: center;
}
.dps-hero__bg { /* dark studio backdrop shown until (or instead of) the 3D scene */
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 55% 45% at 68% 72%, rgba(215, 0, 6, .22), transparent 70%),
        radial-gradient(ellipse 80% 60% at 70% 40%, #121214 0%, #070708 70%);
    transition: opacity 1.4s ease;
}
.dps-hero__bg::after { /* darken the photo so text stays readable */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7, 7, 8, .92) 0%, rgba(7, 7, 8, .55) 55%, rgba(7, 7, 8, .25) 100%);
}
.dps-hero__canvas {
    position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important;
    opacity: 0; transition: opacity 1.6s ease;
}
.dps-hero.is-3d .dps-hero__canvas { opacity: 1; }
.dps-hero.is-3d .dps-hero__bg { opacity: 0; }
.dps-hero__vignette {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 7, 8, .9) 0%, rgba(7, 7, 8, .45) 38%, transparent 62%),
        linear-gradient(0deg, #070708 0%, transparent 22%),
        radial-gradient(ellipse at 70% 40%, transparent 40%, rgba(0, 0, 0, .45) 100%);
}
.dps-hero__content {
    width: 100%; /* the hero is a flex row: without this the container shrinks to the text and centres it */
    max-width: none; /* full-width banner: headline sits near the left edge on wide screens */
    padding-left: clamp(20px, 4vw, 130px); padding-right: clamp(20px, 4vw, 130px);
    position: relative; z-index: 3; padding-top: 140px; padding-bottom: 90px;
    /* fades and lifts away as the camera dollies in on scroll (set by hero3d.js) */
    opacity: calc(1 - var(--hero-p, 0) * 1.8);
    transform: translateY(calc(var(--hero-p, 0) * -70px));
}
.dps-hero__inner { max-width: 660px; }
.dps-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
    font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: #fff; font-weight: 600;
}
.dps-hero__eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--color-primary, #D70006); }
.dps-hero__title {
    font-size: clamp(34px, 4.1vw, 60px); line-height: 1.06; margin: 0 0 20px; letter-spacing: -.01em; color: #fff;
}
.dps-hero__title span {
    background: linear-gradient(90deg, #ff3b40, #d70006 60%, #8f0004);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dps-hero__lead { max-width: 540px; margin: 0 0 34px; font-size: 17px; line-height: 1.7; color: #bdbdbd; }
.dps-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.dps-hero__ghost {
    display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; font-weight: 600;
    font-size: 14px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .04); transition: border-color .3s, background .3s;
}
.dps-hero__ghost:hover { color: #fff; border-color: var(--color-primary, #D70006); background: rgba(215, 0, 6, .12); }
.dps-hero__ghost i { color: var(--color-primary, #D70006); }
.dps-hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 44px 0 0; padding: 0; list-style: none; }
.dps-hero__stats li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8c8c8c; }
.dps-hero__stats strong { font-family: 'Bai Jamjuree', sans-serif; font-size: 20px; letter-spacing: 0; text-transform: none; color: #fff; }

/* live paint label */
.dps-hero__chip {
    position: absolute; z-index: 3; right: clamp(16px, 6vw, 90px); bottom: 70px;
    display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; min-width: 210px;
    border: 1px solid rgba(255, 255, 255, .14); border-left: 3px solid var(--color-primary, #D70006);
    background: rgba(10, 10, 11, .55); backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease;
}
.dps-hero.is-3d .dps-hero__chip.is-in { opacity: 1; transform: none; }
.dps-hero__chip span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--color-primary, #D70006); font-weight: 600; }
.dps-hero__chip strong { font-family: 'Bai Jamjuree', sans-serif; font-size: 18px; color: #fff; }

.dps-hero__scroll {
    position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: 24px; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.dps-hero__scroll::after {
    content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: var(--color-primary, #D70006); animation: dpsScroll 1.8s ease-in-out infinite;
}
@keyframes dpsScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* entrance animation */
.dps-hero__inner > * { opacity: 0; transform: translateY(26px); animation: dpsRise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.dps-hero__inner > *:nth-child(2) { animation-delay: .12s; }
.dps-hero__inner > *:nth-child(3) { animation-delay: .24s; }
.dps-hero__inner > *:nth-child(4) { animation-delay: .36s; }
.dps-hero__inner > *:nth-child(5) { animation-delay: .48s; }
@keyframes dpsRise { to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
    .dps-hero { align-items: flex-start; min-height: max(100svh, 760px); }
    .dps-hero__content { padding-top: 120px; padding-bottom: 0; }
    .dps-hero__vignette {
        background: linear-gradient(180deg, rgba(7, 7, 8, .92) 0%, rgba(7, 7, 8, .6) 42%, transparent 62%), linear-gradient(0deg, #070708 0%, transparent 18%);
    }
    .dps-hero__lead { font-size: 15px; margin-bottom: 24px; }
    .dps-hero__stats { display: none; }
    .dps-hero__chip { left: 16px; right: auto; bottom: 28px; min-width: 0; }
    .dps-hero__scroll { display: none; }
}
@media (max-width: 575px) {
    .dps-hero__ghost { height: 52px; padding: 0 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .dps-hero__inner > * { animation: none; opacity: 1; transform: none; }
}

/* Line the banner text up with the widened site container on large screens */
@media screen and (min-width: 1400px) {
    .dps-hero__content {
        padding-left: calc((100% - min(1680px, 92%)) / 2 + 12px);
        padding-right: calc((100% - min(1680px, 92%)) / 2 + 12px);
    }
}
