﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;
    font-family: 'DM Sans', sans-serif;
    background: #0c0d12;
    color: #f6f6f8;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 5rem 1.5rem;
    background: radial-gradient(ellipse at 50% 45%, #171822 0%, #0c0d12 68%);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 4%);
    border-radius: 50%;
    content: '';
    transform: translate(-50%, -50%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 800px);
    text-align: center;
    animation: arrive 700ms ease-out both;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
    color: #a4a5b1;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__eyebrow span[aria-hidden="true"] {
    color: #777985;
}

.hero__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 11vw, 8.5rem);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.94;
}

.hero__title-line {
    display: block;
}

.hero__title-line:first-child {
    color: #fff;
}

.hero__title-line--rainbow {
    padding: 0.08em 0 0.12em;
    background: linear-gradient(
        100deg,
        #ff5277,
        #ff9c3d,
        #f2d541,
        #42ce8a,
        #36b6ed,
        #9a72ee,
        #ed58bb
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-hue 7s linear infinite;
}

.hero__description {
    max-width: 32rem;
    margin: 1.5rem auto 0;
    color: #a4a5b1;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.75;
}

.work-section {
    padding: clamp(4rem, 8vw, 7rem) 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 6%);
    background: #0c0d12;
}

.work-section--featured {
    background: #101117;
}

.work-section__inner {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-heading__eyebrow {
    margin: 0 0 0.65rem;
    color: #a4a5b1;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-heading__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.055em;
}

.carousel-controls {
    display: flex;
    gap: 0.6rem;
}

.carousel-controls__button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 50%;
    background: transparent;
    color: #f6f6f8;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.carousel-controls__button:hover {
    transform: translateY(-2px);
    border-color: rgb(255 255 255 / 36%);
    background: rgb(255 255 255 / 6%);
}

.carousel-controls__button:focus-visible,
.project-carousel:focus-visible {
    outline: 2px solid #a887ff;
    outline-offset: 4px;
}

.project-carousel {
    display: grid;
    grid-auto-columns: calc((100% - 2rem) / 3);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.25rem 0 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: #383943 transparent;
    scrollbar-width: thin;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 0.9rem;
    background: #15161d;
    scroll-snap-align: start;
}

.project-card__image {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    place-items: center;
    isolation: isolate;
}

.project-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__image--one { background: linear-gradient(135deg, #51416e, #cc8290); }
.project-card__image--two { background: linear-gradient(135deg, #22556a, #7eaa94); }
.project-card__image--three { background: linear-gradient(135deg, #a76542, #704c69); }
.project-card__image--four { background: linear-gradient(135deg, #514477, #447e9a); }
.project-card__image--five { background: linear-gradient(135deg, #a95842, #9c6681); }
.project-card__image--six { background: linear-gradient(135deg, #32685f, #6da58b); }

.project-card__image::before,
.project-card__image::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgb(255 255 255 / 23%);
    content: '';
}

.project-card__image::before {
    inset: 12% 16%;
    transform: rotate(-8deg);
}

.project-card__image::after {
    inset: 22% 28%;
    background: rgb(255 255 255 / 8%);
    transform: rotate(8deg);
}

.image-placeholder__label {
    z-index: 1;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    background: rgb(12 13 18 / 38%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-placeholder__shape {
    position: absolute;
    z-index: -1;
    width: 5rem;
    height: 5rem;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
}

.image-placeholder__shape--one {
    top: 15%;
    left: 12%;
}

.image-placeholder__shape--two {
    right: 10%;
    bottom: 12%;
    width: 7rem;
    height: 7rem;
    border-radius: 1rem;
    transform: rotate(24deg);
}

.project-card__details {
    padding: 1.25rem;
}

.project-card__category {
    margin: 0 0 0.5rem;
    color: #a4a5b1;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.project-card__description {
    margin: 0.55rem 0 0;
    color: #a4a5b1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: #f6f6f8;
    color: #0c0d12;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.project-card__link:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-2px);
}

.project-card__link:focus-visible {
    outline: 2px solid #a887ff;
    outline-offset: 4px;
}

.project-card__link:disabled {
    background: rgb(255 255 255 / 10%);
    color: #777985;
    cursor: not-allowed;
}

.site-footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #0a0b0f;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.site-footer__text {
    margin: 0;
    color: #a4a5b1;
    font-size: 0.9rem;
}

.site-footer__button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    background: #f6f6f8;
    color: #0c0d12;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.site-footer__button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.site-footer__button:focus-visible {
    outline: 2px solid #a887ff;
    outline-offset: 4px;
}

.quote-dialog {
    width: min(calc(100% - 2rem), 26rem);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 1rem;
    padding: 2rem;
    background: #15161d;
    color: #f6f6f8;
    text-align: center;
    box-shadow: 0 24px 60px rgb(0 0 0 / 50%);
}

.quote-dialog::backdrop {
    background: rgb(5 6 9 / 72%);
    backdrop-filter: blur(4px);
}

.quote-dialog[open] {
    animation: arrive 200ms ease-out both;
}

.quote-dialog__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.quote-dialog__message {
    margin: 0.85rem 0 1.5rem;
    color: #a4a5b1;
    line-height: 1.65;
}

.quote-dialog__close {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    background: #f6f6f8;
    color: #0c0d12;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.quote-dialog__close:focus-visible {
    outline: 2px solid #a887ff;
    outline-offset: 4px;
}

@media (max-width: 480px) {
    .site-footer__inner {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@keyframes rainbow-hue {
    to { filter: hue-rotate(360deg); }
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .project-carousel {
        grid-auto-columns: 70%;
    }

    .project-card__image {
        min-height: 190px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero__title {
        font-size: clamp(3.75rem, 17vw, 6rem);
    }

    .work-section {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .project-carousel {
        grid-auto-columns: 86%;
    }

    .section-heading__title {
        font-size: 2rem;
    }

    .carousel-controls__button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
