/* =========================================================
   FRAME A2Z — WARM EDITORIAL DESIGN
   Palette: Warm White / White / Beige / Olive
   ========================================================= */

:root {
    --warm-white: #f7f4ec;
    --white: #fffdf8;
    --beige: #e8e0cf;
    --beige-dark: #d7ccb6;
    --olive: #596044;
    --olive-dark: #3f4630;
    --ink: #1f211b;
    --muted: #77786d;
    --line: #d8d2c4;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

body::selection {
    background: var(--olive);
    color: var(--white);
}

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

img {
    display: block;
    width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.page-grain {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    padding: 20px 5vw;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--white);
    background: linear-gradient(to bottom, rgba(18, 20, 14, .58), transparent);
}

.brand {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .18em;
    white-space: nowrap;
}

.brand span {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.nav-links a,
.nav-cta,
.back {
    transition: opacity .25s ease, transform .25s ease;
}

.nav-links a:hover,
.nav-cta:hover,
.back:hover {
    opacity: .65;
}

.nav-cta {
    border: 1px solid rgba(255, 253, 248, .55);
    padding: 11px 15px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}

.nav-cta span,
.hero-btn span,
.text-link span {
    margin-left: 7px;
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--olive-dark);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 27, 18, .83) 0%, rgba(37, 39, 27, .48) 48%, rgba(37, 39, 27, .18) 100%),
        linear-gradient(0deg, rgba(18, 20, 14, .65), transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, 88vw);
    padding-top: 65px;
    color: var(--white);
}

.eyebrow {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .25em;
}

.eyebrow.olive {
    color: var(--olive);
}

.eyebrow.light {
    color: rgba(255, 253, 248, .78);
}

.hero h1 {
    max-width: 950px;
    margin: 25px 0 30px;
    font-family: var(--serif);
    font-size: clamp(62px, 9.5vw, 145px);
    line-height: .86;
    font-weight: 500;
    letter-spacing: -.055em;
}

.hero h1 em {
    color: #ddd6bf;
    font-style: italic;
}

.hero-intro {
    max-width: 480px;
    margin-bottom: 38px;
    color: rgba(255, 253, 248, .82);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 253, 248, .65);
    padding: 15px 19px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    transition: background .3s ease, color .3s ease;
}

.hero-btn:hover {
    background: var(--white);
    color: var(--olive-dark);
}

.text-link {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.hero-bottom {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 5vw;
    right: 5vw;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 253, 248, .62);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
}

/* GENERAL SECTIONS */

.work-section,
.services-section,
.about-section,
.quote-section {
    padding: 125px 7vw;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 70px;
}

.section-title {
    margin-top: 18px;
    font-family: var(--serif);
    font-size: clamp(45px, 6vw, 85px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
}

.section-title em {
    font-style: italic;
    color: var(--olive);
}

.section-note {
    max-width: 320px;
    color: var(--muted);
    font-size: 13px;
}

/* WORK */

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px 32px;
}

.work-item {
    min-width: 0;
}

.work-item.offset {
    margin-top: 135px;
}

.work-image {
    overflow: hidden;
    aspect-ratio: 1 / 1.08;
    background: var(--beige);
}

.work-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.045);
    filter: saturate(.82);
}

.work-item-info {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--line);
}

.work-item-info>div {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.work-number {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}

.work-item-info h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
}

.arrow {
    color: var(--olive);
    font-size: 20px;
    transition: transform .3s ease;
}

.work-item:hover .arrow {
    transform: translate(4px, -4px);
}

/* SERVICES */

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

.services-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: end;
    margin-bottom: 80px;
}

.services-intro .eyebrow {
    grid-column: 1 / -1;
}

.services-intro .section-title {
    margin-top: 0;
}

.services-intro>p:last-child {
    max-width: 490px;
    color: #67685d;
    font-size: 15px;
}

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

.service {
    padding: 30px 25px 38px 0;
    border-top: 1px solid rgba(63, 70, 48, .3);
    min-height: 305px;
    transition: padding-left .3s ease, background .3s ease;
}

.service:hover {
    padding-left: 14px;
}

