:root {
    --pico-font-family-sans-serif: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    --hr-color: #282b5e;
    --hr-line-offset: 5%;
    --pico-white: #fff;
    --app-green: #1fb654;
    --app-red: rgba(255, 0, 0, 0.1);
}

[data-theme="dark"],
main:not([data-theme="light"]) {
    --pico-font-size: 120%;
    --pico-background-color: #10091e;
    --pico-font-weight: 200;
    --pico-primary: #6d7cff;
    --pico-secondary: var(--pico-muted-color);
    --pico-secondary-hover: var(--pico-white);
    --pico-tertiary: #ff51ff;
    --pico-primary-background: #7329ff;
    --pico-primary-underline: var(--pico-primary);
    --pico-primary-hover-background: #ff51ff;
    --pico-primary-hover: var(--pico-tertiary);
    --pico-primary-border: var(--pico-primary-background);
    --pico-primary-hover-border: var(--pico-primary-hover-background);
    --pico-primary-hover-underline: var(--pico-tertiary);
    --pico-primary-focus: rgba(255, 255, 255, 0.2);
    --pico-primary-inverse: #fff;
    --pico-muted-color: rgba(255, 255, 255, 0.6);
    --pico-h3-color: white;
    --pico-form-element-background-color: rgba(66, 72, 154, 0.2);
    --pico-form-element-active-background-color: rgba(66, 72, 154, 0.4);
    --pico-form-element-border-color: rgba(66, 72, 154, 0.8);
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: grid;
    grid-gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto; /* header height auto, main stretches, footer fixed */
    grid-template-areas:
      "header"
      "main"
      "footer";
}

body > header {
    background: rgba(6, 6, 6, .9);
    grid-area: header;
    padding-block: 0;
}
body > header nav {
    display: flex;
    flex-direction: column;
    padding: .5em 0;
    max-width: 1600px;
    margin: 0 auto;
}
body > header nav ul,
body > header nav ul:first-of-type,
body > header nav ul:last-of-type {
    margin: 0 auto;
}
body > header nav ul li {
    padding: .5em;
}
body > header a[role="link"] {
    font-weight: 400;
    text-transform: uppercase;
}
body > main {
    grid-area: main;
    padding-block: 0;
}
body > footer {
    grid-area: footer;
    padding-block: 0;
    text-transform: uppercase;
}
body > header > a,
body > footer > a {
    --pico-text-decoration: none;
}
body > footer nav {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    padding: .5em 0;
    max-width: 1600px;
    margin: 0 auto;
}
body > footer nav ul {
    margin: 0;
}
body > footer nav ul li {
    padding: 0.5em;
}
section {
    padding-top: 1em;
    padding-bottom: 1em;
    margin-bottom: 0;
}
section > .container-fluid {
    max-width: 1600px;
}
section > .container > hgroup,
section > .container-fluid > hgroup {
    --pico-typography-spacing-vertical: 2em;
    text-align: center;
}
section > .container > hgroup h3,
section > .container-fluid > hgroup h3 {
    margin: .25em 0;
}
section > .container > hgroup p,
section > .container > hgroup p:first-child,
section > .container > hgroup p:last-child,
section > .container-fluid > hgroup p,
section > .container-fluid > hgroup p:first-child,
section > .container-fluid > hgroup p:last-child {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 100;
    color: #cba0ff;
    font-style: italic;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
section > .container > .content-start p {
    line-height: 1.8em;
}

@media (min-width: 768px) {
    body > header {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    body > header nav {
        flex-direction: row;
    }
    body > header nav ul,
    body > header nav ul:first-of-type,
    body > header nav ul:last-of-type {
        margin: 0;
    }
    body > footer nav {
        flex-direction: row;
        padding: 1em 0;
    }
    body > footer nav ul:last-of-type {
        margin-left: auto;
        margin-right: 4em;
    }
    body > footer nav ul li {
        padding: .75em;
    }
    section {
        padding-top: 2em;
        padding-bottom: 2em;
    }
    section > .container-fluid > .content-start {
        width: 75%;
    }
}

@media (min-width: 1280px) {
    section > .container-fluid > .content-start {
        width: 60%;
    }
}
h1, h2, h3, h4, h5, h6 {
    --pico-font-weight: 400;
}

h2 {
    --pico-font-size: clamp(2.25rem, 5vw, 5rem);
}

h3 {
    --pico-font-size: clamp(2rem, 5vw, 3.5rem);
}

legend {
    --pico-form-label-font-weight: 500;
    text-transform: uppercase;
    font-size: .85rem;
}

hr {
    margin: 2rem 0;
    border-image-slice: 1;
    border-image-source: linear-gradient(
        to right,
        transparent,
        var(--hr-color) calc(50% - var(--hr-line-offset)),
        var(--hr-color) calc(50% + var(--hr-line-offset)),
        transparent
    );
}

thead th {
    --pico-font-weight: 400;
}

[role="button"], [role="search"], [role="group"] {
    --pico-font-weight: 400;
    --pico-border-radius: 2rem;
    font-size: .9rem;
    text-transform: uppercase;
}

section > header {
    display: flex;
    flex-direction: column;
    gap: 1em;
    h3 {
        /*--pico-color: white;*/
        /*--pico-font-size: clamp(1rem, 5vw, 2rem);*/
    }
    hgroup {
        /*margin-bottom: 0;*/
    }
    hgroup>:not(:first-child):last-child {
        --pico-font-size: clamp(1rem, 5vw, 1.2rem);
    }
}

.alert {
    padding: 1em;
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
}
.alert-success {
    background: var(--app-green);
    border: 1px solid #367a0f;
    text-align: center;
}
.alert-error {
    background: var(--app-red);
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid darkred;
    ul, ul li {
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.8);
    }
}
.amp {
    font-family: Baskerville, 'Goudy Old Style', Palatino, 'Book Antiqua', serif;
    font-style: italic;
    font-weight: normal;
}
.center-frame {
    height: 100%;
    width: 100%;
    display: grid;
    align-content: center;
    justify-content: center;
}
.cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
    margin-bottom: 0;
}
.cta-icon-container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    flex-direction: row;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
}
.fs-1 {
    font-size: clamp(1rem, 5vw, 2rem);
}
.fs-2 {
    font-size: clamp(1rem, 5vw, 1.5rem);
}
.fs-3 {
    font-size: clamp(1rem, 5vw, 1.3rem);
    line-height: 1.75;
}
.fs-4 {
    font-size: clamp(.85rem, 5vw, 1rem);
}
.fs-4 {
    font-size: clamp(.75rem, 5vw, .9rem);
}
.gap-3 {
    gap: 3em;
}
.grid-img {
    display: flex;
    align-items: center;
    justify-content: center;
}
.h-100 {
    height: 100%;
}
.img-circle {
    clip-path: circle();
}
.img-responsive {
    max-width: 100%;
    height: auto;
}
.img-cover {
    object-fit: cover;
}
.img-1x1 {
    aspect-ratio: 1 / 1;
}
.img-4x5 {
    aspect-ratio: 4 / 5;
}

