/* Premium home hero — editorial layout + per-slide photography */
:root {
    --hh-accent: #ca3200;
    --hh-accent-soft: rgba(202, 50, 0, 0.45);
    --hh-bg: #050506;
    --hh-elevated: rgba(12, 12, 14, 0.72);
    --hh-text: #f5f5f7;
    --hh-muted: #86868b;
    --hh-line: rgba(255, 255, 255, 0.09);
    --hh-font-display: "Outfit", "Rubik", system-ui, sans-serif;
}

.home-hero-section {
    position: relative;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
    background: var(--hh-bg);
    color: var(--hh-text);
}

/* Film grain */
.home-hero-noise {
    position: absolute;
    inset: -20%;
    opacity: 0.038;
    pointer-events: none;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Sits behind swiper — black + warm orange glow (no cool blues) */
.home-hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(202, 50, 0, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 100%, rgba(60, 18, 8, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(90, 25, 10, 0.12) 0%, transparent 45%);
}

.home-hero-shell {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Top bar */
.home-hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-top: clamp(1rem, 2.5vw, 1.5rem);
    padding-bottom: 0.5rem;
    pointer-events: none;
}

.home-hero-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hh-line);
    padding-bottom: 1rem;
}

.home-hero-brand {
    font-family: var(--hh-font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 245, 247, 0.88);
}

.home-hero-counter {
    font-family: var(--hh-font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--hh-muted);
}

.home-hero-current {
    color: var(--hh-text);
    font-weight: 600;
}

.home-hero-counter-sep {
    margin: 0 0.2em;
    opacity: 0.45;
}

/* Swiper above section vignette */
.home-hero-swiper {
    width: 100%;
    position: relative;
    z-index: 2;
}

.home-hero-swiper .swiper-slide {
    height: auto;
}

/* Base slide — fallback only; use --intro / --dev / --motion / --growth for photos */
.home-hero-slide {
    position: relative;
    min-height: min(92vh, 760px);
    padding: clamp(5.5rem, 10vw, 7rem) 0 clamp(6.75rem, 12vw, 8.5rem);
    display: flex;
    align-items: center;
    background-color: var(--hh-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* layers: top = scrims, bottom = photo */
    background-image:
        linear-gradient(180deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.82) 100%),
        linear-gradient(135deg, #080809 0%, #0a0a0c 100%);
}

/*
 * Slide BGs: dark photography + stacked orange/red scrims (theme #ca3200).
 * Order = top → bottom (first gradient paints over image).
 */
.home-hero-slide--intro,
.home-hero-slide--dev,
.home-hero-slide--motion,
.home-hero-slide--growth,
.home-hero-slide--design {
    box-shadow: inset 0 0 200px rgba(8, 3, 2, 0.75), inset 0 -100px 140px rgba(40, 12, 6, 0.45);
}

/* Slide 1 — digital globe / network (user-selected Unsplash) */
.home-hero-slide--intro {
    background-image:
        linear-gradient(115deg, rgba(4, 2, 2, 0.96) 0%, rgba(18, 6, 3, 0.45) 38%, rgba(6, 3, 2, 0.92) 100%),
        radial-gradient(ellipse 95% 75% at 88% 18%, rgba(202, 50, 0, 0.42) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 12% 88%, rgba(120, 30, 10, 0.22) 0%, transparent 50%),
        url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80&ixlib=rb-4.1.0");
    background-position: center, center, center, center 42%;
}

/* Slide 2 — orange / amber tech grid */
.home-hero-slide--dev {
    background-image: linear-gradient(105deg, rgba(5, 2, 2, 0.95) 0%, rgba(25, 8, 4, 0.42) 46%, rgba(5, 4, 3, 0.93) 100%), radial-gradient(ellipse 85% 70% at 100% 75%, rgba(202, 50, 0, 0.38) 0%, transparent 48%), radial-gradient(ellipse 50% 40% at 0% 20%, rgba(90, 22, 8, 0.2) 0%, transparent 45%), url("https://images.unsplash.com/photo-1678690832871-8b9993c76aa8?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-position: center, center, center, center;
}

/* Slide 3 — Motion & story (user-selected Unsplash) */
.home-hero-slide--motion {
    background-image:
        linear-gradient(100deg, rgba(6, 2, 3, 0.96) 0%, rgba(35, 6, 8, 0.48) 44%, rgba(5, 3, 3, 0.94) 100%),
        radial-gradient(ellipse 75% 55% at 50% 115%, rgba(202, 40, 20, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 80% 10%, rgba(120, 20, 15, 0.25) 0%, transparent 50%),
        url("https://images.unsplash.com/photo-1762441112136-4dfc6edf58e8?auto=format&fit=crop&w=1920&q=80&ixlib=rb-4.1.0");
    background-position: center, center, center, center 40%;
}

/* Slide 4 — Growth */
.home-hero-slide--growth {
    background-image:
        linear-gradient(110deg, rgba(5, 3, 2, 0.95) 0%, rgba(20, 8, 4, 0.5) 38%, rgba(5, 4, 3, 0.93) 100%),
        radial-gradient(ellipse 100% 85% at 0% 45%, rgba(202, 50, 0, 0.32) 0%, transparent 52%),
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(80, 22, 10, 0.22) 0%, transparent 48%),
        url("https://images.unsplash.com/photo-1666875753105-c63a6f3bdc86?auto=format&fit=crop&w=1920&q=80&ixlib=rb-4.1.0");
    background-position: center, center, center, center;
}

/* Slide 5 — Visual craft (graphic / illustration / vector / digitizing) */
.home-hero-slide--design {
    background-image:
        linear-gradient(105deg, rgba(5, 3, 2, 0.95) 0%, rgba(22, 10, 6, 0.46) 40%, rgba(5, 4, 3, 0.93) 100%),
        radial-gradient(ellipse 92% 72% at 88% 22%, rgba(202, 50, 0, 0.36) 0%, transparent 50%),
        radial-gradient(ellipse 58% 48% at 12% 82%, rgba(110, 40, 18, 0.22) 0%, transparent 48%),
        url("https://images.unsplash.com/photo-1729830374690-879915af264d?auto=format&fit=crop&w=1920&q=80&ixlib=rb-4.1.0");
    background-position: center, center, center, center 35%;
}

.home-hero-actions--quad {
    gap: 0.5rem 0.65rem;
}

.home-hero-actions--quad .home-hero-cta {
    padding: 0.72rem 1.2rem;
    font-size: 0.8125rem;
}

.home-hero-slide-inner {
    position: relative;
    z-index: 2;
}

/* Copy column */
.home-hero-copy {
    position: relative;
    padding-left: 1.5rem;
    max-width: 36rem;
}

.home-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--hh-accent) 0%, rgba(202, 50, 0, 0.15) 65%, transparent 100%);
}

