.sg-home-v12 {
    background: #030303;
    color: #fff;
    width: 100%;
}

.sg-home-shell {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
}

.sg-home-hero,
.sg-home-content {
    margin-bottom: 28px;
}

.sg-home-main,
.sg-home-sidebar {
    min-width: 0;
}

.sg-home-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.sg-hero-card {
    background: #050505;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-home-content .page-content,
.sg-hero-card {
    border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1100px) {
    .sg-home-shell {
        grid-template-columns: 1fr;
    }

    .sg-home-sidebar {
        position: static;
    }
}

.sg-home-shell {
    outline: 5px solid lime !important;
}

.sg-home-main {
    outline: 5px solid red !important;
}

.sg-home-sidebar {
    outline: 5px solid cyan !important;
}

.sg-v12-matrix-section {
    width: 100%;
    padding: 40px 24px 80px;
    background: #030303;
}

.sg-v12-section-head {
    max-width: 1100px;
    margin: 0 auto 28px;
    text-align: center;
    color: #fff;
}

.sg-v12-section-head h2 {
    margin: 0 0 10px;
}

.sg-mosaic-preview-frame {
    position: relative;
    max-width: 1680px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    background: #030303;
    box-shadow: 0 20px 90px rgba(0,0,0,.55);
}

.sg-mosaic-preview {
    height: 50vh;
    min-height: 380px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sg-mosaic-preview-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    pointer-events: none;
    z-index: 20;

    background: linear-gradient(
        to bottom,
        rgba(3,3,3,0) 0%,
        rgba(3,3,3,.25) 25%,
        rgba(3,3,3,.70) 55%,
        rgba(3,3,3,.95) 82%,
        #030303 100%
    );
}

/* Firefox */
.sg-mosaic-preview {
    scrollbar-width: thin;
    scrollbar-color: rgba(142,234,115,.45) #0b0b0b;
}

/* Chrome / Edge / Safari */
.sg-mosaic-preview::-webkit-scrollbar {
    width: 12px;
}

.sg-mosaic-preview::-webkit-scrollbar-track {
    background: #0b0b0b;
}

.sg-mosaic-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        #8EEA73,
        #76D6FF
    );
    border-radius: 999px;
    border: 2px solid #0b0b0b;
}

.sg-mosaic-preview::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        #A6F58A,
        #8BE5FF
    );
}

/* Homepage preview overrides */

.sg-mosaic-preview .sg-mosaic-section {
    padding: 0 !important;
    margin: 0 !important;
}

.sg-mosaic-preview .sg-mosaic-header {
    display: none !important;
}

.sg-mosaic-preview .sg-tetris-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

.sg-mosaic-preview .sg-tetris-grid {
    margin: 0 !important;
}

.sg-v12-section-head {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 32px;
    text-align: center;
    color: #fff;
}

.sg-v12-section-head .sg-v12-kicker {
    color: #8EEA73;
     font-size: clamp(2rem, 2vw, 3rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow:
        0 0 8px rgba(142,234,115,.65),
        0 0 22px rgba(142,234,115,.28);
    animation: sgTextFlicker 5.8s infinite;
}

.sg-v12-section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 2vw, 3rem);
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -.04em;
    color: #fff;
    text-shadow:
        0 0 10px rgba(255,255,255,.25),
        0 0 36px rgba(118,214,255,.22),
        0 0 64px rgba(142,234,115,.16);
}

.sg-v12-section-head p:not(.sg-v12-kicker) {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.5;
}

.sg-v12-section-head::after {
    content: "";
    display: block;
    width: min(420px, 70vw);
    height: 1px;
    margin: 24px auto 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(142,234,115,.9),
        rgba(118,214,255,.7),
        transparent
    );
    box-shadow: 0 0 18px rgba(142,234,115,.45);
}

@keyframes sgTextFlicker {
    0%, 100% { opacity: 1; }
    7% { opacity: .68; }
    8% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: .45; }
    43% { opacity: .92; }
    44% { opacity: .7; }
    46% { opacity: 1; }
    79% { opacity: .85; }
    80% { opacity: 1; }
}

.sg-v12-hero {
    background: #030303;
    color: #fff;
    padding: 24px 24px 4px;
    position: relative;
    z-index: 10;
}

@media (min-width: 1500px) {
    .sg-v12-hero {
        margin-top: -55px;
    }
}

@media (max-width: 1499px) {
    .sg-v12-hero {
        margin-top: 0;
        padding-top: 24px;
    }
}

.sg-v12-shell {
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
    gap: 32px;
    align-items: start;
}

.sg-v12-sidebar,
.sg-v12-sidebar .panel,
.sg-v12-sidebar > * {
    width: 100% !important;
    min-width: 0 !important;
}

.sg-v12-sidebar .panel {
    max-width: none !important;
}



.sg-v12-hero-main {
    min-height: 520px;
    padding: clamp(32px, 5vw, 72px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(142,234,115,.18), transparent 32%),
        radial-gradient(circle at 80% 50%, rgba(118,214,255,.13), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
        #050505;
    box-shadow: 0 24px 90px rgba(0,0,0,.55);
}

.sg-v12-hero-main h1 {
    max-width: 980px;
    margin: 0 0 24px;
    font-size: clamp(3rem, 7vw, 7.8rem);
    line-height: .86;
    letter-spacing: -.075em;
    text-transform: uppercase;
}

.sg-v12-hero-copy {
    max-width: 760px;
    color: rgba(255,255,255,.72);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.5;
}

.sg-v12-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.sg-v12-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
}

