/* =========================================================
   XCY EVENTS
   SERVICES — INDEX DESIGN SYSTEM
========================================================= */

:root {
    --paper: #f3f1ec;
    --paper-dark: #e9e6df;
    --ink: #171717;
    --soft-ink: #55534f;
    --muted: #85827b;
    --line: rgba(23,23,23,.15);
    --accent: #6f2e32;
    --white: #ffffff;
    --sans: "Inter", Arial, Helvetica, sans-serif;
    --ease: cubic-bezier(.22,1,.36,1);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   HEADER — EXACT INDEX SYSTEM
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    padding: 0 4vw;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;

    border-bottom: 1px solid rgb(171,171,171);
    background: rgba(93,93,93,.708);
    backdrop-filter: blur(16px);

    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    width: max-content;
}

.brand img {
    width: auto;
    height: 100px;
    max-width: 140px;
    object-fit: contain;
}

.header-center {
    text-align: center;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .18em;
    color: white;
}

.menu-button {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 15px;

    border: 0;
    background: transparent;

    cursor: pointer;

    color: white;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
}

.menu-icon {
    width: 27px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-icon i {
    display: block;
    width: 100%;
    height: 1px;
    background: white;
}


/* =========================================================
   MENU PANEL — EXACT INDEX SYSTEM
========================================================= */

.menu-panel {
    position: fixed;
    inset: 0;

    background: #171717;
    color: #f3f1ec;

    z-index: 2000;

    transform: translateY(-100%);
    transition: transform .7s var(--ease);
}

.menu-panel.open {
    transform: translateY(0);
}

.menu-panel-inner {
    height: 100%;
    padding: 38px 5vw;

    display: flex;
    flex-direction: column;
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .16em;
}

.menu-top button {
    border: 0;
    background: none;

    color: #f3f1ec;

    cursor: pointer;

    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
}

.menu-top button strong {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 8px;
}

.menu-panel nav {
    margin-top: auto;
    margin-bottom: auto;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.menu-panel nav a {
    display: flex;
    align-items: center;
    gap: 35px;

    width: max-content;

    font-family: var(--sans);
    font-size: clamp(2rem,4vw,4rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -.02em;

    transition:
        color .3s ease,
        transform .3s ease;
}

.menu-panel nav a:hover {
    color: #aaa59d;
    transform: translateX(10px);
}

.menu-panel nav small {
    width: 25px;

    font-family: var(--sans);
    font-size: .58rem;
    font-weight: 500;

    color: #85827b;
    letter-spacing: .08em;
}

.menu-panel nav a span {
    letter-spacing: -.025em;
}

.menu-bottom {
    display: flex;
    justify-content: space-between;

    font-size: .55rem;
    font-weight: 500;
    letter-spacing: .16em;

    color: #85827b;
}


/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;

    min-height: 100svh;

    padding: 160px 7vw 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}

.hero-meta {
    position: absolute;

    top: 120px;
    left: 7vw;
    right: 7vw;

    display: flex;
    justify-content: space-between;

    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .16em;

    color: var(--muted);
}

.hero-content {
    max-width: 1100px;
}

.eyebrow {
    margin-bottom: 32px;

    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .2em;
}

.hero-content h1 {
    font-family: var(--sans);

    font-size: clamp(3.5rem,7vw,7rem);

    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 320px;

    margin-top: 45px;
    margin-left: 0;

    color: var(--soft-ink);

    font-size: .72rem;
    line-height: 1.9;
}

.hero-bottom {
    position: absolute;

    left: 7vw;
    right: 7vw;
    bottom: 25px;

    display: flex;
    justify-content: space-between;

    font-size: .52rem;
    font-weight: 500;
    letter-spacing: .16em;

    color: var(--muted);
}


/* =========================================================
   INTRO
========================================================= */

.services-intro {
    display: grid;

    grid-template-columns: 10% 90%;

    padding: 150px 7vw;

    border-bottom: 1px solid var(--line);
}

.intro-number {
    font-size: .58rem;
    font-weight: 500;
    color: var(--muted);
}

.intro-copy {
    max-width: 1050px;
}

.intro-copy > p:first-child {
    font-size: .72rem;
    line-height: 2;
    color: var(--soft-ink);
}

.intro-copy h2 {
    margin-top: 40px;

    font-family: var(--sans);

    font-size: clamp(3.5rem,6vw,6.5rem);

    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.055em;
}

.intro-copy h2 span {
    color: var(--accent);
}

.intro-line {
    width: 80px;
    height: 1px;

    margin: 80px 0 35px;

    background: var(--ink);
}

.intro-small {
    max-width: 470px;

    font-size: .72rem;
    line-height: 2;

    color: var(--soft-ink);
}


/* =========================================================
   SERVICE LIST
========================================================= */

.service-list {
    border-bottom: 1px solid var(--line);
}

.service-item {
    min-height: 310px;

    padding: 55px 7vw;

    display: grid;

    grid-template-columns: .7fr 2.5fr 2fr .4fr;

    gap: 30px;

    align-items: center;

    position: relative;
    overflow: hidden;

    cursor: pointer;

    border-bottom: 1px solid var(--line);

    transition:
        color .5s ease,
        opacity .8s var(--ease),
        transform .8s var(--ease);
}

.service-item:last-child {
    border-bottom: 0;
}


/* HOVER IMAGE */

.service-item::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 390px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%,-50%)
        scale(.85);

    background-image: var(--service-image);
    background-size: cover;
    background-position: center;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .6s var(--ease),
        transform .8s var(--ease);

    z-index: 0;
}

