:root {
    --ink: #000;
    --paper: #fff;
    --cream: #f4f0ec;
    --gold: #cda274;
    --container: 1600px;
    --gutter: clamp(20px, 4vw, 80px);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Lato, sans-serif;
}

body * {
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

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

button,
input {
    font: inherit;
}

.noir-header {
    width: min(var(--container), calc(100% - var(--gutter) * 2));
    min-height: 122px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 42px;
}

.brand {
    font-family: "Abhaya Libre", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 34px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
}

.site-nav a,
.footer-links a {
    transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--gold);
}

.header-cta {
    width: 199px;
    height: 69px;
    display: inline-grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 220ms ease, transform 220ms ease;
}

.header-cta:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

main {
    display: grid;
    gap: clamp(92px, 8.8vw, 168px);
}

.hero-section {
    width: min(var(--container), calc(100% - var(--gutter) * 2));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 967px) minmax(320px, 458px);
    align-items: end;
    gap: clamp(48px, 9vw, 174px);
}

.hero-left {
    display: grid;
    gap: 47px;
}

.hero-main {
    width: min(913px, 100%);
    aspect-ratio: 913 / 435;
}

.hero-title-row {
    display: grid;
    grid-template-columns: minmax(0, 621px) minmax(250px, 298px);
    align-items: end;
    gap: 0;
}

h1,
h2 {
    font-family: "Abhaya Libre", serif;
    font-weight: 700;
    text-transform: capitalize;
}

h1 {
    font-size: clamp(88px, 10vw, 192px);
    line-height: .755;
    max-width: 621px;
}

.hero-title-row p,
.split-copy p,
.living-copy p,
.section-heading p,
.project-card p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.25;
}

.hero-feature {
    display: grid;
    gap: 65px;
}

.hero-feature > div {
    display: grid;
    gap: 21px;
    max-width: 410px;
}

.eyebrow {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 300;
}

.hero-feature h2 {
    max-width: 410px;
    font-size: 32px;
    line-height: 1.3;
}

.hero-feature img {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.outline-btn {
    width: max-content;
    min-width: 161px;
    min-height: 52px;
    display: inline-grid;
    place-items: center;
    padding: 13px 22px 12px;
    border: 1.5px solid currentColor;
    font-family: "Abhaya Libre", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.outline-btn:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

.split-section,
.process-section,
.living-section,
.gallery-section {
    width: min(var(--container), calc(100% - var(--gutter) * 2));
    margin: 0 auto;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 910px) minmax(360px, 650px);
    align-items: center;
    gap: 41px;
}

.split-image {
    width: 100%;
    aspect-ratio: 910 / 635;
}

.split-copy {
    display: grid;
    gap: 52px;
}

.split-copy h2,
.process-copy h2,
.living-copy h2,
.section-heading h2,
.cta-section h2 {
    font-size: clamp(52px, 4.6vw, 88px);
    line-height: .94;
}

.split-copy p {
    max-width: 650px;
}

.phone-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-icon {
    width: 93px;
    height: 93px;
    display: grid;
    place-items: center;
    flex: 0 0 93px;
    border-radius: 50%;
    background: var(--cream);
}

.phone-card span:last-child {
    display: grid;
    font-family: Jost, sans-serif;
    font-size: 22px;
    line-height: 1.5;
}

.phone-card strong {
    font-weight: 400;
    font-size: 24px;
}

.process-section {
    display: grid;
    grid-template-columns: minmax(0, 652px) minmax(420px, 833px);
    align-items: center;
    gap: clamp(50px, 6.2vw, 118px);
}

.process-section img {
    width: 100%;
    aspect-ratio: 833 / 625;
}

.process-copy {
    display: grid;
    gap: 39px;
}

.process-step {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px;
    max-width: 586px;
}

.process-step-flipped {
    grid-template-columns: auto 1fr;
}

.process-step h3 {
    font-size: 19px;
    font-weight: 500;
}

.process-step p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.25;
}

.process-step span {
    font-family: "Abhaya Libre", serif;
    font-size: clamp(58px, 5.1vw, 98px);
    line-height: .95;
}

.living-section {
    display: grid;
    grid-template-columns: minmax(440px, 770px) minmax(360px, 718px);
    align-items: center;
    gap: clamp(42px, 3.5vw, 66px);
}

.layered-images {
    min-height: 641px;
    position: relative;
}

.layered-images img:first-child {
    width: 73%;
    aspect-ratio: 561 / 374;
}

.layered-images img:last-child {
    width: 68%;
    aspect-ratio: 524 / 374;
    position: absolute;
    right: 0;
    bottom: 0;
    border: 5px solid var(--paper);
}

.living-copy {
    display: grid;
    gap: 52px;
}

.living-copy p {
    max-width: 685px;
}

.gallery-section {
    display: grid;
    justify-items: center;
    gap: clamp(62px, 6.8vw, 131px);
}

.section-heading {
    max-width: 718px;
    display: grid;
    justify-items: center;
    gap: 23px;
    text-align: center;
}

.section-heading p {
    max-width: 685px;
}

.project-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 78px 34px;
}

.project-card {
    display: grid;
    gap: 24px;
}

.project-card img {
    width: 100%;
    aspect-ratio: 781 / 496;
}

.project-card h3 {
    font-family: "Abhaya Libre", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
}

.stats-section {
    min-height: 475px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 288px));
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 96px var(--gutter);
    background: var(--cream);
}

