@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./assets/fonts/poppins-400-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./assets/fonts/poppins-600-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./assets/fonts/poppins-700-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --color-bg: #080a0b;
    --color-surface: #111516;
    --color-surface-raised: #151b1d;
    --color-text: #e0e0e0;
    --color-muted: #aaa;
    --color-border: #333c3f;
    --color-primary: #00adb5;
    --color-accent: #ff5722;
    --font-sans: "Poppins", "Segoe UI", Arial, sans-serif;
    --content-width: 76rem;
    --page-gutter: clamp(1rem, 4vw, 3rem);
    --section-space: clamp(5rem, 10vw, 9rem);
    --radius: 0.625rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    max-width: 100%;
    min-width: 17.5rem;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    /* One continuous, static atmosphere: no section seams or fixed overlays. */
    background-image:
        radial-gradient(ellipse 38rem 30rem at 78% 52%, rgb(0 173 181 / 4%), transparent 100%),
        radial-gradient(ellipse 34rem 28rem at 22% 74%, rgb(0 173 181 / 3%), transparent 100%),
        radial-gradient(ellipse 32rem 24rem at 20% 92%, rgb(255 87 34 / 2.5%), transparent 100%);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

h1,
h2,
h3,
p,
ul {
    margin-block-start: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.layout {
    width: min(100% - (2 * var(--page-gutter)), var(--content-width));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    inset: 0 auto auto 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: var(--color-bg);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-110%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: clamp(5rem, 10vh, 8rem) clamp(7rem, 12vh, 10rem);
    align-items: center;
}

.hero__ambient {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 72% 45%, rgb(0 173 181 / 6%), transparent 30rem),
        radial-gradient(circle at 85% 70%, rgb(255 87 34 / 3%), transparent 26rem);
    pointer-events: none;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(26rem, 1.1fr);
    align-items: center;
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 48rem;
}

.hero__title-prefix {
    display: block;
}

.hero h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: clamp(2.15rem, 4.2vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.typing {
    display: block;
    min-width: 0.75ch;
    min-height: 1.15em;
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
}

.js .typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.92em;
    margin-left: 0.08em;
    border-radius: 999px;
    background: currentColor;
    vertical-align: -0.08em;
    animation: blink 700ms steps(1, end) infinite;
}

.hero__subtitle {
    max-width: 42rem;
    margin-bottom: 0;
    color: #ccc;
    font-size: clamp(1rem, 1.9vw, 1.35rem);
    font-weight: 600;
}

.hero__art {
    position: relative;
    z-index: 1;
    width: 118%;
    margin-left: -16%;
    filter: brightness(0.52);
}

.hero__art img {
    width: 100%;
    border-radius: var(--radius);
}

.hero__art picture {
    display: block;
}

.scroll-cue {
    position: absolute;
    inset: auto auto clamp(1.5rem, 4vh, 3rem) 50%;
    z-index: 3;
    color: #777;
    font-size: clamp(0.875rem, 1.6vw, 1.125rem);
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: bounce 1.5s ease-in-out infinite;
}

.scroll-cue:hover {
    color: var(--color-muted);
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section-title {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-accent);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.product-card {
    display: flex;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 45%), var(--color-surface);
    flex-direction: column;
    align-items: center;
    transition: border-color 250ms ease, transform 250ms var(--ease), background-color 250ms ease;
}

@media (hover: hover) {
    .product-card:hover {
        border-color: rgb(0 173 181 / 65%);
        background-color: var(--color-surface-raised);
        transform: translateY(-0.3rem);
    }
}

