
/* =========================================
   LOOMSITES
   Main stylesheet
========================================= */

:root {
    --background: #0b1020;
    --background-light: #10172a;
    --surface: #141d33;
    --surface-light: #19233b;
    --purple: #9878ff;
    --purple-light: #b5a0ff;
    --white: #f7f7fb;
    --muted: #a5aec2;
    --border: rgba(255, 255, 255, 0.10);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    height: 84px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 16, 32, 0.94);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-nav > a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-nav > a:hover {
    color: var(--white);
}

.main-nav .nav-cta {
    color: var(--white);
    padding: 11px 18px;
    border: 1px solid rgba(152, 120, 255, 0.5);
    border-radius: 8px;
}

.nav-cta span {
    color: var(--purple-light);
    margin-left: 7px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    padding: 95px 0 85px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 55px;
    min-height: 520px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.eyebrow-line {
    width: 27px;
    height: 1px;
    background: var(--purple);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(44px, 5.5vw, 68px);
    line-height: 1.08;
    letter-spacing: -3.5px;
    font-weight: 600;
}

.hero h1 span,
.section-heading h2 span,
.about-heading h2 span,
.contact-content h2 span {
    color: var(--purple-light);
}

.hero-description {
    max-width: 540px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
    margin-top: 27px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--purple);
    color: #fff;
}

.button-primary:hover {
    background: #8662f3;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: var(--border);
    color: var(--white);
    background: transparent;
}

.button-secondary:hover {
    border-color: var(--purple);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8994aa;
    font-size: 12px;
    margin-top: 35px;
}

.note-dot,
.location-dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    flex-shrink: 0;
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 470px;
    justify-self: end;
    padding: 20px 0 45px;
}

.visual-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    left: 8%;
    top: 5%;
    background: rgba(125, 88, 255, 0.14);
    filter: blur(85px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

.hero-woman {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.visual-caption {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    left: -28px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 19px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #151e34;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.caption-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(152, 120, 255, 0.17);
    color: var(--purple-light);
    font-family: var(--font-heading);
    font-weight: 700;
}

.visual-caption div {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.visual-caption strong {
    font-size: 12px;
}

.visual-caption div span {
    font-size: 10px;
    color: var(--muted);
}

.visual-decoration {
    position: absolute;
    border: 1px solid rgba(152, 120, 255, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 75px;
    height: 75px;
    right: -30px;
    top: 45px;
}

.decoration-two {
    width: 25px;
    height: 25px;
    left: -35px;
    bottom: 100px;
    background: rgba(152, 120, 255, 0.1);
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}


/* =========================================
   INTRO STRIP
========================================= */

.intro-strip {
    border-bottom: 1px solid var(--border);
    background: var(--background-light);
    padding: 22px 0;
}

.intro-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.intro-inner p {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.intro-inner span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   SHARED SECTION STYLES
========================================= */

.section {
    padding: 110px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 48px;
}

.section-heading .eyebrow {
    margin-bottom: 20px;
}

.section-heading h2,
.about-heading h2,
.contact-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 49px);
    line-height: 1.15;
    letter-spacing: -2px;
    font-weight: 600;
}

.section-heading > p {
    max-width: 370px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================
   SERVICES
========================================= */

.services-section {
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 275px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--background-light);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    border-color: rgba(152, 120, 255, 0.55);
    transform: translateY(-4px);
}

.service-featured {
    background:
        linear-gradient(
            135deg,
            rgba(152, 120, 255, 0.10),
            transparent 65%
        ),
        var(--background-light);
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.service-number {
    color: #7f8ba3;
    font-size: 12px;
    letter-spacing: 1px;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--purple-light);
    background: rgba(152, 120, 255, 0.13);
    font-size: 22px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    max-width: 470px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--purple-light);
    font-size: 13px;
    font-weight: 600;
    margin-top: 24px;
    transition: gap 0.2s ease;
}

.text-link:hover {
    gap: 15px;
}


/* =========================================
   ABOUT
========================================= */

.about-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
}

.about-heading .eyebrow {
    margin-bottom: 22px;
}

.about-content {
    padding-top: 8px;
}

.about-lead {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.about-content > p:not(.about-lead) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.approach-list {
    margin-top: 38px;
}

.approach-item {
    display: flex;
    gap: 22px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.approach-item > span {
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 700;
    padding-top: 3px;
}

.approach-item h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 5px;
}

.approach-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   PORTFOLIO
========================================= */

.work-section {
    background: var(--background);
}

.project-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 55px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--background-light);
}

