/* Brand palette
 * Slate Blue   #6C69C7
 * Blue Violet  #9439CC
 * Brilliant Azure #3D8AE3
 * Black        #000000
 */
:root {
    --palette-slate: #6C69C7;
    --palette-violet: #9439CC;
    --palette-azure: #3D8AE3;
    --palette-black: #000000;

    --color-1: var(--palette-violet);
    --color-1-lighter: #B56AE0;
    --color-1-light: #A855E0;
    --color-1-dark: #7A2FA8;
    --color-1-darker: #5C2480;

    --color-2: var(--palette-slate);
    --color-2-lighter: #9491D9;
    --color-2-light: #807DD0;
    --color-2-dark: #5653A8;
    --color-2-darker: #43408A;

    --color-3: var(--palette-azure);

    --color-body: var(--palette-violet);
    --color-bg: var(--palette-black);

    --color-gray-19: #000000;
    --color-gray-18: #08080c;
    --color-gray-17: #101018;
    --color-gray-16: #181822;
    --color-gray-15: #22222e;

    --color-border: var(--color-gray-17);

    --color-btn-primary: var(--palette-violet);
    --color-btn-primary-hover: var(--palette-azure);
    --color-btn-primary-hover-text: #ffffff;

    --color-info: rgba(61, 138, 227, 0.2);
    --color-info-content: var(--palette-azure);
}

::selection {
    background: var(--palette-violet);
    color: #fff;
}

a:hover,
a:focus {
    color: var(--palette-azure);
}

/* Site logo */
.s-header__logo img.site-logo {
    width: auto;
    height: 52px;
    max-width: 160px;
    object-fit: contain;
}

@media screen and (max-width: 600px) {
    .s-header__logo img.site-logo {
        height: 42px;
        max-width: 120px;
    }
}

/* Header nav — tighter gap between menu items */
.s-header__nav {
    letter-spacing: 0.2em;
}

.s-header__nav li {
    margin-left: 0.35rem;
    margin-right: 0.35rem;
}

@media screen and (min-width: 901px) {
    .s-header__nav-wrap {
        padding-left: 16rem;
    }
}

@media screen and (max-width: 1700px) and (min-width: 901px) {
    .s-header__nav-wrap {
        padding-left: 14.5rem;
    }
}

@media screen and (max-width: 1000px) and (min-width: 901px) {
    .s-header__nav-wrap {
        padding-left: 13rem;
    }
}

/* Hero — palette gradient, no photo */
.s-hero__bg {
    background-image: none;
    background-color: var(--palette-black);
    background: linear-gradient(
        145deg,
        var(--palette-black) 0%,
        #12081f 30%,
        #0a1628 65%,
        var(--palette-black) 100%
    );
}

.s-hero__bg::after {
    background: linear-gradient(
        135deg,
        rgba(108, 105, 199, 0.2) 0%,
        rgba(148, 57, 204, 0.15) 45%,
        rgba(61, 138, 227, 0.2) 100%
    );
    opacity: 1;
}

.s-hero__bg .gradient-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.85;
}

.s-hero__content h1 {
    background: linear-gradient(
        90deg,
        var(--palette-violet) 0%,
        var(--palette-slate) 50%,
        var(--palette-azure) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero — full viewport, centered copy with breathing room */
.s-hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
}

.s-hero .s-hero__content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: max(11rem, 14vh) clamp(2rem, 6vw, 6rem) max(5rem, 10vh);
    box-sizing: border-box;
}

.s-hero .s-hero__content .column {
    flex: 0 1 auto;
    width: 100%;
    max-width: var(--width-grid-max);
    padding: clamp(2rem, 4vh, 4rem) clamp(1.5rem, 3vw, 3rem);
}

.s-hero .s-hero__content h1 {
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
}

.s-hero .s-hero__content-about {
    margin-top: clamp(0.5rem, 1.5vh, 1.5rem);
    padding-top: clamp(1rem, 2vh, 2rem);
}

