/* =============================================
   HERO V2 — Editorial · Asymmetric · Cinematic
   Prefix: .hv-* (Hero V2)
   Goal: heavy overlay, breathing typography,
         real platform cards on the right
   ============================================= */

.hv-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #050507;
    isolation: isolate;
    color: white;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.5rem) 0;
    display: grid;
    grid-template-rows: 1fr auto;
}

/* ============= BACKGROUND VIDEO ============= */
.hv-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85;
    transform: scale(1.05);
}

/* ============= OVERLAYS (4 layers) ============= */
.hv-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 1) Main dark — balanced (between v2 heavy and v3 light) */
.hv-overlay-main {
    background:
        radial-gradient(ellipse at 35% 35%,
            rgba(5, 5, 7, 0.35) 0%,
            rgba(5, 5, 7, 0.65) 60%,
            rgba(5, 5, 7, 0.88) 100%),
        linear-gradient(180deg,
            rgba(5, 5, 7, 0.65) 0%,
            rgba(5, 5, 7, 0.45) 35%,
            rgba(5, 5, 7, 0.85) 100%);
    z-index: 1;
}

/* 2) Brand color tint — subtle */
.hv-overlay-tint {
    background:
        radial-gradient(900px 500px at 85% 25%, rgba(255, 75, 34, 0.18), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(99, 102, 241, 0.12), transparent 60%);
    mix-blend-mode: screen;
    z-index: 2;
}

/* 3) Engineering grid lines */
.hv-overlay-grid {
    background-image:
        linear-gradient(90deg,  rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(0deg,   rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 90px 90px;
    z-index: 3;
}

/* 4) Subtle film grain */
.hv-overlay-grain {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.4'/></svg>");
    opacity: 0.25;
    mix-blend-mode: overlay;
    z-index: 4;
}

/* ============= TOP BAR ============= */
.hv-topbar {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.hv-topbar-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hv-topbar-cell:last-child { justify-self: end; }

.hv-topbar-label  { color: rgba(255, 255, 255, 0.35); }
.hv-topbar-value  { color: rgba(255, 255, 255, 0.9); }

.hv-topbar-live {
    justify-self: center;
    padding: 6px 14px;
    border: 1px solid rgba(255, 75, 34, 0.4);
    border-radius: 999px;
    background: rgba(255, 75, 34, 0.08);
}

.hv-topbar-live .hv-topbar-value { color: #ff8552; }

.hv-live-dot {
    width: 7px;
    height: 7px;
    background: #ff4b22;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4b22, 0 0 20px #ff4b22;
    animation: hvPulse 1.4s ease-in-out infinite;
}

@keyframes hvPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.5); }
}

/* ============= EDITION (oversized background text) ============= */
.hv-edition {
    position: absolute;
    bottom: clamp(2rem, 8vh, 8rem);
    left: -2vw;
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

.hv-edition span {
    font-family: var(--font-display);
    font-size: clamp(7rem, 22vw, 22rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.08em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    color: transparent;
    display: block;
}

/* ============= MAIN GRID (asymmetric) ============= */
.hv-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 4rem);
    min-height: calc(100vh - 130px);
}

@media (min-width: 1024px) {
    .hv-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: center;
    }
}

/* ============= LEFT SIDE — typography ============= */
.hv-left {
    max-width: 720px;
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
    margin-top: 0;
    flex-wrap: wrap;
}

.hv-eyebrow-line {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.hv-eyebrow-divider { color: rgba(255, 75, 34, 0.6); }

/* The HUGE title with proper breathing room */
.hv-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    color: white;
}

.hv-title-row {
    display: block;
    margin-bottom: clamp(0.4rem, 1vw, 0.8rem);
}

