/* =========================================================
   Portfólio — Adriano Aguiar
   Identidade: verde floresta · creme · dourado fosco
   ========================================================= */

:root {
    /* Paleta institucional */
    --forest: #193B32;
    --forest-deep: #122B25;
    --cream: #F1EBDD;
    --gold: #B49A65;
    --neutral: #A6A99B;

    /* Derivadas (só para contraste/legibilidade) */
    --cream-2: #E8E0CE;          /* creme um tom abaixo, para superfícies sobre creme */
    --ink-muted: #5C6157;        /* cinza neutro escurecido, legível sobre creme */
    --gold-ink: #8A7444;         /* dourado escurecido, legível sobre creme */

    --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --sans: Manrope, Inter, system-ui, -apple-system, Arial, sans-serif;

    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --r: 2px;
}

/* Temas por secção: escuro (verde) e claro (creme) */
.theme-dark, .hero, #servicos, #sobre, #contato, .site-footer, .site-header {
    --bg: var(--forest-deep);
    --fg: var(--cream);
    --muted: var(--neutral);
    --rule: rgba(241, 235, 221, .14);
    --rule-strong: rgba(241, 235, 221, .28);
    --accent: var(--gold);
    --accent-ink: var(--gold);
    --surface: rgba(241, 235, 221, .04);
}
#servicos, #contato { --bg: var(--forest); }

.theme-light, #projetos, #processo, #formacao, .project-modal {
    --bg: var(--cream);
    --fg: var(--forest);
    --muted: var(--ink-muted);
    --rule: rgba(25, 59, 50, .14);
    --rule-strong: rgba(25, 59, 50, .3);
    --accent: var(--gold);
    --accent-ink: var(--gold-ink);
    --surface: var(--cream-2);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    background: var(--forest-deep);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--forest-deep); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; background: var(--gold); color: var(--forest-deep); font-weight: 600;
}
.skip-link:focus { top: 16px; }

section { background: var(--bg); color: var(--fg); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-weight: 400; color: var(--fg); }
h2 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    line-height: 1.04; letter-spacing: -.01em;
}
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }

.eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow span { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.eyebrow span::after { content: ""; display: inline-block; width: 36px; height: 1px; margin: 0 0 4px 14px; background: var(--accent); vertical-align: middle; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: var(--r);
    font-size: .88rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
    transition: background .3s, color .3s, border-color .3s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.btn--ghost { border: 1px solid var(--rule-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--gold); color: var(--accent-ink); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .82rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 43, 37, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    color: var(--fg);
    transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
    font-size: .82rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
    color: var(--cream);
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
    position: relative; padding: 6px 0;
    color: var(--neutral); font-size: .86rem; font-weight: 500;
    transition: color .25s;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .nav-links__cta {
    margin-left: 6px; padding: 10px 18px;
    border: 1px solid rgba(180, 154, 101, .55); border-radius: var(--r);
    color: var(--cream); font-weight: 600;
}
.nav-links .nav-links__cta::after { display: none; }
.nav-links .nav-links__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.menu-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s, width .3s; }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

.hero__grid {
    display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 72px;
    padding: 72px 0 88px;
}
.hero__grid > * { min-width: 0; }
.hero__content { animation: fadeUp 1s var(--ease) both; }

.hero__kicker {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(180, 154, 101, .15); }

.hero__role {
    margin-top: 56px;
    color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
.hero__title {
    margin-top: 14px;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(3.2rem, 8vw, 7rem); line-height: .95; letter-spacing: -.02em;
}
.hero__tagline {
    margin-top: 18px;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--cream);
    opacity: .82;
}
.hero__text { max-width: 33rem; margin-top: 28px; color: var(--muted); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__stats {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
    margin-top: 64px; border-top: 1px solid var(--rule);
}
.hero__stats div { padding: 22px 40px 0 0; margin-right: 40px; border-right: 1px solid var(--rule); }
.hero__stats div:last-child { border-right: 0; margin-right: 0; }
.hero__stats dt { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--cream); }
.hero__stats dd { margin-top: 8px; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.hero__media { position: relative; animation: fadeIn 1.2s var(--ease) .2s both; }
.hero__frame {
    position: relative; overflow: hidden;
    width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 4 / 5;
    border-radius: var(--r);
    background: var(--forest);
}
.hero__media::before {
    /* moldura fina deslocada — detalhe editorial em dourado */
    content: ""; position: absolute; z-index: 0;
    top: 18px; right: -18px; bottom: -18px; width: calc(min(100%, 440px));
    border: 1px solid rgba(180, 154, 101, .45); border-radius: var(--r);
    pointer-events: none;
}
.hero__frame { z-index: 1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__tint {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(0deg, rgba(18, 43, 37, .7) 0%, rgba(18, 43, 37, 0) 38%),
        linear-gradient(180deg, rgba(18, 43, 37, .18), rgba(18, 43, 37, 0) 30%);
}

.clients {
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
    padding: 28px 0 34px; border-top: 1px solid var(--rule);
}
.clients p { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.clients ul { display: flex; flex-wrap: wrap; gap: 10px 0; }
.clients li { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); opacity: .85; }
.clients li + li::before { content: "/"; margin: 0 18px; color: var(--gold); opacity: .7; }

/* ---------- Secções ---------- */
.section { padding: 140px 0; }
.section-head { max-width: 760px; margin-bottom: 72px; }
.section-head__lead { margin-top: 22px; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }

/* ---------- Projetos (carrossel) ---------- */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.work-head .section-head { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.filter {
    position: relative; padding: 6px 0;
    color: var(--muted); font-size: .88rem; font-weight: 500;
    transition: color .25s;
}
.filter span { margin-left: 4px; font-size: .7rem; vertical-align: super; color: var(--accent-ink); }
.filter::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.filter:hover { color: var(--fg); }
.filter.is-active { color: var(--fg); font-weight: 600; }
.filter.is-active::after { transform: scaleX(1); }
.filter[hidden] { display: none; }

.slider { --gutter: max(32px, calc((100vw - var(--container)) / 2)); position: relative; }
.slider__track {
    display: flex; gap: 40px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline-offset: -1px; }
.slider__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.slider__track.is-dragging * { pointer-events: none; user-select: none; }

.work-card {
    flex: 0 0 clamp(300px, 42vw, 580px);
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    animation: cardIn .7s var(--ease) both;
}
.work-card__media {
    position: relative; display: block; width: 100%; overflow: hidden;
    aspect-ratio: 16 / 10; border-radius: var(--r);
    background: var(--cream-2); cursor: pointer;
    box-shadow: 0 1px 0 var(--rule);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease), filter .6s; }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__hint {
    position: absolute; left: 0; bottom: 0;
    padding: 12px 18px;
    background: var(--forest); color: var(--cream);
    font-size: .78rem; font-weight: 600; letter-spacing: .06em;
    transform: translateY(100%); transition: transform .45s var(--ease);
}
.work-card:hover .work-card__hint, .work-card__media:focus-visible .work-card__hint { transform: none; }
.work-card__shots {
    position: absolute; right: 12px; top: 12px;
    padding: 4px 10px; border-radius: var(--r);
    background: rgba(18, 43, 37, .82); color: var(--cream); font-size: .7rem; font-weight: 500; letter-spacing: .04em;
}
.work-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 26px; }
.work-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.work-card__cat { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.work-card h3 { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.work-card__client { margin-top: 6px; color: var(--accent-ink); font-size: .86rem; font-weight: 500; }
.work-card__text { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 30rem; }
.work-card .badges { margin-top: 18px; }
.work-card__foot { display: flex; align-items: center; gap: 28px; margin-top: auto; padding-top: 22px; }
.work-card__more, .work-card__site {
    position: relative; padding: 4px 0;
    font-size: .86rem; font-weight: 600;
}
.work-card__more { color: var(--fg); }
.work-card__site { color: var(--muted); }
.work-card__more::after, .work-card__site::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(.3); transform-origin: left; transition: transform .35s var(--ease);
}
.work-card__more:hover::after, .work-card__site:hover::after { transform: scaleX(1); }
.work-card__site:hover { color: var(--fg); }

.slider__nav { display: flex; align-items: center; gap: 32px; margin-top: 48px; }
.slider__progress { flex: 1; height: 1px; background: var(--rule-strong); }
.slider__progress span { display: block; height: 1px; width: 0; background: var(--fg); transition: width .4s var(--ease); }
.slider__count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; white-space: nowrap; }
.slider__count strong { color: var(--fg); font-weight: 600; }
.slider__arrows { display: flex; gap: 8px; }
.slider__arrow {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid var(--rule-strong); color: var(--fg); font-size: 1.05rem;
    transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.slider__arrow:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.slider__arrow:disabled { opacity: .3; cursor: default; }

.more {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--rule);
}
.more p { color: var(--muted); font-family: var(--serif); font-size: 1.35rem; color: var(--fg); }

/* Etiquetas, listas e tecnologias (partilhado por cartões e janela de detalhes) */
.tag {
    display: inline-block; padding: 3px 9px; border-radius: var(--r);
    border: 1px solid var(--rule-strong); color: var(--muted);
    font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tag--live { border-color: var(--forest); background: var(--forest); color: var(--cream); }
.tag--new { border-color: var(--gold); color: var(--accent-ink); }

.case__sub { margin-top: 6px; color: var(--accent-ink); font-size: .92rem; font-weight: 500; }
.case__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.checks { display: grid; margin-top: 24px; border-top: 1px solid var(--rule); }
.checks li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); color: var(--fg); font-size: .93rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 1px; background: var(--gold); }

.badges { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 24px; }
.badges span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.badges span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--accent); }

