/* Layout: uma coluna no celular, como uma prancha; linhas finas de grade marcam as seções */
:root {
  --bg: #f6f2eb;
  --surface: #ebe4d8;
  --ink: #2a2725;
  --muted: #6e665d;
  --line: #ddd4c6;
  --accent: #7a6550;
  --on-photo: #ffffff;
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
}
/* Fundo fixo na cor da marca, igual no modo claro e no escuro */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 400; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--bg);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
img { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 7vw, 46px); }

/* Cabeçalho */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { text-decoration: none; display: grid; line-height: 1.1; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .04em; }
.brand span { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.menu-btn {
  appearance: none; border: 0; background: none; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px;
}
.menu-btn i { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .25s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 0; transform: rotate(-45deg); }
.nav { display: none; }
.menu-open .nav {
  display: grid; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter-r) 24px var(--gutter-l);
}
.nav a {
  text-decoration: none; font-family: var(--display); font-size: 24px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.nav a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav, .menu-open .nav { display: flex; position: static; padding: 0; gap: 32px; border: 0; background: none; }
  .nav a { font-family: var(--body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 0; border: 0; color: var(--muted); }
  .nav a:hover { color: var(--ink); }
}

/* Abertura */
.hero { position: relative; color: var(--on-photo); background: #2a2725; }
.hero img { width: 100%; height: clamp(440px, 78vh, 760px); object-fit: cover; object-position: 40% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.15) 30%, rgba(20,18,16,.72)); }
.hero-text { position: absolute; inset: auto 0 0; z-index: 1; padding-bottom: 40px; }
.hero-text .wrap { display: grid; gap: 16px; }
.hero h1 { font-size: clamp(36px, 9vw, 72px); max-width: 14ch; }
.hero p { max-width: 38ch; font-size: 16px; opacity: .9; }
.hero .label { color: rgba(255,255,255,.8); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid currentColor; background: none;
  font: 500 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.hero .btn { justify-self: start; }
.hero .btn:hover { background: var(--on-photo); color: #2a2725; }

/* Apresentação + serviços */
.intro { display: grid; gap: 28px; }
.intro .lead { font-family: var(--display); font-size: clamp(24px, 5.4vw, 34px); line-height: 1.3; max-width: 26ch; }
.intro p.body { color: var(--muted); max-width: 58ch; }
.services { list-style: none; margin: 48px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.services li { display: grid; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.services h3 { font-size: 23px; }
.services p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.services small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 760px) {
  .intro { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 0; }
  .services li { border-bottom: 0; border-top: 1px solid var(--ink); align-content: start; }
}

/* Projetos */
.grid { display: grid; gap: 28px 20px; }
.proj { margin: 0; }
.proj button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.proj .ph { overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; max-width: 100%; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj button:hover img { transform: scale(1.04); }
.proj button:focus-visible .ph { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.proj .cap b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.proj .cap > span { font-size: 12px; color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.more { margin-top: 36px; display: flex; justify-content: center; }
.grid .extra { display: none; }
.grid.all .extra { display: block; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } .proj.wide { grid-column: 1 / -1; } .proj.wide .ph { aspect-ratio: 16 / 8; } }
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); container-type: inline-size; }
  .proj.wide { grid-column: span 2; }
  /* todas as fotos com a mesma altura: 3/4 da largura de uma coluna */
  .proj .ph, .proj.wide .ph { aspect-ratio: auto; height: calc((100cqw - 40px) / 4); }
}

/* Sobre */
.about { display: grid; gap: 32px; }
.about .portrait { max-width: 420px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about blockquote { margin: 0; font-family: var(--display); font-size: clamp(26px, 6vw, 38px); line-height: 1.25; max-width: 22ch; }
.about .txt { display: grid; gap: 18px; align-content: start; }
.about .txt p { color: var(--muted); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 8px; font-size: 14px; }
.facts div { display: grid; }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* Consultoria */
.consult { background: var(--surface); }
.consult-intro { display: grid; gap: 18px; max-width: 64ch; }
.consult-intro p { color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding-block: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 20px; color: var(--accent); grid-row: span 2; }
.steps h3 { font-family: var(--body); font-weight: 500; font-size: 17px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.receive { margin-top: 40px; display: grid; gap: 16px; }
.receive ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.receive li { border: 1px solid var(--line); background: var(--bg); padding: 6px 14px; font-size: 14px; }
.receive .note { font-size: 14px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0 28px; } .steps li { grid-template-columns: 1fr; border-top-color: var(--ink); } .steps li::before { grid-row: auto; } }

/* Contato */
.contact { display: grid; gap: 48px; grid-template-areas: "foto" "form" "info"; }
.contact .form { grid-area: form; } .contact .info { grid-area: info; }
.contact-photo { grid-area: foto; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--surface); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); outline: none; }
.form .btn { justify-self: stretch; }
.form small { color: var(--muted); font-size: 13px; }
.info { display: grid; gap: 28px; align-content: start; }
.info h3 { font-size: 13px; font-family: var(--body); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.info address { font-style: normal; }
.info .phone { font-family: var(--display); font-size: 28px; text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.social a:hover { border-color: var(--ink); }
@media (min-width: 860px) { .contact { grid-template-columns: 7fr 5fr; grid-template-areas: "form foto" "form info"; gap: 48px 80px; align-items: start; } .form .btn { justify-self: start; } }

footer { border-top: 1px solid var(--line); padding-block: 28px 96px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (min-width: 900px) { footer { padding-bottom: 28px; } }

/* WhatsApp fixo */
.wa {
  position: fixed; z-index: 15;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font: 500 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.wa svg { width: 20px; height: 20px; fill: currentColor; }

/* Visualizador de fotos */
dialog.lb { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; background: rgba(16,15,14,.96); color: #fff; }
dialog.lb::backdrop { background: rgba(16,15,14,.96); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.lb-bar b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.lb button { appearance: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; width: 48px; height: 48px; cursor: pointer; font-size: 20px; }
.lb-img { min-height: 0; display: grid; place-items: center; }
.lb-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* Base para páginas avulsas (a página inicial já recebe isto do publicador) */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
[hidden] { display: none !important; }

/* Página de projeto */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-block: 12px; }
.back:hover { color: var(--ink); }
.p-head { padding-block: 20px 36px; display: grid; gap: 18px; }
.p-head h1 { font-size: clamp(36px, 9vw, 64px); }
.p-head p { color: var(--muted); max-width: 58ch; }
.p-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.p-meta div { display: grid; }
.p-meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.p-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .p-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; } .p-head .p-meta { grid-column: 1 / -1; } }

.gallery { display: grid; gap: 10px; padding-bottom: 64px; }
.gallery button { all: unset; cursor: zoom-in; display: block; background: var(--surface); max-width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery .full { grid-column: 1 / -1; }
  .gallery .half img { height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
}

.p-next { border-top: 1px solid var(--line); }
.p-next .wrap { display: grid; gap: 1px; padding-block: 0; }
.p-next a { display: grid; gap: 4px; padding-block: 28px; text-decoration: none; }
.p-next a + a { border-top: 1px solid var(--line); }
.p-next span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.p-next b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 6vw, 38px); }
.p-next a:hover b { color: var(--accent); }
@media (min-width: 760px) { .p-next .wrap { grid-template-columns: 1fr 1fr; } .p-next a + a { border-top: 0; border-left: 1px solid var(--line); padding-left: 32px; text-align: right; } }

.p-cta { background: var(--surface); }
.p-cta .wrap { display: grid; gap: 20px; padding-block: 56px; justify-items: start; }
.p-cta h2 { font-size: clamp(28px, 6.5vw, 40px); max-width: 20ch; }

/* Cartões da página inicial viram links */
a.proj-link { display: block; text-decoration: none; color: inherit; }
a.proj-link:hover img { transform: scale(1.04); }
a.proj-link:focus-visible .ph { outline: 2px solid var(--accent); outline-offset: 3px; }
/* YouTube */
.yt-head { display: grid; gap: 24px; margin-bottom: 36px; }
.yt-actions { display: flex; gap: 10px; }
.yt-actions .btn { flex: 1 1 0; padding: 0 14px; white-space: nowrap; }
@media (min-width: 900px) { .yt-actions .btn { flex: none; padding: 0 26px; } }
.yt-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr 1fr; }
.yt-card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.yt-main { grid-column: 1 / -1; }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--ink); }
.yt-thumb img, .yt-thumb iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; transition: transform .6s ease; }
a.yt-card:hover .yt-thumb img { transform: scale(1.04); }
a.yt-card:focus-visible .yt-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(20,18,16,.72); }
.yt-play::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.yt-card:not(.yt-main) .yt-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.yt-card:not(.yt-main) .yt-play::after { left: 15px; top: 12px; border-width: 8px 0 8px 13px; }
.yt-title { font-family: var(--display); font-size: 17px; line-height: 1.3; text-wrap: balance; }
.yt-main .yt-title { font-size: clamp(22px, 5vw, 30px); }
.yt-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .yt-head { grid-template-columns: 1fr auto; align-items: end; }
  .yt-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .yt-main { grid-column: 1; grid-row: 1 / span 2; }
}