.service-item:hover::after {
    opacity: .16;

    transform:
        translate(-50%,-50%)
        scale(1);
}


/* DARK HOVER FIELD */

.service-item::before {
    content: "";

    position: absolute;
    inset: 0;

    background: var(--ink);

    transform: translateY(100%);

    transition: transform .7s var(--ease);

    z-index: -1;
}

.service-item:hover {
    color: var(--paper);
}

.service-item:hover::before {
    transform: translateY(0);
}

.service-number,
.service-title,
.service-description,
.service-arrow {
    position: relative;
    z-index: 2;
}

.service-number {
    font-size: .55rem;
    font-weight: 500;

    letter-spacing: .15em;

    color: var(--muted);

    transition: color .5s ease;
}

.service-item:hover .service-number {
    color: #aaa59d;
}

.service-title h2 {
    font-family: var(--sans);

    font-size: clamp(3.5rem,6vw,6.5rem);

    font-weight: 400;
    line-height: .98;
    letter-spacing: -.055em;
}

.service-description p {
    max-width: 320px;

    font-size: .7rem;
    line-height: 2;

    color: var(--soft-ink);

    transition: color .5s ease;
}

.service-item:hover .service-description p {
    color: #b8b2a9;
}

.service-tags {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    padding: 7px 10px;

    border: 1px solid var(--line);

    font-size: .42rem;
    font-weight: 500;
    letter-spacing: .1em;

    transition:
        border-color .5s ease,
        color .5s ease;
}

.service-item:hover .service-tags span {
    border-color: rgba(255,255,255,.2);
}

.service-arrow {
    justify-self: end;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);
    border-radius: 50%;

    font-size: 1rem;

    transition:
        transform .5s var(--ease),
        border-color .5s ease;
}

.service-item:hover .service-arrow {
    transform: rotate(45deg);

    border-color: rgba(255,255,255,.3);
}


/* =========================================================
   PROCESS
========================================================= */

.process {
    padding: 140px 7vw;

    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 10vw;

    border-bottom: 1px solid var(--line);
}

.process-heading > span {
    font-size: .52rem;
    font-weight: 500;
    letter-spacing: .16em;

    color: var(--muted);
}

.process-heading h2 {
    margin-top: 70px;

    font-size: clamp(3.5rem,6vw,6.5rem);

    font-weight: 400;
    line-height: .98;
    letter-spacing: -.055em;
}

.process-heading h2 span {
    color: var(--accent);
}

.process-list {
    border-top: 1px solid var(--line);
}

.process-item {
    padding: 35px 0;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 30px;

    border-bottom: 1px solid var(--line);
}

.process-item > span {
    font-size: .52rem;
    font-weight: 500;

    color: var(--muted);
}

.process-item h3 {
    font-size: .58rem;
    font-weight: 600;

    letter-spacing: .17em;
}

.process-item p {
    max-width: 390px;

    margin-top: 18px;

    color: var(--soft-ink);

    font-size: .7rem;
    line-height: 2;
}


/* =========================================================
   CUSTOM PROJECT
========================================================= */

.custom-project {
    min-height: 720px;

    padding: 130px 7vw;

    background: var(--paper-dark);

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid var(--line);
}

.custom-label {
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .18em;
}

.custom-project h2 {
    margin: 65px 0 45px;

    font-size: clamp(3.5rem,7vw,7rem);

    font-weight: 400;
    line-height: .98;
    letter-spacing: -.055em;
}

.custom-project h2 span {
    color: var(--accent);
}

.custom-project > p {
    max-width: 450px;

    color: var(--soft-ink);

    font-size: .72rem;
    line-height: 2;
}

.project-link {
    width: max-content;

    margin-top: 50px;

    padding-bottom: 8px;

    display: inline-flex;
    align-items: center;

    gap: 24px;

    border-bottom: 1px solid var(--ink);

    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .12em;

    text-transform: uppercase;
}

.project-link span {
    font-size: 1rem;
}


/* =========================================================
   FOOTER — EXACT INDEX SYSTEM
========================================================= */

.footer {
    padding: 90px 7vw 30px;

    background: var(--ink);
    color: var(--paper);
}

.footer-brand {
    padding-bottom: 80px;

    border-bottom: 1px solid rgba(241,238,231,.16);
}