/* Hero — fluid headline & copy (overrides template fixed rem sizes) */
.s-hero .s-hero__content h1 {
    font-size: clamp(2.8rem, 5.5vw + 1.5rem, 11rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
}

.s-hero .s-hero__content h1::before {
    height: clamp(3rem, 5vw, 10rem);
    width: clamp(6rem, 10vw, 20rem);
}

.s-hero .s-hero__content-about {
    font-size: clamp(1.4rem, 0.95rem + 1.25vw, 3.6rem);
    line-height: 1.45;
    padding-left: clamp(0, 2.5vw, 3.6em);
    padding-right: clamp(1rem, 4vw, 2.5rem);
    max-width: 40em;
}

.s-hero .s-hero__content-about p {
    margin-bottom: clamp(1.75rem, 3.5vh, 3rem);
}

.s-hero .s-hero__content-social {
    font-size: clamp(1.35rem, 0.9rem + 0.45vw, 1.8rem);
}

@media screen and (max-width: 1000px) {
    .s-hero .s-hero__content-about {
        padding-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .s-hero .s-hero__content {
        padding: max(9rem, 12vh) clamp(1.25rem, 5vw, 2rem) max(4rem, 8vh);
    }

    .s-hero .s-hero__content .column {
        padding: clamp(1.5rem, 3vh, 2.5rem) 0;
    }

    .s-hero .s-hero__content-about {
        padding-right: 0;
    }
}

@media screen and (max-width: 500px) {
    .s-hero .s-hero__content h1::before {
        display: none;
    }

    .s-hero .s-hero__content-about {
        padding-right: 1.5rem;
    }
}

.s-hero__content-about a:hover,
.s-hero__content-about a:focus {
    color: var(--palette-azure);
}

.s-about .horizontal-line::before {
    background: linear-gradient(
        180deg,
        var(--palette-violet) 0%,
        var(--palette-slate) 50%,
        var(--palette-azure) 100%
    );
}

.section-title h3 {
    color: var(--palette-violet);
}

/* Sections — sit closer together */
section.s-about,
section.s-services,
section.s-portfolio,
section.s-gallery,
section.s-contact {
    padding-top: var(--vspace-2_5);
    padding-bottom: var(--vspace-1_5);
}

section.s-portfolio {
    padding-bottom: var(--vspace-1);
}

section.s-gallery {
    padding-top: var(--vspace-2);
    padding-bottom: var(--vspace-2);
}

section.s-contact {
    padding-top: var(--vspace-2);
    padding-bottom: var(--vspace-2);
}

.section-title {
    margin-bottom: var(--vspace-1_25);
}

section.s-portfolio .s-portfolio__list {
    padding-top: var(--vspace-0_75);
}

section.s-about .horizontal-line {
    top: -3rem;
    height: 12rem;
}

@media screen and (max-width: 1000px) {
    section.s-about,
    section.s-services,
    section.s-portfolio,
    section.s-gallery,
    section.s-contact {
        padding-top: var(--vspace-2);
        padding-bottom: var(--vspace-1_25);
    }
}

@media screen and (max-width: 400px) {
    section.s-services {
        padding-top: var(--vspace-2);
    }
}

.s-about__intro-text--full {
    max-width: none;
}

/* Service section — card grid */
.s-services__services.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vspace-1_5);
    width: 92%;
    max-width: var(--width-grid-max);
    margin-left: auto;
    margin-right: auto;
    flex-wrap: unset;
}

.s-services__services.service-cards > .service-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.item-list.service-cards .item {
    padding-right: 0;
}

.service-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-gray-17);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card__inner:hover,
.service-card__inner:focus-within {
    border-color: var(--palette-violet);
    box-shadow: 0 8px 28px rgba(148, 57, 204, 0.15);
}

.service-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-gray-16);
}

.service-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border: none;
    border-radius: 0;
}

.service-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--vspace-1) var(--vspace-1_25) var(--vspace-1_25);
}

.service-card__body .item-title {
    margin-top: 0;
    margin-bottom: 0.65rem;
    color: var(--palette-violet);
}

.service-card__body p {
    margin-bottom: 0;
    font-size: 0.95em;
    line-height: 1.55;
    color: var(--color-text);
}

@media screen and (max-width: 1000px) {
    .s-services__services.service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 550px) {
    .s-services__services.service-cards {
        grid-template-columns: 1fr;
        gap: var(--vspace-1_25);
    }
}

/* Products section — card grid (separate from service cards) */
.s-portfolio__products.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vspace-1_5);
    width: 92%;
    max-width: var(--width-grid-max);
    margin-left: auto;
    margin-right: auto;
    flex-wrap: unset;
}

.s-portfolio__products.product-cards > .product-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.item-list.product-cards .item {
    padding-right: 0;
}

.product-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-gray-17);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card__inner:hover,
.product-card__inner:focus-within {
    border-color: var(--palette-violet);
    box-shadow: 0 8px 28px rgba(148, 57, 204, 0.15);
}

.product-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-gray-16);
}

.product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--vspace-1) var(--vspace-1_25) var(--vspace-1_25);
}

.product-card__body .item-title {
    margin-top: 0;
    margin-bottom: 0.65rem;
    color: var(--palette-violet);
}

.product-card__body p {
    margin-bottom: 0;
    flex: 1;
    font-size: 0.95em;
    line-height: 1.55;
}

.product-card__body .folio-item__project-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-weight: 600;
    color: var(--palette-azure);
}

.product-card__body .folio-item__project-link:hover,
.product-card__body .folio-item__project-link:focus {
    color: var(--palette-violet);
}

@media screen and (max-width: 1000px) {
    .s-portfolio__products.product-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 550px) {
    .s-portfolio__products.product-cards {
        grid-template-columns: 1fr;
        gap: var(--vspace-1_25);
    }
}