.stats-section div {
    min-height: 195px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.stats-section div + div {
    border-left: 1px solid var(--gold);
}

.stats-section strong {
    color: var(--gold);
    font-family: "Abhaya Libre", serif;
    font-size: clamp(56px, 4.4vw, 85px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .02em;
}

.stats-section span {
    font-size: 19px;
    font-weight: 300;
}

.cta-section {
    width: min(1614px, calc(100% - var(--gutter) * 2));
    min-height: 414px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 72px 24px;
    background: linear-gradient(rgba(0, 0, 0, .24), rgba(0, 0, 0, .24)), url("../../../assets/work page/all works inners/Noir/live/Frame.jpg") center / cover no-repeat;
    color: var(--paper);
    text-align: center;
}

.cta-section div {
    max-width: 718px;
    display: grid;
    justify-items: center;
    gap: 26px;
}

.cta-section p {
    max-width: 460px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
}

.outline-btn-light:hover {
    background: var(--paper);
    color: var(--ink);
}

.noir-footer {
    margin-top: clamp(92px, 8.8vw, 168px);
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(320px, 680px) minmax(420px, 802px);
    align-items: start;
    gap: clamp(54px, 6vw, 117px);
    padding: 99px max(var(--gutter), calc((100vw - 1600px) / 2)) 120px;
    background: var(--ink);
    color: var(--paper);
}

.footer-brand {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 72px;
}

.footer-brand > div {
    display: grid;
    gap: 67px;
}

.footer-brand p {
    max-width: 680px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.44;
    letter-spacing: .04em;
    text-transform: capitalize;
}

.footer-brand small {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: capitalize;
}

.footer-content {
    display: grid;
    gap: 54px;
}

.newsletter {
    max-width: 571px;
    display: grid;
    gap: 54px;
}

.newsletter label {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.44;
    letter-spacing: .04em;
    text-transform: capitalize;
}

.newsletter div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1.5px solid var(--paper);
}

.newsletter input {
    min-height: 52px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--paper);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.newsletter input::placeholder {
    color: var(--paper);
    opacity: 1;
}

.newsletter button {
    border: 0;
    background: transparent;
    color: var(--paper);
    font-size: 34px;
    cursor: pointer;
}

.footer-links {
    min-height: 187px;
    display: grid;
    grid-template-columns: 140px 155px 1fr;
    gap: clamp(54px, 7vw, 116px);
    align-items: start;
}

.footer-links nav {
    display: grid;
    gap: 14px;
}

.footer-links a,
.social-links a {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.44;
    letter-spacing: .04em;
    text-transform: capitalize;
}

.social-links {
    align-self: end;
    justify-self: end;
    display: flex;
    gap: 32px;
}

.social-links a {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

[data-animate] {
    will-change: opacity, transform;
}

@media (max-width: 1180px) {
    .noir-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        justify-self: end;
        display: grid !important;
        place-items: center;
        gap: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 2px;
        display: block;
        background: var(--ink);
        transition: transform 180ms ease;
    }

    .site-nav,
    .header-cta {
        grid-column: 1 / -1;
        display: none;
    }

    body.nav-open .site-nav,
    body.nav-open .header-cta {
        display: flex;
    }

    body.nav-open .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 0 0;
    }

    body.nav-open .header-cta {
        width: 100%;
        margin-bottom: 28px;
    }

    body.nav-open .menu-toggle span:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    body.nav-open .menu-toggle span:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

    .hero-section,
    .split-section,
    .process-section,
    .living-section,
    .noir-footer {
        grid-template-columns: 1fr;
    }

    .hero-title-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-feature {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 32px;
    }

    .split-copy,
    .living-copy {
        gap: 32px;
    }

    .living-section {
        gap: 34px;
    }

    .layered-images {
        min-height: 58vw;
    }

    .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-section div + div {
        border-left: 0;
    }

    .stats-section div:nth-child(2n) {
        border-left: 1px solid var(--gold);
    }

    .noir-footer {
        min-height: 0;
    }

    .footer-brand {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 20px;
    }

    .noir-header {
        min-height: 86px;
    }

    .menu-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 30;
    }

    .hero-section,
    .split-section,
    .process-section,
    .living-section,
    .gallery-section {
        width: calc(100% - var(--gutter) * 2);
    }

    main {
        gap: 76px;
    }

    .hero-left,
    .hero-title-row,
    .hero-title-row h1,
    .hero-title-row p {
        width: 100%;
        max-width: calc(100vw - var(--gutter) * 2);
    }

    .hero-title-row p {
        max-width: min(320px, calc(100vw - var(--gutter) * 2));
    }

    h1 {
        font-size: clamp(60px, 18vw, 76px);
    }

    .split-copy h2,
    .process-copy h2,
    .living-copy h2,
    .section-heading h2,
    .cta-section h2 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .hero-feature {
        grid-template-columns: 1fr;
    }

    .hero-feature img,
    .split-image,
    .process-section img,
    .project-card img {
        border-radius: 0;
    }

    .hero-title-row p,
    .split-copy p,
    .living-copy p,
    .section-heading p,
    .process-step p,
    .project-card p {
        font-size: 17px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .process-step,
    .process-step-flipped {
        grid-template-columns: 1fr;
    }

    .process-step-flipped span {
        order: 2;
    }

    .living-section {
        grid-template-columns: 1fr;
    }

    .layered-images {
        min-height: 0;
        display: grid;
        gap: 18px;
    }

    .layered-images img:first-child,
    .layered-images img:last-child {
        width: 100%;
        position: static;
        border: 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .stats-section {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-block: 64px;
    }

    .stats-section div {
        min-height: 140px;
    }

    .stats-section div:nth-child(2n) {
        border-left: 0;
    }

    .stats-section div + div {
        border-top: 1px solid var(--gold);
    }

    .cta-section {
        width: 100%;
        min-height: 360px;
    }

    .noir-footer {
        margin-top: 76px;
        padding-block: 64px;
    }

    .footer-brand > div {
        gap: 34px;
    }

    .newsletter {
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .social-links {
        justify-self: start;
    }
}