.service-top {
    display: flex;
    justify-content: space-between;
    color: var(--olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.service-tag {
    opacity: .7;
}

.service h3 {
    max-width: 540px;
    margin: 16px 0 13px;
    font-family: var(--serif);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.05;
    font-weight: 500;
}

.service p {
    max-width: 570px;
    color: #66675c;
    font-size: 13px;
    line-height: 1.75;
}

.service a {
    display: inline-block;
    margin-top: 22px;
    color: var(--olive-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}

/* ABOUT */

.about-section {
    position: relative;
    background: var(--white);
}

.about-number {
    position: absolute;
    top: 45px;
    right: 7vw;
    color: var(--beige-dark);
    font-family: var(--serif);
    font-size: 150px;
    line-height: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 9vw;
    align-items: end;
    position: relative;
}

.about-copy {
    padding-bottom: 7px;
}

.about-copy>p {
    max-width: 540px;
    color: #62635a;
    font-size: 16px;
    line-height: 1.85;
}

.about-copy>p+p {
    margin-top: 22px;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--olive);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}

/* QUOTE */

.quote-section {
    background: var(--warm-white);
    text-align: center;
}

.quote-section .eyebrow {
    margin-bottom: 35px;
}

blockquote {
    max-width: 1000px;
    margin: auto;
    font-family: var(--serif);
    font-size: clamp(37px, 5.5vw, 78px);
    line-height: 1;
    letter-spacing: -.045em;
}

blockquote em {
    color: var(--olive);
}

/* CONTACT */

.contact-section {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 9vw;
    padding: 120px 7vw;
    background: var(--olive-dark);
    color: var(--white);
}

.contact-copy .section-title {
    margin-bottom: 30px;
}

.contact-copy .section-title em {
    color: #ded6bb;
}

.contact-copy>p:not(.eyebrow) {
    max-width: 450px;
    color: rgba(255, 253, 248, .68);
    font-size: 14px;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 253, 248, .6);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}


/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 7vw;
    background: var(--white);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

footer .dark {
    color: var(--ink);
    display: block;
    margin-bottom: 5px;
}

.footer-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
    gap: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.footer-right a:hover {
    color: var(--olive);
}

/* CATEGORY PAGES */

.category-page {
    background: var(--warm-white);
}

.category-page .navbar {
    background: rgba(30, 32, 23, .45);
}

.category-hero {
    height: 78svh;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: end;
    overflow: hidden;
    padding: 8vw;
    color: var(--white);
}

.category-hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero .hero-overlay {
    background: linear-gradient(90deg, rgba(24, 27, 18, .76), rgba(24, 27, 18, .18));
}

.category-copy {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.category-copy h1 {
    margin: 20px 0;
    font: 500 clamp(70px, 12vw, 170px) / .85 var(--serif);
    letter-spacing: -.055em;
}

.category-copy h1 em {
    font-style: italic;
    color: #ded6bb;
}

.category-copy>p:last-child {
    max-width: 430px;
    color: rgba(255, 253, 248, .75);
    font-size: 14px;
}

.portfolio {
    padding: 120px 7vw;
}

.portfolio-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 70px;
}

.portfolio-head h2 {
    font: 500 clamp(45px, 5vw, 70px) / 1 var(--serif);
}

.portfolio-head>p:last-child {
    grid-column: 2;
    max-width: 500px;
    color: var(--muted);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 65px 32px;
}

.video-placeholder {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--beige);
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(63, 70, 48, .08);
}

.video-placeholder span {
    color: var(--olive);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
}

.video-placeholder small {
    position: absolute;
    bottom: 18px;
    left: 20px;
    color: var(--muted);
    font-size: 10px;
}

.video-placeholder button {
    position: absolute;
    width: 58px;
    height: 58px;
    border: 1px solid var(--olive);
    border-radius: 50%;
    background: rgba(255, 253, 248, .72);
    color: var(--olive-dark);
    cursor: pointer;
    transition: transform .3s ease, background .3s ease;
}

.video-placeholder button:hover {
    transform: scale(1.08);
    background: var(--white);
}

.video-info {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.video-info h3 {
    font: 500 24px var(--serif);
}

.video-info span {
    color: var(--muted);
    font-size: 10px;
}

/* ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1);
    }
}

/* MOBILE */

@media (max-width: 900px) {
    .nav-links {
        gap: 17px;
    }

    .nav-cta {
        display: none;
    }

    .services-intro,
    .about-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .services-intro .eyebrow {
        grid-column: auto;
    }

    .contact-section {
        gap: 55px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 18px 6vw;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu {
        display: block;
        margin-left: auto;
    }

    .nav-links.open {
        position: absolute;
        top: 68px;
        left: 6vw;
        right: 6vw;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        background: rgba(63, 70, 48, .96);
        border: 1px solid rgba(255, 255, 255, .15);
    }

    .hero-content {
        width: 88vw;
    }

    .hero h1 {
        font-size: clamp(54px, 16vw, 78px);
        margin: 22px 0;
    }

    .hero-intro {
        font-size: 13px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero-bottom {
        font-size: 7px;
    }

    .hero-bottom span:last-child {
        display: none;
    }

    .work-section,
    .services-section,
    .about-section,
    .quote-section,
    .portfolio {
        padding: 85px 6vw;
    }

    .section-head {
        display: block;
        margin-bottom: 45px;
    }

    .section-note {
        margin-top: 25px;
    }

    .section-title {
        font-size: clamp(42px, 12vw, 62px);
    }

    .work-grid,
    .services-list,
    .video-grid,
    .portfolio-head {
        grid-template-columns: 1fr;
    }

    .work-item.offset {
        margin-top: 0;
    }

    .work-image {
        aspect-ratio: 1 / 1.1;
    }

    .services-intro {
        display: block;
        margin-bottom: 50px;
    }

    .services-intro>p:last-child {
        margin-top: 25px;
    }

    .service {
        min-height: auto;
        padding: 27px 0 35px;
    }

    .service:hover {
        padding-left: 0;
    }

    .service h3 {
        font-size: 29px;
    }

    .about-number {
        top: 30px;
        right: 6vw;
        font-size: 90px;
    }

    .about-copy>p {
        font-size: 14px;
    }

    blockquote {
        font-size: 39px;
    }

    .contact-section {
        padding: 85px 6vw;
    }

    .contact-details {
        margin-top: 35px;
    }

    footer {
        display: block;
        padding: 35px 6vw;
    }

    .footer-right {
        justify-content: start;
        margin-top: 25px;
    }

    .category-hero {
        min-height: 520px;
        padding: 8vw 6vw;
    }

    .category-copy h1 {
        font-size: 72px;
    }

    .portfolio-head>p:last-child {
        grid-column: auto;
    }

    .video-placeholder {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}