.footer-brand img {
    width: auto;
    height: 65px;
    max-width: 180px;

    object-fit: contain;
}

.footer-brand p {
    margin-top: 25px;

    color: #85827b;

    font-size: .55rem;
    font-weight: 500;

    letter-spacing: .18em;
}

.footer-columns {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 50px;

    padding: 65px 0;

    border-bottom: 1px solid rgba(241,238,231,.16);
}

.footer-columns div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-columns span {
    color: #85827b;

    font-size: .5rem;
    font-weight: 600;

    letter-spacing: .18em;

    margin-bottom: 23px;
}

.footer-columns a,
.footer-columns p {
    font-size: .6rem;
    line-height: 2;

    color: #d8d4cc;
}

.footer-columns a {
    transition: color .3s ease;
}

.footer-columns a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 25px;

    display: flex;
    justify-content: space-between;

    font-size: .5rem;
    font-weight: 500;

    letter-spacing: .14em;

    color: #706d67;
}


/* =========================================================
   SCROLL REVEAL
   SAME ANIMATION LANGUAGE AS INDEX
========================================================= */

.scroll-reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity .9s var(--ease),
        transform 1s var(--ease);

    transition-delay:
        var(--reveal-delay, 0ms);
}

.scroll-reveal.revealed {
    opacity: 1;

    transform: translateY(0);
}


/* HERO REVEAL */

.hero-reveal {
    opacity: 0;

    transform: translateY(28px);

    animation:
        heroReveal 1s var(--ease) forwards;

    animation-delay:
        var(--hero-delay);
}

@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {

    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;

    scroll-behavior: auto !important;
}

.reduce-motion .scroll-reveal,
.reduce-motion .hero-reveal {

    opacity: 1;

    transform: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:800px) {

    .header {
        height: 76px;

        grid-template-columns: 1fr 1fr;
    }

    .header-center {
        display: none;
    }

    .brand img {
        height: 36px;
    }


    /* MENU */

    .menu-panel-inner {
        padding: 30px 7vw;
    }

    .menu-panel nav {
        gap: 18px;
    }

    .menu-panel nav a {
        font-size: clamp(2rem,10vw,4rem);

        gap: 22px;
    }


    /* HERO */

    .services-hero {
        min-height: 700px;

        padding: 140px 7vw 50px;
    }

    .hero-meta {
        top: 100px;

        font-size: .48rem;
    }

    .hero-meta span:last-child {
        display: none;
    }

    .hero-content {
        left: 7vw;
        right: 7vw;
    }

    .eyebrow {
        margin-bottom: 32px;
    }

    .hero-content h1 {
        font-size: clamp(3rem,14vw,5.5rem);

        line-height: 1.02;
    }

    .hero-text {
        max-width: 300px;

        margin-top: 35px;

        font-size: .68rem;
    }

    .hero-bottom {
        font-size: .45rem;
    }

    .hero-bottom span:last-child {
        display: none;
    }


    /* INTRO */

    .services-intro {
        display: block;

        padding: 100px 7vw;
    }

    .intro-number {
        margin-bottom: 45px;
    }

    .intro-copy h2 {
        font-size: clamp(3rem,12vw,5rem);
    }

    .intro-line {
        margin: 60px 0 35px;
    }

    .intro-small {
        font-size: .68rem;
    }


    /* SERVICES */

    .service-item {
        min-height: 440px;

        padding: 45px 7vw;

        display: block;
    }

    .service-number {
        margin-bottom: 45px;
    }

    .service-title h2 {
        font-size: clamp(3rem,12vw,5rem);
    }

    .service-description {
        margin-top: 45px;
    }

    .service-description p {
        font-size: .68rem;
    }

    .service-arrow {
        position: absolute;

        right: 7vw;
        top: 45px;
    }

    .service-item::after {
        width: 220px;
        height: 300px;
    }


    /* PROCESS */

    .process {
        display: block;

        padding: 100px 7vw;
    }

    .process-heading {
        margin-bottom: 80px;
    }

    .process-heading h2 {
        margin-top: 55px;

        font-size: clamp(3rem,12vw,5rem);
    }

    .process-item {
        grid-template-columns: 50px 1fr;

        gap: 20px;

        padding: 30px 0;
    }


    /* CUSTOM */

    .custom-project {
        min-height: 620px;

        padding: 100px 7vw;
    }

    .custom-project h2 {
        margin: 50px 0 40px;

        font-size: clamp(3rem,12vw,5rem);
    }


    /* FOOTER */

    .footer {
        padding-top: 75px;
    }

    .footer-brand img {
        height: 55px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;

        gap: 45px 30px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:500px) {

    .hero-meta {
        left: 7vw;
        right: 7vw;
    }

    .hero-bottom {
        left: 7vw;
        right: 7vw;
    }

    .service-item {
        min-height: 400px;
    }

    .service-title h2 {
        font-size: clamp(2.8rem,12vw,4.5rem);
    }

    .service-tags {
        max-width: 280px;
    }

}