/* Poppins (SIL Open Font License 1.1, ver fonts/OFL.txt), servida pelo próprio website. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-italic.woff2") format("woff2"); }

:root {
    --ink: #171717;
    --paper: #fff;
    --muted: #707070;
    --line: #e7e7e7;
    --portfolio: #8bad8a;
    --projects: #007399;
    --shell: min(92vw, 1380px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.site-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    translate: 0 -200%;
    padding: .65rem 1rem;
    color: #fff;
    background: #111;
}

.skip-link:focus { translate: 0; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand img { width: min(315px, 58vw); height: auto; }

.site-navigation { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3.4rem); }

.site-navigation a {
    position: relative;
    padding-block: 1rem;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-navigation a::after {
    position: absolute;
    right: 0;
    bottom: .65rem;
    left: 0;
    height: 2px;
    content: "";
    scale: 0 1;
    background: currentColor;
    transform-origin: left;
    transition: scale .2s ease;
}

.site-navigation a:hover::after,
.site-navigation a.is-current::after { scale: 1; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
}

.home-hero {
    position: relative;
    display: grid;
    min-height: min(820px, calc(100vh - 86px));
    place-items: end start;
    overflow: hidden;
    color: #fff;
    background: #1c1c1c;
}

.home-hero__image,
.home-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__image { object-fit: cover; object-position: center; }
.home-hero__shade { background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .12) 72%); }
.home-hero__content { position: relative; z-index: 1; padding-block: clamp(5rem, 10vw, 9rem); }
.home-hero h1 { max-width: 800px; margin: 0; font-size: clamp(3.8rem, 10vw, 9rem); font-weight: 300; letter-spacing: -.055em; line-height: .9; }
.home-hero__text { max-width: 620px; margin-top: 2rem; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.home-hero__text p { margin: .35rem 0; }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.site-button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: .75rem 1.4rem; border: 1px solid transparent; font-weight: 600; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.site-button--light { color: #111; background: #fff; }
.site-button--outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; background: transparent; }
.site-button--dark { color: #fff; background: #171717; }

.featured-work { padding-block: clamp(4rem, 8vw, 8rem); }
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 300; letter-spacing: -.04em; }
.featured-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.5vw, 1.25rem); }
.featured-work__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; background: #222; }
.featured-work__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .55s ease; }
.featured-work__item::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.featured-work__item span { position: absolute; z-index: 1; right: 1.2rem; bottom: 1rem; left: 1.2rem; font-size: 1.1rem; font-weight: 600; }
.featured-work__item:hover img { scale: 1.035; }

.page-intro {
    display: grid;
    min-height: clamp(300px, 43vw, 570px);
    place-items: end start;
    color: #fff;
}

.page-intro--portfolio { background: var(--portfolio); }
.page-intro--projects { background: var(--projects); }
.page-intro--about { background: #94b8b8; }
.page-intro--contact { background: #db8c88; }

.page-intro__content { padding-block: clamp(4rem, 9vw, 8rem); }

.eyebrow {
    margin: 0 0 1.25rem;
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.page-intro h1,
.gallery-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: .95;
}

.page-intro__description,
.gallery-hero__description {
    max-width: 720px;
    margin-top: 2rem;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.page-intro__description p,
.gallery-hero__description p { margin: 0; }

.collection-section,
.gallery-section { padding-block: clamp(3rem, 7vw, 7rem); }

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3.5rem) clamp(1rem, 2vw, 2rem);
}

.collection-card { min-width: 0; }

.collection-card__link { text-decoration: none; }

.collection-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eee;
}

.collection-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale .6s cubic-bezier(.2, .7, .2, 1);
}

.collection-card__arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    color: #111;
    background: rgba(255, 255, 255, .92);
    font-size: 1.35rem;
    transition: transform .2s ease;
}

.collection-card__link:hover img { scale: 1.035; }
.collection-card__link:hover .collection-card__arrow { transform: translate(.2rem, -.2rem); }

.collection-card h2 {
    margin: 1.1rem 0 .15rem;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 500;
}

.collection-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery-hero {
    position: relative;
    display: grid;
    min-height: clamp(480px, 75vh, 820px);
    place-items: end start;
    overflow: hidden;
    color: #fff;
    background: #222;
}

.gallery-hero__image,
.gallery-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.gallery-hero__image { object-fit: cover; }

.gallery-hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .72));
}

.gallery-hero__content { position: relative; z-index: 1; padding-block: clamp(4rem, 8vw, 7rem); }

.gallery-hero__back {
    display: inline-block;
    margin-bottom: 1.4rem;
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-decoration: none;
    text-transform: uppercase;
}

.editorial-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 7rem);
    padding-block: clamp(4rem, 8vw, 8rem);
    align-items: start;
}
.editorial-page__image { position: sticky; top: 116px; margin: 0; }
.editorial-page__image img { width: 100%; max-height: 780px; object-fit: cover; }
.rich-text { font-size: clamp(1rem, 1.25vw, 1.15rem); }
.rich-text h2 { margin: 2.5rem 0 1rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; }
.rich-text h2:first-child { margin-top: 0; }
.rich-text p { margin: 0 0 1.2rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(4rem, 8vw, 8rem); }
.contact-details > img { width: 100%; max-height: 520px; margin-bottom: 2rem; object-fit: cover; }
.contact-details dl { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.contact-details dl div { padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-details dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-details dd { margin: .25rem 0 0; color: var(--muted); }
.contact-form-card { padding: clamp(1.5rem, 4vw, 3.5rem); background: #f4f4f4; }
.contact-form-card > h2 { margin: 0 0 2rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
.public-form { display: grid; gap: 1.2rem; }
.form-field { display: grid; gap: .45rem; }
.form-field label { font-size: .85rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select { width: 100%; min-height: 3.25rem; padding: .8rem 1rem; border: 1px solid #bdbdbd; border-radius: 0; color: #171717; background: #fff; font: inherit; }
.form-field textarea { resize: vertical; }
.form-error { margin: 0; color: #a21b1b; font-size: .82rem; }
.form-success { margin-bottom: 1.5rem; padding: 1rem; color: #164c2d; background: #dff3e7; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.photo-grid { columns: 4 250px; column-gap: clamp(.55rem, 1vw, 1rem); }

.photo-card {
    position: relative;
    margin: 0 0 clamp(.55rem, 1vw, 1rem);
    break-inside: avoid;
    background: #eee;
}

.photo-card__link { position: relative; display: block; overflow: hidden; }

.photo-card img { width: 100%; height: auto; transition: scale .5s ease; }

.photo-card__zoom {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    translate: -50% -35%;
    color: #111;
    background: rgba(255, 255, 255, .9);
    font-size: 1.4rem;
    transition: opacity .25s ease, translate .25s ease;
}

.photo-card__link:hover img { scale: 1.02; }
.photo-card__link:hover .photo-card__zoom { opacity: 1; translate: -50% -50%; }

.photo-card figcaption { padding: .6rem .75rem; color: var(--muted); font-size: .78rem; }

.photo-viewer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: #080808;
}

.photo-viewer::backdrop { background: #080808; }
.photo-viewer[open] { display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; place-items: center; }
.photo-viewer figure { display: grid; max-width: calc(100vw - 10rem); max-height: 92vh; margin: 0; place-items: center; }
.photo-viewer img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.photo-viewer figcaption { min-height: 2rem; padding-top: .75rem; color: #ccc; text-align: center; }

.photo-viewer button {
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 3rem;
}

.photo-viewer__close { position: fixed; z-index: 2; top: 1rem; right: 1rem; }

.site-footer { border-top: 1px solid var(--line); background: #f7f7f7; }

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr .7fr 1fr;
    gap: 3rem;
    padding-block: 4rem;
    align-items: end;
}

.site-footer__logo { width: min(280px, 100%); margin-bottom: 1.25rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .9rem; }
.site-footer__links { display: grid; gap: .45rem; }
.site-footer__links a, .site-footer__legal a { text-underline-offset: .2em; }
.site-footer__legal { text-align: right; }

.empty-state { padding: 4rem; background: #f5f5f5; text-align: center; }

@media (max-width: 850px) {
    .site-header__inner { min-height: 74px; }
    .menu-toggle { display: flex; }
    .site-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 1rem 4vw 1.5rem;
        border-top: 1px solid var(--line);
        background: #fff;
    }
    .site-navigation.is-open { display: grid; }
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-page,
    .contact-layout { grid-template-columns: 1fr; }
    .editorial-page__image { position: static; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
    .site-footer__legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 560px) {
    .site-brand img { width: 230px; }
    .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .collection-grid { grid-template-columns: 1fr; }
    .featured-work__grid { grid-template-columns: 1fr; }
    .photo-grid { columns: 2 140px; }
    .photo-viewer[open] { grid-template-columns: 2.5rem 1fr 2.5rem; }
    .photo-viewer figure { max-width: calc(100vw - 5rem); }
    .photo-viewer button { font-size: 2.25rem; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__legal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