/* ---------- Janela de detalhes ---------- */
.project-modal {
    width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 48px);
    margin: auto; padding: 0; overflow: auto;
    border: 0; border-radius: var(--r);
    background: var(--bg); color: var(--fg);
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7);
}
.project-modal::backdrop { background: rgba(10, 26, 22, .82); }
.project-modal[open] { animation: modalIn .45s var(--ease); }
.project-modal__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding: 56px; }
.project-modal__grid > * { min-width: 0; }
.project-modal__close {
    position: sticky; top: 18px; float: right; z-index: 2; margin: 18px 18px -62px 0;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--rule-strong); background: var(--bg); font-size: .9rem;
    transition: background .25s, color .25s;
}
.project-modal__close:hover { background: var(--forest); color: var(--cream); }
.project-modal__body { align-self: center; }
.project-modal__body h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.project-modal__body .pm-desc { margin-top: 18px; color: var(--muted); }
body.modal-open { overflow: hidden; }

.browser { overflow: hidden; border-radius: var(--r); background: #fff; box-shadow: 0 30px 60px -30px rgba(18, 43, 37, .45), 0 0 0 1px var(--rule); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream-2); border-bottom: 1px solid var(--rule); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(25, 59, 50, .2); }
.browser__bar span {
    flex: 1; margin-left: 12px; padding: 2px 12px;
    background: rgba(255, 255, 255, .6); color: var(--muted); font-size: .72rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: opacity .25s; }
.browser__shot.is-swapping { opacity: 0; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.thumbs button { width: 92px; overflow: hidden; border-radius: var(--r); outline: 1px solid var(--rule); opacity: .5; transition: opacity .25s, outline-color .25s; }
.thumbs button:hover { opacity: .85; }
.thumbs button.is-active { opacity: 1; outline: 1px solid var(--forest); outline-offset: 2px; }
.thumbs img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.service { padding: 40px 40px 8px 0; }
.service + .service { padding-left: 40px; border-left: 1px solid var(--rule); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.service p { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.service ul { display: grid; gap: 10px; margin-top: 28px; }
.service li { position: relative; padding-left: 22px; color: var(--fg); font-size: .9rem; opacity: .9; }
.service li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--gold); }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.steps li { padding: 32px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--rule); }
.steps span { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent-ink); }
.steps h3 { margin-top: 28px; font-size: 1.1rem; }
.steps p { margin-top: 10px; color: var(--muted); font-size: .93rem; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 96px; align-items: start; }
.about > * { min-width: 0; }

.about__photo { position: sticky; top: 112px; }
.about__photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
    border-radius: var(--r);
}
.about__photo figcaption { margin-top: 28px; }
.about__photo figcaption > span { color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--rule); }
.journey li { position: relative; padding: 18px 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.journey li::before {
    content: ""; position: absolute; top: -4px; left: 0;
    width: 7px; height: 7px; border-radius: 50%; background: var(--forest-deep); border: 1px solid var(--gold);
}
.journey li:last-child::before { background: var(--gold); }
.journey strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--fg); }