.project-preview {
    overflow: hidden;
    border-radius: 9px;
    background: #e9dfcc;
    min-height: 330px;
    color: #30271e;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 38px;
    padding: 0 14px;
    background: #f8f5ef;
    color: #827b70;
    font-size: 10px;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c4bcae;
}

.project-screen {
    min-height: 292px;
    padding: 27px;
    background:
        linear-gradient(
            90deg,
            rgba(44, 34, 24, 0.90),
            rgba(44, 34, 24, 0.35)
        ),
        #9b8263;
    color: #fff6e9;
}

.project-brand {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 17px;
}

.project-screen-content {
    padding-top: 65px;
}

.project-screen-content > span {
    font-size: 9px;
    letter-spacing: 2px;
}

.project-screen-content h3 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 3.2vw, 39px);
    line-height: 1.1;
    margin-top: 12px;
    font-weight: 400;
}

.project-line {
    width: 40px;
    height: 2px;
    background: #e5c79c;
    margin-top: 22px;
}

.project-category {
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 17px;
}

.project-details h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 14px;
}

.project-details p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 90px;
    align-items: center;
}

.contact-content h2 {
    font-size: clamp(40px, 5vw, 55px);
}

.contact-content > p {
    max-width: 450px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    margin-top: 25px;
}

.contact-email {
    display: inline-block;
    margin-top: 30px;
    font-size: 17px;
    font-weight: 600;
}

.contact-email span {
    color: var(--purple-light);
    margin-left: 8px;
}

.contact-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 28px;
}

.contact-form-wrap {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--background);
}

.form-heading {
    margin-bottom: 25px;
}

.form-heading h3 {
    font-family: var(--font-heading);
    font-size: 21px;
}

.form-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.contact-form-wrap form > label {
    display: block;
    color: #cbd0dc;
    font-size: 12px;
    margin: 17px 0 7px;
}

.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #111a2e;
    color: var(--white);
    padding: 12px 13px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
    border-color: var(--purple);
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
    color: #69758c;
}

.contact-form-wrap textarea {
    resize: vertical;
}

.contact-form-wrap select {
    color: var(--muted);
}

.form-submit {
    width: 100%;
    margin-top: 22px;
}

.hidden-field {
    display: none;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 17px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
}

.footer-inner > p,
.copyright {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 25px;
    }

    .hero h1 {
        font-size: 49px;
    }

    .hero-image-frame {
        height: 390px;
    }

    .about-grid,
    .contact-grid {
        gap: 45px;
    }

    .project-card {
        gap: 30px;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 36px, 520px);
    }

    .site-header {
        height: 72px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }

    .menu-toggle span {
        width: 23px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        background: #10172a;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-cta {
        text-align: center;
    }

    .hero {
        padding: 70px 0 55px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(42px, 11vw, 58px);
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        width: 100%;
        max-width: 390px;
        justify-self: center;
        padding: 5px 0 40px;
    }

    .hero-image-frame {
        height: 370px;
    }

    .visual-caption {
        left: 5px;
    }

    .intro-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .section-heading > p {
        margin-top: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
        padding: 25px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 25px;
    }

    .project-preview {
        min-height: 280px;
    }

    .project-screen {
        min-height: 242px;
    }

    .project-screen-content {
        padding-top: 45px;
    }

    .contact-form-wrap {
        padding: 23px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 380px) {

    .hero h1 {
        font-size: 39px;
    }

    .hero-image-frame {
        height: 320px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

}

/* Seamless hero image */
.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}

/* Blend the image into the page */
.hero-woman {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: normal;

    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 82%,
            transparent 100%),
        linear-gradient(to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 82%,
            transparent 100%);
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #a7a3b8;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

.footer-socials a:hover {
    color: #a78bfa;
    transform: translateY(-2px);
}

/* Purple ambient glow */
.hero-visual {
    position: relative;
    isolation: isolate;
}

.visual-glow {
    position: absolute;
    width: 75%;
    height: 75%;
    top: 12%;
    left: 12%;
    background: #8055e8;
    filter: blur(100px);
    opacity: 0.22;
    z-index: -1;
    pointer-events: none;
}