.product-card__image {
    width: 7.25rem;
    height: 7.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: #333;
    object-fit: cover;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__image--custom {
    display: grid;
    background:
        linear-gradient(135deg, rgb(0 173 181 / 20%), rgb(255 87 34 / 10%)),
        #292929;
    color: var(--color-text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    place-items: center;
}

.product-card__heading {
    min-height: 4rem;
    text-align: center;
}

.product-card h3 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.product-card__heading p {
    margin-bottom: 0;
    color: #ccc;
    font-size: 0.8rem;
}

.feature-list {
    width: 100%;
    margin-block: 1.5rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-bottom: 0;
    list-style: none;
}

.feature-list li {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.75rem;
    text-align: center;
}

.button {
    display: inline-flex;
    min-height: 2.875rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid transparent;
    background: var(--color-primary);
    color: var(--color-bg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-shadow: none;
    text-decoration: none;
    transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
    align-items: center;
    justify-content: center;
}

.product-card > .button {
    margin-top: auto;
}

.button:hover {
    background: var(--color-accent);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible,
.scroll-cue:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.showcase {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(34rem, 72vh, 48rem);
    min-height: clamp(34rem, 72svh, 48rem);
    padding-block: var(--section-space);
    align-items: center;
}

.showcase__layout {
    position: relative;
    display: flex;
    min-height: 25rem;
    align-items: center;
}

.showcase__copy {
    position: relative;
    z-index: 2;
    width: min(37rem, 52%);
    text-shadow: 0 2px 18px var(--color-bg), 0 1px 3px var(--color-bg);
}

.showcase__copy h2 {
    margin-bottom: 0.7rem;
    color: var(--color-primary);
    font-size: clamp(2rem, 4.25vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.showcase__copy p {
    max-width: 36rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.showcase__copy strong {
    color: var(--color-accent);
    font-weight: 700;
}

.showcase__media {
    position: absolute;
    z-index: -1;
    top: 50%;
    display: block;
    width: min(62vw, 58rem);
    max-width: none;
    border-radius: var(--radius);
    filter: brightness(0.7);
    transform: translateY(-50%);
    -webkit-mask-image: radial-gradient(ellipse 78% 80% at center, #000 54%, rgb(0 0 0 / 88%) 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 80% at center, #000 54%, rgb(0 0 0 / 88%) 70%, transparent 100%);
}

.showcase__media img {
    width: 100%;
    border-radius: inherit;
}

.showcase--right .showcase__media {
    right: clamp(-4rem, -3vw, -1rem);
}

.showcase--left .showcase__media {
    left: clamp(-4rem, -3vw, -1rem);
}

.showcase--left .showcase__copy {
    margin-left: auto;
    text-align: right;
}

.showcase--left .showcase__copy p {
    margin-left: auto;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showcase--left .button-row {
    justify-content: flex-end;
}

.showcase--request .showcase__lead {
    margin-bottom: 0.45rem;
    color: var(--color-text);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
}

.showcase--request .showcase__note {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer {
    padding: 1.1rem var(--page-gutter);
    background: var(--color-surface);
    color: #777;
    font-size: 0.85rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.js .reveal {
    opacity: 0;
    transform: translateY(2.75rem);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes blink {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 0.55rem);
    }
}

@media (max-width: 64rem) {
    .hero__layout {
        grid-template-columns: minmax(17rem, 0.95fr) minmax(22rem, 1.05fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, calc(50% - 0.625rem));
        justify-self: center;
    }

    .showcase__media {
        width: min(68vw, 54rem);
        opacity: 0.86;
    }
}

@media (min-width: 64.0625rem) {
    .hero__copy {
        max-width: none;
    }

    .hero__title-prefix,
    .hero__subtitle,
    .showcase__copy h2,
    .showcase__copy p {
        max-width: none;
        white-space: nowrap;
    }
}

@media (max-width: 48rem) {
    :root {
        --section-space: clamp(4.5rem, 16vw, 7rem);
    }

    .hero {
        min-height: 45rem;
        padding-top: 5.5rem;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero__copy {
        max-width: 39rem;
    }

    .hero__art {
        width: min(112%, 46rem);
        margin: -1rem -6% 0 auto;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card,
    .product-card:last-child {
        grid-column: auto;
        width: 100%;
        max-width: 34rem;
        justify-self: center;
    }

    .showcase {
        min-height: 39rem;
    }

    .showcase__layout {
        min-height: 29rem;
    }

    .showcase__copy,
    .showcase--left .showcase__copy {
        width: min(100%, 35rem);
        margin: 0;
        padding: clamp(1rem, 5vw, 2rem);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        background: rgb(8 10 11 / 86%);
        text-align: left;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .showcase--left .showcase__copy p {
        margin-left: 0;
    }

    .showcase--left .button-row {
        justify-content: flex-start;
    }

    .showcase__media,
    .showcase--right .showcase__media,
    .showcase--left .showcase__media {
        right: auto;
        left: 50%;
        width: max(42rem, 125vw);
        opacity: 0.58;
        transform: translate(-50%, -50%);
    }

    .showcase--request .showcase__media {
        width: max(38rem, 120vw);
    }
}

@media (max-width: 30rem) {
    .hero {
        min-height: 42rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.6rem);
    }

    .hero__art {
        width: 122%;
        margin-left: -11%;
    }

    .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button-row .button {
        width: 100%;
    }

    .showcase__copy,
    .showcase--left .showcase__copy {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (forced-colors: active) {
    .button,
    .product-card,
    .showcase__copy {
        border: 1px solid ButtonText;
    }

    .hero__ambient {
        display: none;
    }
}

@media print {
    .scroll-cue,
    .button-row,
    .skip-link {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero,
    .showcase,
    .section {
        min-height: auto;
        padding-block: 2rem;
        break-inside: avoid;
    }

    .showcase__media {
        position: static;
        width: 45%;
        opacity: 1;
        filter: none;
        transform: none;
    }
}