.btn--primary {
    background: linear-gradient(
        135deg,
        var(--palette-violet) 0%,
        var(--palette-azure) 100%
    );
    border: none;
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--palette-azure);
    color: #fff;
}

.ss-go-top a {
    background-color: var(--palette-violet);
}

.ss-go-top a:hover {
    background-color: var(--palette-azure);
}

/* Product gallery carousel */
.s-gallery {
    background-color: var(--color-gray-18);
    border-top: 1px solid var(--color-border);
}

.s-gallery__intro {
    margin-top: 0;
    margin-bottom: var(--vspace-2);
    max-width: 40rem;
    color: var(--color-text);
}

.gallery-slider {
    margin: 0 auto;
    max-width: calc(var(--width-max) + 40px);
    padding: 0 var(--gutter);
}

.gallery-slider__slide {
    padding: 0 calc(var(--gutter) / 2);
    outline: none;
}

.gallery-slider__slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 0;
    background: var(--color-gray-17);
}

.gallery-slider .slick-list {
    overflow: hidden;
}

.gallery-slider__arrow {
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-gray-16);
    color: var(--palette-azure);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery-slider__arrow:hover,
.gallery-slider__arrow:focus {
    background: var(--palette-violet);
    border-color: var(--palette-violet);
    color: #fff;
}

.gallery-slider .slick-prev {
    left: -12px;
}

.gallery-slider .slick-next {
    right: -12px;
}

.gallery-slider .slick-dots {
    position: relative;
    bottom: 0;
    margin-top: var(--vspace-1_5);
}

@media screen and (max-width: 1200px) {
    .gallery-slider .slick-prev {
        left: 4px;
    }

    .gallery-slider .slick-next {
        right: 4px;
    }
}

@media screen and (max-width: 600px) {
    .gallery-slider__slide img {
        height: 220px;
    }
}

/* Contact — compact */
.s-contact {
    background: linear-gradient(
        135deg,
        var(--palette-violet) 0%,
        var(--palette-slate) 55%,
        var(--palette-azure) 100%
    );
}

.s-contact__top {
    margin-bottom: var(--vspace-1);
}

.s-contact__label {
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 0.35rem;
}

.s-contact__headline {
    margin: 0 auto;
    max-width: 32rem;
    font-family: var(--font-2);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.s-contact__cards {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    height: 100%;
    padding: 1rem 1.1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.contact-card__icon {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.contact-card__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.contact-card p {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.contact-card p a {
    color: #fff;
    border-bottom: none;
}

.contact-card > a {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-card > a:hover,
.contact-card > a:focus {
    color: #fff;
    border-bottom-color: #fff;
}

.s-contact__cards .column {
    margin-bottom: 0.75rem;
}

@media screen and (min-width: 801px) {
    .s-contact__cards .column {
        margin-bottom: 0;
    }
}

/* Site footer — reference layout */
.site-footer.s-footer {
    padding: 0;
    color: #b0b0b0;
    background-color: #000000;
}

.site-footer.s-footer a {
    color: #b0b0b0;
    border-bottom: none;
}

.site-footer__main {
    padding: 3.5rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 2.5rem 3rem;
    max-width: var(--width-max);
    margin: 0 auto;
}

.site-footer__title {
    margin: 0 0 1rem;
    font-family: var(--font-2);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
}

.site-footer__text {
    margin: 0;
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #9a9a9a;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-footer__social a {
    color: #ffffff;
    font-size: 1.15rem;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
}

.site-footer__social a:hover,
.site-footer__social a:focus {
    opacity: 1;
    color: var(--palette-azure);
}

.site-footer__menu-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li {
    padding-left: 0;
    margin-bottom: 0.35rem;
}

.site-footer__links a {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #9a9a9a;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: #ffffff;
}

.site-footer__bottom {
    padding: 0 clamp(1.5rem, 5vw, 4rem) 2.5rem;
    background-color: #000000;
}

/* Copyright — single straight line */
.ss-copyright__line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 auto;
    max-width: 100%;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1;
    color: #9a9a9a;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ss-copyright__line::-webkit-scrollbar {
    display: none;
}

.ss-copyright__text {
    flex-shrink: 0;
    color: #9a9a9a;
}

.ss-copyright__brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff !important;
    border-bottom: none !important;
    font-size: 1em;
    font-weight: 600;
    white-space: nowrap;
}

.ss-copyright__brand:hover,
.ss-copyright__brand:focus {
    color: var(--palette-azure) !important;
}

.ss-copyright__brand-icon {
    width: 26px;
    height: 26px;
    margin: 0;
    flex-shrink: 0;
    object-fit: contain;
}

@media screen and (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__col--about {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 550px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__main {
        padding-top: 2.5rem;
    }
}