.hv-title-row-mark {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.hv-title-word {
    display: inline-block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    padding-bottom: 0.15em;
    line-height: 1.05;
}

.hv-title-word-1 {
    color: white;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.hv-title-word-2 {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 300;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    -webkit-text-fill-color: transparent;
}

.hv-title-word-3 {
    background: linear-gradient(120deg, #ffb380 0%, #ff4b22 40%, #ff7a47 70%, #ffd1b3 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 32px rgba(255, 75, 34, 0.4));
    animation: hvTitleShimmer 6s ease-in-out infinite;
    padding-bottom: 0.18em;
    line-height: 1.1;
}

.hv-title-asterisk {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #ff4b22;
    margin-top: 0.5em;
    font-weight: 400;
    animation: hvSpin 12s linear infinite;
}

@keyframes hvTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes hvSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Lead paragraph */
.hv-lead {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.hv-lead-rule {
    flex-shrink: 0;
    width: 3px;
    align-self: stretch;
    background: linear-gradient(180deg, #ff4b22, transparent);
    border-radius: 3px;
    min-height: 60px;
}

/* CTAs */
.hv-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hv-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 999px;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hv-cta:hover { transform: translateY(-2px); }

.hv-cta-primary {
    color: white;
    background: linear-gradient(135deg, #ff4b22, #ff8552);
    padding: 18px 28px 18px 32px;
    box-shadow:
        0 20px 50px -10px rgba(255, 75, 34, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hv-cta-inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.hv-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff8552, #ff4b22);
    opacity: 0;
    transition: opacity 400ms;
}

.hv-cta-primary:hover .hv-cta-bg { opacity: 1; }

.hv-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hv-cta-primary:hover .hv-cta-icon {
    transform: rotate(360deg) translateY(2px);
}

.hv-cta-ghost {
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 17px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hv-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
}

.hv-cta-icon-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

/* Inline stat meta */
.hv-meta {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.hv-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-display);
}

.hv-meta-num {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 900;
    color: white;
    line-height: 1;
}

.hv-meta-sep {
    color: #ff4b22;
    font-size: 1.5rem;
    font-weight: 300;
}

.hv-meta-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============= RIGHT SIDE — Platform deck ============= */
.hv-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.hv-deck-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.hv-deck-counter {
    color: #ff4b22;
}

.hv-deck {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Each card row */
.hv-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--card-color, #ff4b22), transparent);
    opacity: 0;
    transition: opacity 400ms;
    z-index: 0;
    width: 4px;
}

.hv-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 75, 34, 0.3);
    transform: translateX(-6px);
}

[dir="rtl"] .hv-card:hover { transform: translateX(6px); }

.hv-card:hover::before { opacity: 1; }

.hv-card-image {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.hv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms;
}

.hv-card:hover .hv-card-image img {
    transform: scale(1.08);
}

.hv-card-image-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.4));
}

.hv-card-content {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    z-index: 1;
}

.hv-card-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.hv-card-info { min-width: 0; }

.hv-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hv-card-meta span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.6);
}

.hv-card-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 300ms;
}

.hv-card:hover .hv-card-arrow {
    background: #ff4b22;
    border-color: #ff4b22;
    color: white;
    transform: rotate(45deg);
}

.hv-deck-cta {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 300ms;
}

.hv-deck-cta:hover {
    color: #ff8552;
    border-bottom-color: #ff8552;
}

/* ============= BOTTOM MARQUEE ============= */
.hv-marquee {
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.5rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: clamp(2rem, 5vw, 4rem);
}

.hv-marquee-track {
    display: flex;
    width: max-content;
    animation: hvMarqueeScroll 90s linear infinite;
}

.hv-marquee:hover .hv-marquee-track {
    animation-play-state: paused;
}

[dir="rtl"] .hv-marquee-track {
    animation-name: hvMarqueeScrollRtl;
}

.hv-marquee-row {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-inline-end: clamp(1.5rem, 3vw, 2.5rem);
}

.hv-marquee-name {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 200ms;
}

.hv-marquee:hover .hv-marquee-name {
    color: rgba(255, 255, 255, 0.7);
}

.hv-marquee-dot {
    color: #ff4b22;
    font-size: 0.6em;
}

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

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

/* ============= SCROLL CUE ============= */
.hv-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(5rem, 10vh, 7rem);
    transform: translateX(-50%);
    z-index: 11;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 300ms;
}

.hv-scroll:hover { color: #ff8552; }

.hv-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    position: relative;
    overflow: hidden;
}

.hv-scroll-line::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 1px;
    height: 12px;
    background: #ff4b22;
    box-shadow: 0 0 8px #ff4b22;
    animation: hvScrollDot 2s ease-in-out infinite;
}

@keyframes hvScrollDot {
    0%, 100% { top: -10px; }
    50%      { top: 48px; }
}

/* ============= RESPONSIVE TWEAKS ============= */
@media (max-width: 768px) {
    .hv-hero { padding: 1.2rem; }
    .hv-topbar { grid-template-columns: 1fr 1fr; }
    .hv-topbar-cell:nth-child(3) { display: none; }
    .hv-topbar-live { justify-self: end; }
    .hv-edition { display: none; }
    .hv-scroll  { display: none; }
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
    .hv-bg-video, .hv-marquee-track, .hv-live-dot,
    .hv-title-word-3, .hv-title-asterisk, .hv-scroll-line::after {
        animation: none !important;
    }
}

