/* Bruno Ribeiro Arquitetura */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --mist: #f1f3f6;
  --ink: #000000;
  --text: #23272e;
  --muted: #5d6470;
  --line: #d9dde3;
  --navy: #13264a;
  --navy-deep: #0b1830;
  --navy-line: #263a5f;
  --on-navy: #c4cede;

  --f-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 5rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 300; color: var(--ink); line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); --header-h: 68px; }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; color: var(--ink); width: 196px; transition: width .4s var(--ease); }
.header.is-scrolled .brand { width: 170px; }
.brand svg { width: 100%; height: auto; display: block; }
.brand svg g[fill="none"] path { vector-effect: non-scaling-stroke; stroke-width: 1px; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--text); position: relative; padding: .25rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .nav__cta { border: 1px solid var(--navy); color: var(--navy); padding: .55rem 1.1rem; border-radius: 999px; transition: background .3s, color .3s; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--navy); color: #fff; }

.menu-btn { display: none; background: none; border: 0; padding: .5rem 0; cursor: pointer; font-size: .9375rem; color: var(--ink); align-items: center; gap: .6rem; }
.menu-btn__bars { width: 22px; height: 9px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-open .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-deep); color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-open .header { background: transparent; box-shadow: none; }
.menu-open .brand, .menu-open .menu-btn { color: #fff; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; text-decoration: none; color: #fff; }
.drawer__foot { color: var(--on-navy); font-size: var(--step--1); }
.drawer__foot a { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy-deep); }
.btn--light:hover { background: transparent; color: #fff; }
.link { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-underline-offset .3s var(--ease); }
.link:hover { text-underline-offset: .45em; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(640px, 100svh); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero__text {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 4rem) clamp(1.5rem, 4vw, 4rem) 4rem var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero h1 { font-size: var(--step-4); max-width: 11ch; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.02; }
.hero__lead { margin-top: 1.75rem; max-width: 36ch; font-size: 1.125rem; color: var(--muted); }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.hero__media { position: relative; margin: var(--header-h) 0 0; overflow: hidden; background: var(--navy-deep); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__caption { position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 2; font-size: var(--step--1); color: rgba(255,255,255,.85); text-decoration: none; }
.hero__caption:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }

.hero__mark {
  position: absolute; z-index: 3; pointer-events: none;
  --mw: clamp(240px, 23vw, 390px);
  left: calc(41.666% - var(--mw) * .3);
  top: calc(var(--header-h) + 4vh); width: var(--mw);
  color: #fff; mix-blend-mode: difference;
}
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
.hero__mark path { stroke-width: .42; }

/* page-load sequence */
.js .hero__media img { clip-path: inset(0 0 0 100%); transform: scale(1.06); }
.js .hero__text > * { opacity: 0; transform: translateY(14px); }
.is-loaded .hero__media img { clip-path: inset(0 0 0 0); transform: scale(1); transition: clip-path 1.5s var(--ease) .15s, transform 2.4s var(--ease) .15s; }
.is-loaded .hero__text > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded .hero__text > *:nth-child(2) { transition-delay: .9s; }
.is-loaded .hero__text > *:nth-child(3) { transition-delay: 1.05s; }
.is-loaded .hero__text > *:nth-child(1) { transition-delay: .75s; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-deep); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { max-width: 46ch; color: var(--muted); justify-self: end; }
.section--navy .section-head p { color: var(--on-navy); }

/* ---------- Project grid (home) ---------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 2.4vw, 2rem); }
.work { grid-column: span 6; text-decoration: none; display: block; }
.work--8 { grid-column: span 8; }
.work--4 { grid-column: span 4; }
.work--7 { grid-column: span 7; }
.work--5 { grid-column: span 5; }
.work--12 { grid-column: 1 / -1; }
.work__img { position: relative; overflow: hidden; background: var(--mist); aspect-ratio: 3 / 2; }
.work--8 .work__img { aspect-ratio: 16 / 10; }
.work--4 .work__img { aspect-ratio: 4 / 5; }
.work--7 .work__img { aspect-ratio: 7 / 5; }
.work--5 .work__img { aspect-ratio: 59 / 60; }
.work--12 .work__img { aspect-ratio: 21 / 8; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work:hover .work__img img { transform: scale(1.035); }
.work__tag { position: absolute; left: 1rem; top: 1rem; background: #fff; color: var(--navy-deep); font-size: .8125rem; padding: .3rem .75rem; border-radius: 999px; }
.work__info { padding-top: 1.1rem; }
.work__title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); color: var(--ink); line-height: 1.2; }
.work__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.work:hover .work__title span { background-size: 100% 1px; }
.work__meta { margin: .3rem 0 0; font-size: var(--step--1); color: var(--muted); }

/* ---------- Compare ---------- */
.compare-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.compare-block h2 { font-size: var(--step-3); }
.compare-block__text p { margin-top: 1.25rem; max-width: 34ch; }
.tabs { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.tab { background: none; border: 0; padding: .45rem 0; cursor: pointer; color: var(--on-navy); font-size: .9375rem; text-align: left; display: inline-flex; align-items: center; gap: .75rem; }
.tab::before { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::before { width: 40px; }
.tab:hover { color: #fff; }

.compare { --pos: 50%; position: relative; display: grid; grid-template-columns: var(--pos) minmax(0, 1fr); aspect-ratio: 16 / 10; background: var(--navy); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare__pane { position: relative; margin: 0; overflow: hidden; min-width: 0; }
.compare__pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.compare__pane img.is-swapping { opacity: 0; }
.compare__label { position: absolute; bottom: 1rem; z-index: 2; font-size: .8125rem; color: var(--navy-deep); background: #fff; padding: .3rem .75rem; border-radius: 999px; white-space: nowrap; }
.compare__pane--a .compare__label { left: 1rem; }
.compare__pane--b .compare__label { right: 1rem; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M18 17l-6 6 6 6M28 17l6 6-6 6' fill='none' stroke='%230b1830' stroke-width='1.4'/%3E%3C/svg%3E");
}
.compare__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100vh; cursor: ew-resize; }
.compare__range::-moz-range-thumb { width: 46px; height: 100vh; border: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) .compare__handle::after { outline: 2px solid #fff; outline-offset: 4px; }

/* light version on project pages */
.compare--light { background: var(--mist); }

/* ---------- Process ---------- */
.process { margin-top: clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--navy-line); padding-top: 2.5rem; }
.process h3 { font-size: var(--step-2); }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-display); font-weight: 300; font-size: 2.75rem; line-height: 1; color: #fff; margin-bottom: 1.25rem; }
.steps h4 { font-family: var(--f-text); font-weight: 500; font-size: 1.0625rem; color: #fff; letter-spacing: 0; margin-bottom: .5rem; }
.steps p { font-size: .9375rem; max-width: 30ch; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); }
.services__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.services__intro h2 { font-size: var(--step-3); }
.services__intro p { margin: 1.25rem 0 2rem; color: var(--muted); max-width: 32ch; }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.services__list h3 { font-size: var(--step-2); }
.services__list p { color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 20%; filter: grayscale(1) contrast(1.04); transition: filter 1.2s var(--ease); }
.about__photo:hover img { filter: grayscale(.15) contrast(1.02); }
.about__photo figcaption { margin-top: .9rem; font-size: var(--step--1); color: var(--muted); }
.about h2 { font-size: var(--step-3); max-width: 15ch; margin-bottom: 2rem; }
.about__text p { max-width: 58ch; }
.signature { margin-top: 2rem; }
.signature strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); color: var(--ink); }
.signature span { font-size: var(--step--1); color: var(--muted); }
.figures { margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.figures div { margin: 0; }
.figures dt { order: 2; font-size: var(--step--1); color: var(--muted); }
.figures dd { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--navy); }
.figures div { display: flex; flex-direction: column; gap: .5rem; }
.figures dd small { font-size: .45em; margin-left: .15em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 8rem); }
.contact h2 { font-size: var(--step-3); max-width: 12ch; }
.contact__text > p { margin-top: 1.25rem; color: var(--muted); max-width: 38ch; }
.channels { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.channels li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.channels span { color: var(--muted); }
.channels a { text-decoration: none; color: var(--ink); }
.channels a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .3em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; align-content: start; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #b9bfc9; background: transparent; padding: .6rem 0; border-radius: 0;
  font-size: 1.0625rem; color: var(--ink); transition: border-color .3s;
}
.field select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2313264a' stroke-width='1.2'/%3E%3C/svg%3E") right .2rem center / 12px no-repeat; padding-right: 1.5rem; cursor: pointer; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #a3262a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__status { font-size: .9375rem; margin: 0; }
.form__status.is-ok { color: var(--navy); }
.form__status.is-error { color: #a3262a; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9aa1ad; padding: clamp(4rem, 7vw, 6rem) 0 calc(56px + 3rem); font-size: .9375rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem var(--gutter); }
.footer .brand { color: #fff; width: 240px; }
.footer__tagline { margin-top: 1.5rem; max-width: 30ch; }
.footer h2 { font-family: var(--f-text); font-size: .875rem; font-weight: 500; color: #fff; letter-spacing: 0; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: #9aa1ad; transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid #22262d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; }

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -12px rgba(11,24,48,.6);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: var(--navy-deep); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Project page ---------- */
.p-intro { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.back { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; color: var(--muted); text-decoration: none; margin-bottom: 2.5rem; }
.back::before { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.back:hover { color: var(--navy); }
.back:hover::before { width: 34px; }
.p-intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem var(--gutter); align-items: end; }
.p-intro h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
.p-intro__place { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .65rem 1.5rem; font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

.p-cover { margin: 0; height: min(82vh, 56vw); min-height: 320px; overflow: hidden; background: var(--mist); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

.p-body { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.p-body__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem var(--gutter); }
.p-body h2 { font-size: var(--step-2); }
.p-body__text p { font-size: 1.1875rem; line-height: 1.7; max-width: 60ch; color: var(--text); }

.p-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.p-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.p-section__head h2 { font-size: var(--step-2); }
.p-section__head p { color: var(--muted); font-size: .9375rem; max-width: 52ch; margin: 0; }

.gallery { display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.g-row { display: grid; gap: inherit; height: clamp(240px, 38vw, 640px); }
.g-row--full { grid-template-columns: 1fr; height: clamp(260px, 50vw, 820px); }
.g-row--a { grid-template-columns: 7fr 5fr; }
.g-row--b { grid-template-columns: 5fr 7fr; }
.g-row--c { grid-template-columns: 1fr 1fr; }
.g-item { position: relative; margin: 0; overflow: hidden; background: var(--mist); min-width: 0; }
.g-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item button:hover img { transform: scale(1.025); }
.g-item figcaption { position: absolute; left: 0; bottom: 0; padding: .4rem .8rem; font-size: .8125rem; color: var(--ink); background: rgba(255,255,255,.92); }

.drawings { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.drawings__col { display: grid; gap: inherit; align-content: start; }
.drawing { margin: 0; background: #fff; border: 1px solid var(--line); }
.drawing button { display: block; width: 100%; padding: clamp(.75rem, 2vw, 1.5rem); border: 0; background: none; cursor: zoom-in; }
.drawing img { width: 100%; height: auto; }
.drawing figcaption { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

.next { display: block; text-decoration: none; background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.next__in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.next__label { font-size: .9375rem; color: var(--on-navy); }
.next__title { font-family: var(--f-display); font-weight: 300; font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; margin-top: .75rem; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.next:hover img { opacity: .42; transform: scale(1.03); }
.next__arrow { width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .3s, border-color .3s; }
.next:hover .next__arrow { background: #fff; border-color: #fff; color: var(--navy-deep); }

.cta-band { padding: clamp(4rem, 8vw, 6rem) 0; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--step-3); max-width: 18ch; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(6,13,26,.97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); color: var(--on-navy); font-size: .875rem; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(3.5rem, 7vw, 6rem); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; transition: opacity .3s var(--ease); }
.lb__stage img.is-loading { opacity: 0; }
.lb__stage img.is-drawing { background: #fff; }
.lb__cap { padding: 1rem var(--gutter) 1.5rem; color: var(--on-navy); font-size: .9375rem; text-align: center; min-height: 3.5rem; }
.lb button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.lb button:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: var(--gutter); }
.lb__next { right: var(--gutter); }
.lb svg { width: 18px; height: 18px; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.nav__cta) { display: none; }
  .services { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .compare-block { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { width: 160px; }
  .header.is-scrolled .brand { width: 150px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, 58vh); min-height: 0; }
  .hero__text { padding: calc(var(--header-h) + 3rem) var(--gutter) 3rem; }
  .hero__media { margin-top: 0; }
  .hero__mark { --mw: min(44vw, 220px); left: auto; right: var(--gutter); top: auto; bottom: 1.5rem; }
  .hero__caption { right: auto; left: var(--gutter); }
  .section-head, .about, .contact, .p-intro__grid, .p-body__grid { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .works { grid-template-columns: 1fr; }
  .work, .work--8, .work--4, .work--7, .work--5, .work--12 { grid-column: 1 / -1; }
  .work .work__img, .work--8 .work__img, .work--4 .work__img, .work--7 .work__img, .work--5 .work__img, .work--12 .work__img { aspect-ratio: 4 / 3; }
  .compare { aspect-ratio: 4 / 5; }
  .services__list li { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .figures { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .form { grid-template-columns: 1fr; }
  .g-row, .g-row--a, .g-row--b, .g-row--c { grid-template-columns: 1fr; height: auto; }
  .g-row .g-item { aspect-ratio: 4 / 3; }
  .g-row--full { height: auto; }
  .drawings { grid-template-columns: 1fr; }
  .lb__stage { padding: 0 .75rem; }
  .lb__prev, .lb__next { top: auto; bottom: -3.5rem; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .lb__cap { padding-top: 4.5rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .next__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .hero__media img, .js .hero__text > * { clip-path: none; transform: none; opacity: 1; }
}

/* tabs em fundo claro */
.tabs--light { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0 0 1.25rem; }
.tabs--light .tab { color: var(--muted); }
.tabs--light .tab[aria-selected="true"], .tabs--light .tab:hover { color: var(--ink); }
