/* ==================================================
   Homepage Hero Video — mobile-first, Apple-style type
   Font: SF Pro on Apple devices (most mobile visitors),
   Inter everywhere else. Palette unchanged (orange/dark).
   ================================================== */
:root {
    --hh-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --hh-orange: #ff5e14;
    --hh-orange-light: #ff7c3d;
}

.hh-hero {
    position: relative;
    width: 100%;
    /* svh = real visible height on mobile (excludes browser chrome) */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #101216;
    font-family: var(--hh-font);
}

/* --- Background media (video or poster image) --- */
.hh-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hh-media-fallback {
    background:
        radial-gradient(70% 60% at 80% 10%, rgba(255, 94, 20, 0.25), transparent 60%),
        linear-gradient(135deg, #16181d 0%, #23262d 100%);
}

.hh-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(8, 9, 12, 0.62) 0%,
        rgba(8, 9, 12, 0.38) 45%,
        rgba(8, 9, 12, 0.68) 100%);
}

/* --- Content --- */
.hh-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 130px 22px 90px;
    max-width: 1080px;
    margin: 0 auto;
}

.hh-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}

.hh-heading {
    font-family: var(--hh-font);
    font-weight: 700;
    font-size: clamp(34px, 8.5vw, 76px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.18em 0.28em;
}

.hh-heading-part { display: inline-block; }

/* --- The rotating word pill --- */
.hh-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 0.06em 0.5em 0.1em;
    max-width: 100%;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.hh-dot {
    width: 0.32em;
    height: 0.32em;
    min-width: 0.32em;
    border-radius: 50%;
    background: var(--hh-orange);
    box-shadow: 0 0 14px rgba(255, 94, 20, 0.9);
}

.hh-word {
    display: inline-block;
    color: #fff;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hh-word.hh-word-out {
    opacity: 0;
    transform: translateY(-55%);
}

.hh-word.hh-word-in {
    opacity: 0;
    transform: translateY(55%);
    transition: none;
}

.hh-sub {
    font-family: var(--hh-font);
    font-size: clamp(15px, 2.4vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 0 auto 34px;
}

/* --- Buttons --- */
.hh-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hh-btn {
    font-family: var(--hh-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hh-btn-primary {
    background: var(--hh-orange);
    color: #fff;
}

.hh-btn-primary:hover {
    background: var(--hh-orange-light);
    color: #fff;
    text-decoration: none;
}

.hh-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.hh-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* --- Services strip: subtle auto-scrolling marquee of service names,
   pinned inside the hero itself so it's visible on first load with no
   scrolling required — never pushes .hh-content or gets cut off. --- */
.hh-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.hh-strip-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: hhStripScroll 26s linear infinite;
}

.hh-strip:hover .hh-strip-track { animation-play-state: paused; }

.hh-strip-item {
    font-family: var(--hh-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 0 18px;
}

.hh-strip-dot {
    color: var(--hh-orange);
    font-size: 8px;
    opacity: 0.85;
}

@keyframes hhStripScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hh-strip-track { animation: none; }
}

/* --- Mobile polish ---
   Modern compact mobile scale: ~30px headline, 14px body, slim buttons.
   Prevents the "zoomed-in desktop site" look on phones. */
@media (max-width: 768px) {
    .hh-hero {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .hh-content { padding: 100px 18px 84px; }
    .hh-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 14px; }
    .hh-heading {
        font-size: clamp(24px, 7.4vw, 32px);
        line-height: 1.2;
        letter-spacing: -0.015em;
        gap: 0.14em 0.24em;
        margin-bottom: 16px;
    }
    .hh-pill { max-width: calc(100vw - 36px); }
    .hh-sub {
        font-size: 14px;
        line-height: 1.6;
        max-width: 480px;
        margin-bottom: 24px;
        padding: 0 6px;
    }
    .hh-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; width: 100%; }
    .hh-btn {
        width: auto;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        padding: 11px 20px;
    }
    .hh-strip { bottom: 24px; }
    .hh-strip-item { font-size: 11px; letter-spacing: 1.2px; padding: 0 12px; }
    .hh-strip-track { animation-duration: 20s; }
}

@media (max-width: 380px) {
    .hh-heading { font-size: 22px; }
    .hh-sub { font-size: 13px; }
    .hh-actions { flex-direction: column; }
    .hh-btn { width: auto; min-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-word, .hh-pill { transition: none !important; }
}
