@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --ember: #A96B41;
    --charcoal: #212121;
    --paper: #D7D8D7;
    --black: #111111;
    --white: #F4F2EE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

h1 {
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.eyebrow {
    margin-bottom: 24px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember);
}


/* =========================
   HEADER
========================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.logo img {
    display: block;
    width: 135px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 36px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.main-nav a {
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--ember);
}

.menu-button {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 12vh 5vw 10vh;
    position: relative;

    background:
        linear-gradient(
            90deg,
            #000000D9 0%,
            #00000080 55%,
            #00000033 100%
        ),
        url("../images/kindall-hero.png");

    background-size: cover;
    background-position: 80% center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 900px;
}

.hero-description {
    max-width: 560px;
    margin-top: 32px;
    font-size: 1rem;
    color: #D5D2CC;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-link span {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-link:hover span {
    transform: translateX(6px);
}


/* =========================
   INTRO
========================= */

.intro {
    min-height: 75vh;
    padding: 12vh 10vw;
    background: var(--paper);
    color: var(--black);
}

.intro h2 {
    max-width: 900px;
}

.intro-text {
    max-width: 520px;
    margin-top: 40px;
    font-size: 1rem;
    color: #3F3F3F;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 12vh 5vw;
    background: var(--black);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 100px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.service {
    padding-top: 24px;
    border-top: 1px solid #555555;
}

.service span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--ember);
}

.service h3 {
    margin-top: 40px;
    font-size: clamp(2rem, 3vw, 3.5rem);
}

.service p {
    max-width: 320px;
    margin-top: 20px;
    color: #BDBDBD;
}


/* =========================
   DIGITAL EXPERIENCE
========================= */

.digital-experience {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 10vh 5vw;

    background:
        linear-gradient(
            90deg,
            #111111 0%,
            #15110F 55%,
            #24130C 100%
        );
}


/* TEXT */

.digital-content {
    position: relative;
    z-index: 1;
    width: 48%;
    max-width: 650px;
    margin-left: auto;
}


.digital-content h2 {
    max-width: 650px;
}


.digital-text {
    max-width: 500px;
    margin-top: 36px;
    color: #C8C4BE;
    font-size: 1rem;
}


/* PHONE */

.phone-display {
    position: absolute;
    z-index: 2;

    left: 4vw;
    top: 50%;

    width: min(62vw, 950px);

    transform: translate(120vw, -50%);
}


/* When the section becomes visible */

.digital-experience.active .phone-display {
    animation: phoneReveal 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


.phone-display img {
    display: block;
    width: 100%;
    height: auto;
}


@keyframes phoneReveal {

    from {
        transform: translate(120vw, -50%);
    }

    to {
        transform: translate(0, -50%);
    }

}


/* =========================
   CONTACT
========================= */

.closing {
    min-height: 80vh;
    padding: 12vh 10vw;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4vw;
    align-items: center;
    background: var(--paper);
    color: var(--black);
    overflow: hidden;
}

.closing-content {
    max-width: 650px;
}

.closing h2 {
    max-width: 700px;
}

.closing-text {
    max-width: 520px;
    margin-top: 36px;
    color: #4A4A4A;
    font-size: 1rem;
    line-height: 1.7;
}

.businesswoman-frame {
    width: min(100%, 560px);
    padding: 16px;
    border: 1px solid var(--ember);
}

.businesswoman-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 190px;
    margin-top: 36px;
    padding: 14px 18px 14px 22px;

    background: var(--white);
    color: var(--black);

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    background: var(--black);
    color: var(--white);

    border-radius: 50%;

    font-size: 1rem;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 32px 5vw;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888888;
    background: var(--black);
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-button span {
        display: block;
        width: 28px;
        height: 1px;
        background: var(--white);
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .digital-experience {
        min-height: 850px;
        align-items: flex-start;
        padding-top: 12vh;
    }

    .digital-content {
        width: 100%;
        max-width: 600px;
    }

    .phone-display {
        width: 90vw;
        right: -15vw;
        top: auto;
        bottom: -5%;
        transform: translateX(100%);

        animation: phoneSlideInMobile 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        .closing {
    grid-template-columns: 1fr;
    gap: 60px;
}

.businesswoman-frame {
    width: 100%;
}
    }

    @keyframes phoneSlideInMobile {

        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }

    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .site-header {
        padding: 24px 6vw;
    }

    .logo img {
        width: 135px;
    }

    .hero {
        padding: 12vh 6vw 8vh;
        background-position: 60% center;
    }

    .intro,
    .services,
    .closing {
        padding-left: 6vw;
        padding-right: 6vw;
    }
.businesswoman-frame {
    width: min(100%, 600px);
}
    .intro {
        min-height: 70vh;
    }

    .digital-experience {
        min-height: 800px;
        padding: 10vh 6vw;
    }

    .phone-display {
        width: 110vw;
        right: -35vw;
        bottom: -2%;
    }

    .site-footer {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}

/* Fade the hero text in and move it into place when the page loads. */
.hero-content > * {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-in-up 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger each line */
.hero-content > :nth-child(1) { animation-delay: 100ms; } /* BUILD & GROW */
.hero-content > :nth-child(2) { animation-delay: 200ms; } /* headline */
.hero-content > :nth-child(3) { animation-delay: 300ms; } /* description */
.hero-content > :nth-child(4) { animation-delay: 400ms; } /* Explore link */

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Skip the animation and show the text immediately. */
    .hero-content > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