/* ============= SERVICES PANEL (Hero v3) ============= */

/* Primary services — 2 big cards */
.hv-services-primary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hv-service-primary {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.hv-service-primary::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 3px;
    background: var(--svc-color, #ff4b22);
    opacity: 0.7;
    transition: width 400ms, opacity 400ms;
}

.hv-service-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--svc-color, #ff4b22), transparent 60%);
    opacity: 0;
    transition: opacity 400ms;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hv-service-primary:hover {
    border-color: color-mix(in srgb, var(--svc-color, #ff4b22) 40%, transparent);
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--svc-color, #ff4b22) 35%, transparent);
}

.hv-service-primary:hover::before { width: 5px; opacity: 1; }
.hv-service-primary:hover::after  { opacity: 0.15; }

.hv-service-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--svc-color, #ff4b22);
    align-self: start;
    margin-top: 4px;
    min-width: 22px;
}

.hv-service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--svc-color, #ff4b22) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--svc-color, #ff4b22) 25%, transparent);
    border-radius: 12px;
    color: var(--svc-color, #ff4b22);
    flex-shrink: 0;
    align-self: start;
}

.hv-service-body {
    min-width: 0;
}

.hv-service-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
    line-height: 1.2;
}

.hv-service-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0 0 10px;
    font-weight: 400;
}

.hv-service-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.hv-service-stat-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--svc-color, #ff4b22);
}

.hv-service-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.hv-service-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 300ms;
    align-self: start;
    flex-shrink: 0;
    margin-top: 2px;
}

.hv-service-primary:hover .hv-service-arrow {
    background: var(--svc-color, #ff4b22);
    border-color: var(--svc-color, #ff4b22);
    color: white;
    transform: rotate(45deg);
}

/* Secondary services — chip row */
.hv-services-secondary {
    margin-top: 6px;
}

.hv-services-secondary-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 12px;
    padding-inline-start: 4px;
}

.hv-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 480px) {
    .hv-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.hv-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 250ms;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-service-chip i {
    color: rgba(255, 75, 34, 0.8);
    flex-shrink: 0;
}

.hv-service-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 75, 34, 0.3);
    color: white;
    transform: translateY(-1px);
}

.hv-service-chip:hover i { color: #ff8552; }

/* ============= V4: equal service cards grid ============= */
.hv-services-grid-v4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

@media (min-width: 540px) {
    .hv-services-grid-v4 { grid-template-columns: 1fr 1fr; }
}

.hv-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
    background: linear-gradient(160deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    min-height: 160px;
}

/* Side accent rail per service */
.hv-service-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: 0;
    width: 3px;
    background: var(--svc-color, #ff4b22);
    opacity: 0.65;
    transition: width 300ms, opacity 300ms;
}

/* Glow on hover */
.hv-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--svc-color, #ff4b22), transparent 65%);
    opacity: 0;
    transition: opacity 350ms;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hv-service-card:hover {
    border-color: color-mix(in srgb, var(--svc-color, #ff4b22) 45%, transparent);
    background: linear-gradient(160deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--svc-color, #ff4b22) 35%, transparent);
}

.hv-service-card:hover::before { width: 5px; opacity: 1; }
.hv-service-card:hover::after  { opacity: 0.18; }

.hv-service-card-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 16px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--svc-color, #ff4b22);
    opacity: 0.85;
}

.hv-service-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--svc-color, #ff4b22) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--svc-color, #ff4b22) 28%, transparent);
    border-radius: 10px;
    color: var(--svc-color, #ff4b22);
}

.hv-service-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin: 4px 0 0;
    line-height: 1.25;
}

.hv-service-card-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* ============= V4: Logo marquee (continuous, no pause) ============= */
.hv-marquee {
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.2rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Override v2 row gaps + pause */
.hv-marquee:hover .hv-marquee-track {
    animation-play-state: running !important;
}

.hv-marquee-row {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2rem);
    padding-inline-end: clamp(1.25rem, 2vw, 2rem);
}

.hv-marquee-logo {
    flex-shrink: 0;
    width: clamp(64px, 5vw, 78px);
    height: clamp(64px, 5vw, 78px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 300ms, box-shadow 300ms;
    overflow: hidden;
}

.hv-marquee-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 75, 34, 0.4);
}

.hv-marquee-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hv-marquee-logo { width: 56px; height: 56px; padding: 5px; }
}

/* Faster marquee so it feels alive */
.hv-marquee-track {
    animation-duration: 48s !important;
}