.m-0,
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.text-start {
    text-align: left;
}
.text-end {
    text-align: right;
}
.text-center {
    text-align: center;
}
.text-gradient {
    background: linear-gradient(to right, #727aff, #fd52ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}
.vr {
    border-left-width: 1px;
    border-left-style: solid;
    border-image: linear-gradient(to bottom, black, #42489a 50%, black) 1;
    margin-left: .5em;
    padding-left: 1em;
}

.box {
    width: 100%;
    padding: 1em;
    margin: 0 auto;
    background-color: rgba(66, 72, 154, 0.1);
    border: 1px solid var(--hr-color);
    border-radius:.5em;
    text-align: center;
    img {
        display: block; /* Ensures image respects padding */
        width: 100%; /* Ensures image doesn't overflow parent */
        height: auto; /* Maintains aspect ratio */
        border: 1px solid var(--hr-color);
        border-radius:.5em;
        margin-bottom: 1.53em;
    }
}

.box-text,
.highlight-text {
    background: linear-gradient(90deg, rgba(2, 0, 13, 0.3), rgba(2, 0, 13, 0.7));
    padding: 0 .25em;
    line-height: 1.4em;
    border-radius: 6px;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.highlight-text {
    background: var(--app-green);
    border-radius: 0;
    color: rgba(0, 0, 0, 0.8);
    line-height: 2em;
    text-shadow: none;
    font-weight: 100;
    padding: .2em .5em;
    font-style: italic;
}
.box-glass {
    padding: 1.5em;
    margin: 1.5em auto;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(25px);
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right,transparent,var(--hr-color), transparent) 1 0 1 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}
.box-glass .box-glass-row {
    display: flex;
    align-items: start;
    gap: 1rem;
}
.box-glass .box-glass-text {

}
.box-glass h4 {
    --pico-font-weight: 200;
    --pico-color: white;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(3, 16, 124, .8);
    text-transform: uppercase;
    font-size: clamp(1rem, 4vw, 1.2rem);
}
.box-glass p {
    --pico-font-weight: 100;
    --pico-color: #ffffff;
    text-shadow: 1px 1px 2px rgba(3, 16, 124, .8);
    font-size: clamp(.9rem, 4vw, 1.25rem);
}
.box-glass .box-glass-text p {
    font-size: clamp(.9rem, 4vw, 1rem);
}
.box-glass p:last-child {
    margin-bottom: 0;
}
.box-glass fieldset {
    display: flex;
    margin: .5em auto;
    width: 100%;
}
.box-glass-text .m-0 {
    margin: 0;
}
@media (min-width: 500px) {
    .box-glass .box-glass-text {


    }
}

.space-around {
    display: flex;
    justify-content: space-around;
}

.bg-purple {
    background:
        radial-gradient(
            circle,
            oklch(0.15 0.2 330 / 0),
            oklch(0.15 0.2 330 / 1)
        ),
        linear-gradient(
            344deg in oklch,
            oklch(0.3 0.37 310),
            oklch(0.339 0.19 291.194),
            oklch(0.342 0.13 260.063)
        );
    background-size: 180% 180%;
    animation: bg-purple-animation 18s ease infinite;
}
@keyframes bg-purple-animation {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}
.bg-purple-tint {
    background: #02000d;
    padding: 2em 4em 0 4em;
    margin-bottom: 0;
}
.bg-dark {
    background-color: #02000d;
}
.bg-abstract-web {
    background-image: url("../images/abstract-web/cropped-fCruOl8.webp");
    background-position: right;
    background-size: contain;
}
.bg-high-resolution {
    background-image: url("../images/high-resolution/large-512@2x-7LeBE1E.webp");
    background-position: right;
    background-size: contain;
}
.bg-blue-noise {
    background-image: url("../images/blue-noise/medium-512@2x-to95fQk.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.bg-blue-noise .box-glass:nth-of-type(1) {
    width: 100%;
}
.bg-blue-noise .box-glass:nth-of-type(2) {
    width: 100%;
}
.bg-blue-noise .box-glass:nth-of-type(3) {
    width: 100%;
}
.bg-blue-noise .box-glass:nth-of-type(4) {
    width: 100%;
}
.bg-blue-noise .box-glass:nth-of-type(5) {
    width: 100%;
}

#whySection {
    article {
        --pico-border-radius: 1rem;
        /*padding: 2rem 1.5rem;*/
        > header {
            background: transparent;
            border: none;
            font-weight: 400;
            font-size: 1rem;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            gap: 1em;
        }
        > p {
            margin-bottom: 0;
            font-size: .9rem;
            color: rgba(255, 255, 255, 0.9);
        }
        > footer {
            background: transparent;
            border: none;
        }
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

#howSection {
    padding-top: 3em;
    padding-bottom: 3em;
}

#servicesSection {
    padding-top: 3em;
    padding-bottom: 3em;
}

.animated-text {
    --bg-size: 400%;
    background: linear-gradient(
        90deg,
        var(--pico-primary),
        var(--pico-tertiary),
        var(--pico-primary)
    )
    0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
}

.animated-text-reverse {
    --bg-size: 400%;
    background: linear-gradient(
        90deg,
        var(--pico-tertiary),
        var(--pico-primary),
        var(--pico-tertiary)
    )
    0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: no-preference) {
    .animated-text, .animated-text-reverse {
        animation: move-bg 12s linear infinite;
    }
    @keyframes move-bg {
        to {
            background-position: var(--bg-size) 0;
        }
    }
}

@media (min-width: 576px) {
    .cta-container {
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .box {
        text-align: center;
        padding: 2rem 2rem 2rem 2rem;
        > .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            grid-column-gap: var(--pico-grid-column-gap);
            grid-row-gap: var(--pico-grid-row-gap);
        }
    }
    .box.ms-auto {
        margin-left: auto;
    }
    section > header {
        flex-direction: row;
        align-items: center;
    }
    .box-glass .box-glass-row {
        width: 450px;
    }
    .alert,
    .box-glass fieldset {
        width: 75%;
    }
    .bg-blue-noise {
        background-size: contain;
    }
    .bg-blue-noise .box-glass:nth-of-type(1) {
        width: 70%;
    }
    .bg-blue-noise .box-glass:nth-of-type(2) {
        width: 85%;
    }
    .bg-blue-noise .box-glass:nth-of-type(3) {
        width: 100%;
    }
    .bg-blue-noise .box-glass:nth-of-type(4) {
        width: 85%;
    }
    .bg-blue-noise .box-glass:nth-of-type(5) {
        width: 70%;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .box {
        text-align: left;
        padding: 3rem 3rem 1.5rem 3rem;
        .grid {
            .cta-icon-container {
                justify-content: end;
            }
        }
    }
    .alert,
    .box-glass fieldset {
        width: 50%;
    }
    .bg-blue-noise {
        background-size: contain;
    }
    .bg-blue-noise .box-glass:nth-of-type(1) {
        width: 60%;
    }
    .bg-blue-noise .box-glass:nth-of-type(2) {
        width: 80%;
    }
    .bg-blue-noise .box-glass:nth-of-type(3) {
        width: 100%;
    }
    .bg-blue-noise .box-glass:nth-of-type(4) {
        width: 80%;
    }
    .bg-blue-noise .box-glass:nth-of-type(5) {
        width: 60%;
    }
}