.sg-v12-btn-primary {
    background: #8EEA73;
    color: #031003;
    box-shadow: 0 0 26px rgba(142,234,115,.35);
}

.sg-v12-btn-secondary {
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: rgba(255,255,255,.05);
}

.sg-v12-sidebar {
    position: sticky;
    top: 24px;
}

@media (max-width: 1100px) {
    .sg-v12-shell {
        grid-template-columns: 1fr;
    }

    .sg-v12-sidebar {
        position: static;
    }
}

.sg-v12-hero-main {
    position: relative;
    overflow: hidden;
}

.sg-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    z-index: 0;
    pointer-events: none;

    opacity: 0;
    filter: brightness(.85) contrast(1.1) saturate(.95);

    animation: sgHeroLoom 9s ease-in-out infinite;
}

.sg-hero-video {
    animation: sgHeroLoom 12s ease-in-out infinite;
}

@keyframes sgHeroLoom {
    0%, 10% {
        opacity: 0;
        filter: brightness(.65) contrast(1.05) saturate(.85);
        transform: scale(1.035);
    }

    40% {
        opacity: .15;
        filter: brightness(1) contrast(1.15) saturate(1);
        transform: scale(1);
    }

    45% {
        opacity: .15;
        filter: brightness(1) contrast(1.15) saturate(1);
        transform: scale(1);
    }

    84% {
        opacity: 0;
        filter: brightness(.7) contrast(1.05) saturate(.85);
        transform: scale(1.04);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

/* Homepage header tweaks */

.header-container .header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header-container .logo {
    text-align: left !important;
}

.header-container .logo img {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block;
    max-width: 100%;
}

/* Pull navigation upwards */
.navigation {
    margin-top: -18px;
}

/* V12 header alignment */

body.home .header-container .header {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.home .header-container .logo {
    text-align: left !important;
}

body.home .header-container .logo img {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
}

/* Move nav up */
body.home .navigation {
    margin-top: -17px !important;
    position: relative !important;
    z-index: 20 !important;
}

body.home .navigation {
    position: relative !important;
    z-index: 50 !important;
    transform: translateY(-42px) !important;
}

@media (min-width: 1600px) {
    body.home .navigation .navbar {
        transform: translate(140px, -42px) scale(.90);
        transform-origin: top right;
    }
}

@media (max-width: 1599px) {
    body.home .navigation,
    body.home .navigation .navbar {
        transform: none !important;
        margin-top: 0 !important;
    }

    body.home .navbar-toggler {
        display: block !important;
    }
}

.footer-container {
    width: 100%;
    max-width: 100%;
    background: #000;
    padding: 50px 0;
}

.footer-container .footer {
    max-width: 1680px;
    margin: 0 auto;
    padding: 40px 32px;
    background: transparent !important;
}

.footer-container .row {
    margin-left: 0;
    margin-right: 0;
}

body.home .footer-container {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #000 !important;
    padding: 50px 0 !important;
}

body.home .footer-container .footer {
    max-width: 1680px !important;
    margin: 0 auto !important;
    padding: 10px 10px !important;
    background: #000 !important;
}

body.home .footer-container .row {
    margin-left: auto !important;
    margin-right: auto !important;
}

.sg-sample-library-section {
    width: 100%;
    padding: 80px 24px;
    background: #030303;
}

.sg-sample-library-box {
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sg-sample-library-left,
.sg-sample-library-video-card {
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.13);
    background:
        radial-gradient(circle at 20% 20%, rgba(142,234,115,.14), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
        #050505;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    overflow: hidden;
}

.sg-sample-library-left {
    padding: clamp(28px, 4vw, 56px);
}

.sg-sample-library-left h3,
.sg-sample-video-content h3 {
    max-width: 720px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 5rem);
    line-height: .9;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.sg-sample-library-left p,
.sg-sample-video-content p {
    max-width: 640px;
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.5;
}

.sg-sample-library-video-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: clamp(28px, 4vw, 56px);
}

.sg-sample-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    filter: brightness(.75) contrast(1.1) saturate(.95);
    animation: sgSampleVideoLoom 12s ease-in-out infinite;
}

.sg-sample-video-content {
    position: relative;
    z-index: 2;
}

@keyframes sgSampleVideoLoom {
    0%, 08% {
        opacity: 3;
        filter: brightness(.65) contrast(1.05) saturate(.85);
        transform: scale(1.035);
    }

    34%, 50% {
        opacity: .30;
        filter: brightness(1) contrast(1.15) saturate(1);
        transform: scale(1);
    }

    78%, 100% {
        opacity: 20;
        filter: brightness(.7) contrast(1.05) saturate(.85);
        transform: scale(1.04);
    }
}

@media (max-width: 900px) {
    .sg-sample-library-box {
        grid-template-columns: 1fr;
    }

    .sg-sample-library-left,
    .sg-sample-library-video-card {
        min-height: 320px;
    }
}

.sg-sample-library-left{
    position:relative;
    overflow:hidden;
}

.sg-sample-library-left::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72),
            rgba(0,0,0,.38)
        ),
        url("/wp-content/uploads/hero/sample-library-bg.jpg");

    background-size:cover;
    background-position:center;

    opacity:.9;

    z-index:0;
}

.sg-sample-library-left>*{
    position:relative;
    z-index:2;
}