.home-hero-kicker {
    font-family: var(--hh-font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--hh-accent-soft);
    margin-bottom: 1rem;
}

.home-hero-title {
    font-family: var(--hh-font-display);
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--hh-text) !important;
    margin-bottom: 1.25rem;
}

.home-hero-title-accent {
    background: linear-gradient(120deg, #fff 0%, rgba(245, 245, 247, 0.82) 40%, var(--hh-accent) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.home-hero-sub {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.65;
    color: var(--hh-muted) !important;
    margin-bottom: 2rem;
    max-width: 34ch;
    font-weight: 400;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.home-hero-cta {
    font-family: var(--hh-font-display);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-hero-cta--primary {
    color: #fff !important;
    background: linear-gradient(145deg, #d9380a 0%, var(--hh-accent) 45%, #8a2200 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 12px 40px rgba(202, 50, 0, 0.28);
}

.home-hero-cta--primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 18px 48px rgba(202, 50, 0, 0.38);
}

.home-hero-cta--ghost {
    color: var(--hh-text) !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hh-line);
    backdrop-filter: blur(10px);
}

.home-hero-cta--ghost:hover {
    border-color: rgba(202, 50, 0, 0.45);
    background: rgba(202, 50, 0, 0.08);
    color: #fff !important;
}

.home-hero-actions--motion {
    gap: 0.55rem 0.75rem;
}

@keyframes home-hero-motion-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(202, 50, 0, 0.28), 0 0 18px rgba(202, 50, 0, 0.06);
        border-color: rgba(202, 50, 0, 0.32);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(202, 50, 0, 0.1), 0 0 26px rgba(202, 50, 0, 0.22);
        border-color: rgba(202, 50, 0, 0.55);
    }
}

/* All hero slide CTAs — same soft brand pulse */
.home-hero-section .home-hero-cta {
    animation: home-hero-motion-pulse 2.5s ease-in-out infinite;
}

.home-hero-section .home-hero-cta:hover {
    animation: none;
}

