/*
 * Component: hero-twelve
 * Dark media hero with a staggered three-image collage.
 */

.iphtech-hero-twelve {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(72px, 8vw, 112px) 24px clamp(72px, 8vw, 104px);
    background: linear-gradient(150deg, #0a0f24 0%, #141a3a 50%, #1c1230 100%);
    color: #fff;
}

.iphtech-hero-twelve__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.iphtech-hero-twelve__glow--a {
    top: -200px;
    right: 8%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(255, 89, 0, .32), transparent 68%);
}

.iphtech-hero-twelve__glow--b {
    bottom: -260px;
    left: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(40, 116, 252, .3), transparent 68%);
}

.iphtech-hero-twelve__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
    max-width: 1320px;
    margin: 0 auto;
}

.iphtech-hero-twelve__title {
    margin: 16px 0 0;
    padding: 0;
    color: #fff;
    font-family: var(--iphtech-font-heading, inherit);
    font-size: clamp(32px, 3.3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.iphtech-hero-twelve__title span {
    color: var(--iphtech-orange-light, #ff7a33);
}

.iphtech-hero-twelve__text {
    margin: 18px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
}

.iphtech-hero-twelve__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.iphtech-hero-twelve__tags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--iphtech-radius-pill, 100px);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .9);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
}

.iphtech-hero-twelve__tags i {
    color: var(--iphtech-orange-light, #ff7a33);
}

.iphtech-hero-twelve__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.iphtech-hero-twelve .iphtech-button-ghost {
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.iphtech-hero-twelve .iphtech-button-ghost:hover,
.iphtech-hero-twelve .iphtech-button-ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* Collage: three portrait shots, the middle one raised and larger. */
.iphtech-hero-twelve__collage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.iphtech-hero-twelve__shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.iphtech-hero-twelve__shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.iphtech-hero-twelve__shot--1 {
    transform: translateY(36px);
}

.iphtech-hero-twelve__shot--3 {
    transform: translateY(-28px);
}

.iphtech-hero-twelve__shot--2 img {
    aspect-ratio: 3 / 4.3;
}

.iphtech-hero-twelve__playing {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(10, 15, 36, .78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.iphtech-hero-twelve__play {
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--iphtech-orange, #ff5900);
    font-size: 15px;
}

.iphtech-hero-twelve__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-left: auto;
}

.iphtech-hero-twelve__bars i {
    width: 3px;
    border-radius: 2px;
    background: var(--iphtech-orange-light, #ff7a33);
    animation: iphtech-hero-twelve-eq 1s ease-in-out infinite;
}

.iphtech-hero-twelve__bars i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.iphtech-hero-twelve__bars i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.iphtech-hero-twelve__bars i:nth-child(3) { height: 60%; animation-delay: -.8s; }
.iphtech-hero-twelve__bars i:nth-child(4) { height: 75%; animation-delay: -.35s; }

@keyframes iphtech-hero-twelve-eq {
    0%, 100% { transform: scaleY(.45); }
    50% { transform: scaleY(1); }
}

.iphtech-hero-twelve__bars i {
    transform-origin: bottom;
}

.iphtech-hero-twelve__stat {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    color: var(--iphtech-ink, #111827);
    line-height: 1.2;
}

.iphtech-hero-twelve__stat strong {
    font-family: var(--iphtech-font-heading, inherit);
    font-size: 22px;
    font-weight: 900;
}

.iphtech-hero-twelve__stat span {
    color: var(--iphtech-ink-3, #6b7280);
    font-size: 12.5px;
    font-weight: 600;
}

.iphtech-hero-twelve__stat--a {
    top: 0;
    left: -12px;
}

.iphtech-hero-twelve__stat--b {
    right: -8px;
    bottom: 0;
}

@media (max-width: 991px) {
    .iphtech-hero-twelve__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .iphtech-hero-twelve__collage {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .iphtech-hero-twelve {
        padding-right: 16px;
        padding-left: 16px;
    }

    .iphtech-hero-twelve__collage {
        gap: 10px;
        padding: 36px 0;
    }

    .iphtech-hero-twelve__shot {
        border-radius: 14px;
    }

    .iphtech-hero-twelve__shot--1 {
        transform: translateY(20px);
    }

    .iphtech-hero-twelve__shot--3 {
        transform: translateY(-16px);
    }

    .iphtech-hero-twelve__playing {
        right: 6px;
        bottom: 6px;
        left: 6px;
        padding: 6px;
        font-size: 11px;
    }

    .iphtech-hero-twelve__bars {
        display: none;
    }

    .iphtech-hero-twelve__stat {
        padding: 8px 12px;
    }

    .iphtech-hero-twelve__stat strong {
        font-size: 18px;
    }

    .iphtech-hero-twelve__stat--a {
        left: 0;
    }

    .iphtech-hero-twelve__stat--b {
        right: 0;
    }

    .iphtech-hero-twelve__actions .iphtech-button {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iphtech-hero-twelve__bars i {
        animation: none;
    }
}