.about__text h2 { margin-bottom: 36px; }
.about__text > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 38rem; }
.about__text > .about__lead { color: var(--fg); font-size: 1.18rem; line-height: 1.65; margin-top: 0; }
.about__quote { margin: 44px 0 0; padding: 4px 0 4px 28px; border-left: 1px solid var(--gold); max-width: 38rem; }
.about__quote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--fg); }
.about__text > .about__closing { margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--fg); opacity: .85; }
.about__text > .about__sign { margin-top: 28px; color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.about__sign::before { content: ""; display: inline-block; width: 36px; height: 1px; margin: 0 14px 4px 0; background: var(--gold); vertical-align: middle; }

.about__extra { display: grid; grid-template-columns: .85fr 1.15fr; gap: 96px; margin-top: 120px; align-items: start; }
.values { display: grid; border-top: 1px solid var(--rule); }
.values div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.values strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.values span { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.stack { border-top: 1px solid var(--rule); }
.stack__group { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.stack__group h3 { color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-top: 3px; }
.stack__group .badges { margin-top: 0; }
.stack__group .badges span { color: var(--fg); font-size: .9rem; }

/* ---------- Formação ---------- */
.credentials { border-top: 1px solid var(--rule-strong); }
.credential {
    display: grid; grid-template-columns: 220px 1fr 140px; gap: 32px; align-items: baseline;
    padding: 32px 0; border-bottom: 1px solid var(--rule);
    transition: padding .4s var(--ease);
}
.credential:hover { padding-left: 12px; }
.credential__top { display: contents; }
.credential__top span { grid-column: 1; grid-row: 1; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.credential__top em { grid-column: 3; grid-row: 1; justify-self: end; color: var(--muted); font-size: .8rem; font-style: italic; font-family: var(--serif); white-space: nowrap; }
.credential h3 { grid-column: 2; grid-row: 1; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.credential p { grid-column: 2; grid-row: 2; margin-top: -18px; color: var(--muted); font-size: .94rem; max-width: 40rem; }
.credential--featured h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.credential--featured .credential__top em { color: var(--accent-ink); }

/* ---------- Contacto ---------- */
#contato { padding: 140px 0; }
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: end; }
.cta h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.cta__text > p:not(.eyebrow) { margin-top: 24px; max-width: 30rem; color: var(--muted); font-size: 1.05rem; }
.cta .hero__actions { margin-top: 40px; }
.cta__links { display: grid; border-top: 1px solid var(--rule-strong); }
.cta__links a {
    position: relative; display: block; padding: 24px 44px 24px 0;
    border-bottom: 1px solid var(--rule);
    transition: padding .35s var(--ease);
}
.cta__links a:hover { padding-left: 12px; }
.cta__links span { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.cta__links strong { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; word-break: break-word; }
.cta__links b { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 400; transition: transform .3s var(--ease); }
.cta__links a:hover b { transform: translate(4px, -50%); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--forest-deep); color: var(--cream); }
.footer { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; padding: 72px 0 56px; }
.footer__brand p { max-width: 340px; margin-top: 20px; color: var(--neutral); font-size: .92rem; }
.footer__col h2 { margin-bottom: 20px; font-family: var(--sans); color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; }
.footer__col address, .footer__col nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-style: normal; color: var(--neutral); font-size: .92rem; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 30px; border-top: 1px solid rgba(241, 235, 221, .1); color: rgba(166, 169, 155, .8); font-size: .8rem; }
.footer__bottom a:hover { color: var(--cream); }

/* ---------- Animações (discretas) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .hero__grid { gap: 48px; }
    .services { grid-template-columns: 1fr; }
    .service, .service + .service { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
    .steps li:nth-child(n+3) { margin-top: 40px; }
    .about, .about__extra { grid-template-columns: 1fr; gap: 64px; }
    .about__photo { position: static; max-width: 460px; }
    .about__extra { margin-top: 80px; }
    .cta { grid-template-columns: 1fr; gap: 56px; align-items: start; }
    .credential { grid-template-columns: 1fr auto; gap: 8px 24px; }
    .credential__top span { grid-column: 1; grid-row: 1; }
    .credential__top em { grid-column: 2; grid-row: 1; }
    .credential h3 { grid-column: 1 / -1; grid-row: 2; }
    .credential p { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
    .project-modal__grid { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 32px 32px;
        background: var(--forest-deep); border-bottom: 1px solid var(--rule);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .3s, transform .3s, visibility .3s;
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
    .nav-links a::after { display: none; }
    .nav-links .nav-links__cta { margin: 24px 0 0; text-align: center; }

    .hero__grid { grid-template-columns: 1fr; padding: 48px 0 72px; }
    .hero__role { margin-top: 36px; }
    .hero__media { order: -1; max-width: 360px; width: calc(100% - 18px); }
    .hero__frame { margin-left: 0; }
    .clients li { font-size: 1.05rem; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 40px); }
    .section, #contato { padding: 96px 0; }
    .section-head { margin-bottom: 48px; }
    .brand { letter-spacing: .24em; font-size: .76rem; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); }
    .hero__stats div { padding-right: 12px; margin-right: 12px; }
    .hero__stats dt { font-size: 1.5rem; }
    .hero__stats dd { font-size: .64rem; letter-spacing: .04em; }
    .clients { gap: 14px; }
    .clients li + li::before { margin: 0 10px; }
    .slider { --gutter: 20px; }
    .slider__track { gap: 20px; }
    .work-card { flex-basis: 84vw; }
    .slider__nav { gap: 16px; margin-top: 36px; }
    .slider__arrow { width: 44px; height: 44px; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--rule); margin-top: 0 !important; }
    .journey li { font-size: .74rem; }
    .journey strong { font-size: 1.05rem; }
    .stack__group { grid-template-columns: 1fr; gap: 10px; }
    .project-modal { max-height: calc(100vh - 24px); }
    .project-modal__grid { padding: 22px; }
    .thumbs button { width: 66px; }
    .footer { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
    .btn { flex: 1 1 auto; }
    .more .btn { width: 100%; }
}
