/* =========================================================
PROJECTS PAGE
STUDIO-ECOARC
========================================================= */

/* =========================================================
BASE
========================================================= */
.projects-hero, .projects-archive, .projects-statement, .projects-contact { width: 100%; }
.projects-hero .container, .projects-archive .container, .projects-statement .container, .projects-contact .container { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }

/* =========================================================
HERO
========================================================= */
.projects-hero { min-height: 72vh; display: flex; align-items: flex-end; padding: 150px 0 70px; background: #f4f3f0; }
.projects-hero__content { width: 100%; }
.projects-hero h1 { max-width: 900px; margin: 0; font-size: clamp(62px, 7.5vw, 116px); line-height: .94; letter-spacing: -.055em; font-weight: 500; color: #111; }
.projects-hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-top: 65px; padding-top: 24px; border-top: 1px solid #d4d2cd; }
.projects-hero__bottom p { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.75; color: #5f5e5a; }
.projects-hero__count { flex-shrink: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #888; }

/* =========================================================
ARCHIVE & FILTER
========================================================= */
.projects-archive { padding: 100px 0 130px; background: #fff; }
.projects-filter { display: flex; align-items: center; gap: 28px; margin-bottom: 55px; padding-bottom: 20px; border-bottom: 1px solid #d7d5d0; }
.projects-filter__item { appearance: none; border: 0; padding: 0; background: transparent; color: #999; font-family: inherit; font-size: 12px; cursor: pointer; transition: color .25s ease; }
.projects-filter__item:hover, .projects-filter__item.is-active { color: #111; }
.projects-filter__item.is-active { text-decoration: underline; text-underline-offset: 5px; }

/* =========================================================
PROJECT LIST
========================================================= */
.projects-list { border-top: 1px solid #d4d2cd; }
.archive-project { display: block; color: inherit; text-decoration: none; border-bottom: 1px solid #d4d2cd; }
.archive-project__image { overflow: hidden; aspect-ratio: 2.15 / 1; background: #e9e8e4; }
.archive-project__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.65,.2,1); }
.archive-project:hover .archive-project__image img { transform: scale(1.025); }

.archive-project__info { display: grid; grid-template-columns: 70px minmax(0, 1fr) 170px 30px; align-items: center; gap: 25px; min-height: 105px; padding: 20px 0; }
.archive-project__number { align-self: start; padding-top: 4px; font-size: 11px; color: #999; }
.archive-project__main h2 { margin: 0 0 7px; font-size: 27px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; color: #111; }
.archive-project__main p { margin: 0; font-size: 12px; color: #777; }
.archive-project__meta { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #888; }
.archive-project__arrow { justify-self: end; font-size: 19px; color: #222; transition: transform .25s ease; }
.archive-project:hover .archive-project__arrow { transform: translate(4px, -4px); }

/* =========================================================
STATEMENT & CONTACT
========================================================= */
.projects-statement { padding: 150px 0; background: #171717; color: #fff; }
.projects-statement__inner { max-width: 950px; }
.projects-statement .eyebrow { color: #999; }
.projects-statement h2 { max-width: 900px; margin: 0; font-size: clamp(48px, 5.8vw, 84px); line-height: .98; letter-spacing: -.05em; font-weight: 400; }
.projects-statement__inner > p:last-child { max-width: 500px; margin: 42px 0 0; font-size: 15px; line-height: 1.8; color: #aaa; }

.projects-contact { padding: 130px 0; background: #f4f3f0; }
.projects-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0; border-top: 1px solid #ceccc7; border-bottom: 1px solid #ceccc7; }
.projects-contact h2 { margin: 0; font-size: clamp(50px, 6vw, 88px); line-height: .92; letter-spacing: -.055em; font-weight: 500; color: #111; }
.projects-contact__action { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.projects-contact__action p { max-width: 390px; margin: 0 0 30px; font-size: 15px; line-height: 1.8; color: #666; }

.button { display: inline-flex; align-items: center; gap: 16px; padding: 15px 22px; text-decoration: none; font-size: 12px; font-weight: 600; transition: opacity .25s ease, transform .25s ease; }
.button--dark { background: #151515; color: #fff; }
.button:hover { opacity: .8; transform: translateY(-2px); }

/* =========================================================
TABLET
========================================================= */
@media (max-width: 900px) {
    .projects-hero .container, .projects-archive .container, .projects-statement .container, .projects-contact .container { width: min(100% - 48px, 760px); }
    .projects-hero { min-height: 68vh; padding: 130px 0 55px; }
    .projects-hero h1 { font-size: clamp(55px, 9.5vw, 90px); }
    .projects-hero__bottom { margin-top: 50px; }
    .archive-project__info { grid-template-columns: 55px minmax(0, 1fr) 120px 25px; gap: 18px; }
    .archive-project__main h2 { font-size: 23px; }
    .projects-contact__inner { grid-template-columns: 1fr; gap: 55px; }
}

/* =========================================================
MOBILE
========================================================= */
@media (max-width: 600px) {
    .projects-hero .container, .projects-archive .container, .projects-statement .container, .projects-contact .container { width: calc(100% - 36px); }
    .projects-hero { min-height: 75vh; padding: 110px 0 40px; }
    .projects-hero h1 { font-size: clamp(47px, 14vw, 68px); letter-spacing: -.06em; }
    .projects-hero__bottom { display: block; margin-top: 42px; padding-top: 20px; }
    .projects-hero__bottom p { max-width: 330px; margin-bottom: 20px; font-size: 14px; }
    .projects-hero__count { display: block; }
    .projects-archive { padding: 75px 0 90px; }
    .projects-filter { gap: 20px; margin-bottom: 38px; overflow-x: auto; scrollbar-width: none; }
    .projects-filter::-webkit-scrollbar { display: none; }
    .projects-filter__item { flex-shrink: 0; font-size: 11px; }
    .archive-project__image { aspect-ratio: 1.15 / 1; }
    .archive-project__info { grid-template-columns: 35px minmax(0, 1fr) 20px; gap: 12px; min-height: auto; padding: 19px 0 25px; }
    .archive-project__main h2 { margin-bottom: 6px; font-size: 19px; }
    .archive-project__main p { font-size: 11px; line-height: 1.5; }
    .archive-project__meta { display: none; }
    .archive-project__arrow { font-size: 17px; }
    .projects-statement { padding: 90px 0; }
    .projects-statement h2 { font-size: 43px; }
    .projects-statement__inner > p:last-child { margin-top: 30px; font-size: 14px; }
    .projects-contact { padding: 85px 0; }
    .projects-contact__inner { padding: 55px 0; gap: 42px; }
    .projects-contact h2 { font-size: 53px; }
    .projects-contact__action p { font-size: 14px; }
}

/* =========================================================
SMALL MOBILE
========================================================= */
@media (max-width: 380px) {
    .projects-hero .container, .projects-archive .container, .projects-statement .container, .projects-contact .container { width: calc(100% - 28px); }
    .projects-hero h1 { font-size: 45px; }
    .projects-statement h2 { font-size: 38px; }
    .projects-contact h2 { font-size: 48px; }
}

/* =========================================================
RTL SUPPORT (Projects Page)
========================================================= */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .archive-project:hover .archive-project__arrow { transform: translate(-4px, -4px); }
html[dir="rtl"] .projects-contact__action { align-items: flex-start; text-align: right; }
@media (max-width: 600px) {
    html[dir="rtl"] .projects-hero__bottom { text-align: right; }
    html[dir="rtl"] .projects-filter { justify-content: flex-start; }
}