/* Slight stagger so multiple buttons don’t pulse in perfect lockstep */
.home-hero-actions .home-hero-cta:nth-child(2) {
    animation-delay: 0.35s;
}
.home-hero-actions .home-hero-cta:nth-child(3) {
    animation-delay: 0.7s;
}
.home-hero-actions .home-hero-cta:nth-child(4) {
    animation-delay: 1.05s;
}

/* Media column */
.home-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(280px, 42vw, 480px);
}

.home-hero-figure {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 640px;
}

.home-hero-frame-chrome {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(202, 50, 0, 0.25) 100%);
    opacity: 0.55;
    filter: blur(0.5px);
    z-index: 0;
}

.home-hero-frame {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.home-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 6s ease-out;
}

.home-hero-figure:hover .home-hero-img {
    transform: scale(1.04);
}

.home-hero-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: var(--hh-font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hh-muted) !important;
}

.home-hero-caption-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hh-accent);
    box-shadow: 0 0 12px var(--hh-accent-soft);
}

/* Form card */
.home-hero-form-card {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(22, 22, 24, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    border: 1px solid var(--hh-line);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(20px);
}

.home-hero-form-eyebrow {
    display: inline-block;
    font-family: var(--hh-font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--hh-accent) !important;
    margin-bottom: 0.5rem;
}

.home-hero-form-heading {
    font-family: var(--hh-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hh-text) !important;
    margin-bottom: 0.35rem;
}

.home-hero-form-lead {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--hh-muted) !important;
    margin-bottom: 1.25rem;
}

.home-hero-form-card-head {
    margin-bottom: 0.25rem;
}

.home-hero-input {
    height: 48px;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--hh-text) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-hero-input--area {
    height: auto !important;
    min-height: 88px;
    resize: vertical;
}

.home-hero-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.home-hero-input:focus {
    border-color: rgba(202, 50, 0, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(202, 50, 0, 0.15) !important;
    outline: none;
}

.btn-home-hero-submit {
    font-family: var(--hh-font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1rem !important;
    border-radius: 12px !important;
    border: none !important;
    color: #fff !important;
    background: linear-gradient(145deg, #d9380a 0%, var(--hh-accent) 50%, #7a1d00 100%) !important;
    box-shadow: 0 12px 32px rgba(202, 50, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-home-hero-submit:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(202, 50, 0, 0.4);
}

.home-hero-success {
    border-radius: 12px !important;
    border: 1px solid rgba(40, 167, 69, 0.35) !important;
    background: rgba(20, 60, 35, 0.5) !important;
    color: #c8f5d3 !important;
}

/* Bottom bar — nav + pagination */
.home-hero-bottombar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
    pointer-events: none;
}

.home-hero-bottombar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: auto;
}

.home-hero-section .swiper-button-prev,
.home-hero-section .swiper-button-next {
    position: static;
    margin: 0;
    width: auto;
    height: auto;
    color: inherit;
}

.home-hero-section .swiper-button-prev::after,
.home-hero-section .swiper-button-next::after {
    display: none;
}

.home-hero-navbtn {
    appearance: none;
    border: 1px solid var(--hh-line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hh-text);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px);
}

.home-hero-navbtn:hover {
    border-color: rgba(202, 50, 0, 0.45);
    background: rgba(202, 50, 0, 0.12);
}

.home-hero-navbtn.swiper-button-disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

.home-hero-navbtn-inner {
    font-size: 0.75rem;
    display: flex;
}

.home-hero-pagination.swiper-pagination {
    position: static !important;
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
}

.home-hero-section .swiper-pagination-bullet {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
    margin: 0 !important;
    transition: background 0.3s ease, transform 0.3s ease;
}

.home-hero-section .swiper-pagination-bullet-active {
    background: linear-gradient(90deg, var(--hh-accent), #ff6a3d);
    transform: scaleY(1.2);
}

@media (max-width: 991.98px) {
    .home-hero-copy {
        padding-left: 1.1rem;
        max-width: none;
    }

    .home-hero-form-card {
        margin-left: 0;
        max-width: none;
    }

    .home-hero-title {
        font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    }

    .home-hero-topbar-row {
        padding-bottom: 0.75rem;
    }

    .home-hero-slide {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 6.25rem;
    }

    .home-hero-visual {
        min-height: 240px;
        margin-top: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-figure:hover .home-hero-img {
        transform: none;
    }

    .home-hero-cta--primary:hover,
    .btn-home-hero-submit:hover {
        transform: none;
    }

    .home-hero-section .home-hero-cta {
        animation: none;
    }
}
