@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101b2d;
  --ink-deep: #0b1524;
  --paper: #faf9f6;
  --linen: #f3eee4;
  --gold: #edb964;
  --bronze: #805522;
  --body: #475365;
  --line: #e2d9cc;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-space: clamp(4rem, 7.1vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.05rem); line-height: 1.03; letter-spacing: -.06em; text-wrap: balance; }
h3 { font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.14; letter-spacing: -.035em; }
h1 em, h2 em { font: italic 400 1.18em/.87 var(--display); letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid #9b611f; outline-offset: 5px; }
.dark :focus-visible, .topbar :focus-visible { outline-color: var(--gold); }
main > section { scroll-margin-top: 1.5rem; }
main > section[tabindex="-1"]:focus { outline: none; }

.wrap { width: min(84rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .65rem .95rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }

.topbar { background: var(--ink); color: #f5efe4; }
.topbar-inner { min-height: 2.125rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .icon { color: var(--gold); width: 1em; height: 1em; }
.topbar a:hover { text-decoration: underline; text-underline-offset: .25em; }

.navigation { position: relative; z-index: 2; border-bottom: 1px solid #ded8ce; background: var(--paper); }
.nav-inner { min-height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; flex: none; min-height: 3.85rem; padding-block: .6rem; color: var(--bronze); }
.navigation .brand img { filter: brightness(.56); }
.footer .brand { color: #f4dcae; }
.brand-symbol { width: 2.55rem; height: auto; }
.brand-name { display: grid; justify-items: center; gap: .23rem; }
.brand-name img { width: 7.75rem; height: auto; }
.brand-name span { font-size: .49rem; font-weight: 600; line-height: 1; letter-spacing: .075em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 3rem); font-size: .935rem; font-weight: 600; white-space: nowrap; }
.nav-links > a:not(.button) { padding-block: .65rem; }
.nav-links > a:not(.button):hover { color: var(--bronze); text-decoration: underline; text-underline-offset: .35em; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 3.375rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .68rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.button-solid { background: var(--ink); color: var(--paper); }
.button-solid:hover { background: #263a55; }
.button-outline { color: var(--ink); border-color: #b9b1a5; }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.nav-contact { min-height: 2.95rem; }
.button-gold { background: var(--gold); color: #151c27; }
.button-gold:hover { background: #f7cb83; }
.button-light { color: #fffaf2; border-color: #e6dfd6aa; background: #101b2d30; }
.button-light:hover { background: #fffaf2; border-color: #fffaf2; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero { padding-block: clamp(1.4rem, 2.7vw, 2.75rem); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: clamp(26rem, 36.8vw, 35.5rem); overflow: hidden; border-radius: clamp(1rem, 1.65vw, 1.5rem); background: linear-gradient(128deg, #12243b, var(--ink) 52%, var(--ink-deep)); color: var(--paper); }
.hero-inner { align-self: center; min-width: 0; padding: clamp(2rem, 3.8vw, 3.65rem); }
.hero-inner::before { content: ""; display: block; width: clamp(3.2rem, 7.9vw, 7.5rem); height: 3px; margin-bottom: clamp(1rem, 2vw, 1.9rem); background: var(--gold); }
.hero-inner :focus-visible { outline-color: var(--gold); }
.hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.85rem); line-height: 1.02; letter-spacing: -.074em; }
.hero h1 em { display: block; margin-top: .08em; color: var(--gold); font-size: 1.54em; }
.hero p { max-width: 33rem; margin-top: 1.35rem; color: #f0e9df; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; }
.hero .actions { margin-top: clamp(1.3rem, 2.5vw, 2.35rem); }
.hero-figure { position: relative; margin: 0; background: var(--linen); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 11%; }
.image-note { position: absolute; right: 1rem; bottom: 1rem; border-radius: .4rem; background: #0d1828ec; color: #fffaf2; font-size: .8125rem; }
.image-note a { display: flex; align-items: center; gap: .35rem; padding: .3rem .65rem; min-height: 2.25rem; }
.image-note a:hover { text-decoration: underline; text-underline-offset: .2em; }
.image-note a:focus-visible { outline-color: var(--gold); }

.focus-areas { background: var(--linen); border-block: 1px solid var(--line); }
.focus-inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding-block: 1.25rem; }
.focus-inner li { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .4rem .5rem; font-size: clamp(.9rem, 1.45vw, 1.2rem); font-weight: 600; line-height: 1.2; }
.focus-inner li + li { border-left: 1px solid #d9cdbb; }
.focus-inner .icon { color: var(--bronze); width: 1.55em; height: 1.55em; }

#solucoes { padding-top: clamp(4rem, 5vw, 5rem); }

.section-label { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.55rem; color: var(--ink); font-size: .875rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.section-label::after { content: ""; height: 1px; background: #c6a379; flex: 1; }
.section-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: clamp(2rem, 5vw, 5rem); margin-bottom: 2.5rem; }
.section-intro h2 { text-wrap: initial; }
.section-intro > p, .project-intro > p, .about-grid > div > p:not(.section-label) { color: var(--body); font-size: 1.105rem; line-height: 1.6; }
.section-intro > p { max-width: 26rem; padding-bottom: .2rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.service { min-width: 0; display: grid; align-content: start; justify-items: start; gap: .9rem; padding: clamp(1.3rem, 2.6vw, 2.35rem); border: 1px solid #ddccb5; border-radius: 1rem; background: #fffdfa; }
.service:last-child { border-top-right-radius: clamp(2rem, 4.6vw, 4.25rem); }
.icon-tile { display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin-bottom: .35rem; color: var(--bronze); border-radius: .9rem; background: #f4ead9; }
.icon-tile .icon { width: 1.8rem; height: 1.8rem; }
.service p, .project-copy > p:not(.project-location) { color: var(--body); }

.dark { background: var(--ink); color: var(--paper); }
.dark h2 em { color: var(--gold); }
.dark .section-label { color: var(--gold); }
.dark .section-label::after { background: #f3c57b40; }
.dark .section-intro > p { border-left: 1px solid #d8a961; padding-left: 1.3rem; color: #e4dece; }
.method { background: var(--ink); }
.method .section-intro { margin-bottom: 2.85rem; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding-top: .4rem; }
.steps::before { content: ""; position: absolute; inset: 2.15rem 12.5% auto; height: 1px; background: #dfb46572; }
.steps li { position: relative; display: grid; align-content: start; justify-items: center; gap: .85rem; text-align: center; }
.step-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 1px solid var(--gold); color: var(--gold); background: #101b2d; border-radius: 50%; }
.step-icon .icon { width: 1.55rem; height: 1.55rem; }
.steps h3 { font-size: clamp(1rem, 1.65vw, 1.45rem); letter-spacing: -.025em; }
.steps p { max-width: 15rem; margin: .55rem auto 0; color: #e4dece; font-size: .955rem; }

.project-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .95rem; }
.project-intro > p { flex: 1 1 15rem; max-width: 26rem; }
.carousel-controls:not([hidden]) { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; }
.carousel-position { margin-inline-end: .3rem; color: var(--body); font-size: .875rem; font-variant-numeric: tabular-nums; }
.carousel-button { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.carousel-button:hover:not([aria-disabled="true"]) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.carousel-button[aria-disabled="true"] { cursor: default; opacity: .48; }
.project-grid { --project-gap: clamp(1.15rem, 2.5vw, 2.5rem); position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--project-gap)) / 2); gap: var(--project-gap); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #bfa581 transparent; }
.project { min-width: 0; display: grid; grid-template-rows: auto 1fr; scroll-snap-align: start; }
.project-image { aspect-ratio: 1.65; overflow: hidden; border-radius: 1.1rem; background: var(--linen); }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; }
.project-event img { object-position: center 52%; }
.project-campaign { background: #f2e5d2; }
.project-campaign img { object-fit: contain; object-position: center; }
.project-copy { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: .7rem; padding-block: 1.2rem .8rem; }
.project-location { color: var(--bronze); font-size: .875rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #a6753a; text-underline-offset: .32em; }
.text-link:hover { color: var(--bronze); text-decoration-color: currentColor; }
.project-copy .text-link:focus-visible { outline-offset: -2px; }

.about { background: var(--linen); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.about h2 { text-wrap: initial; }
.about h2 em { color: var(--bronze); display: block; }
.about-grid > div > p:not(.section-label) { max-width: 33rem; margin-block: 1.35rem .75rem; }
.team { border-top: 1px solid #d7cdbc; }
.team li { padding: 1.1rem 0 1.25rem; border-bottom: 1px solid #d7cdbc; }
.team h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.team p { margin-top: .25rem; color: var(--body); }

.contact { background: var(--ink-deep); text-align: center; }
.contact-inner { display: grid; justify-items: center; }
.contact .section-label { justify-content: center; }
.contact .section-label::before, .contact .section-label::after { content: ""; width: 2.5rem; height: 1px; background: #d3ae6c80; }
.contact h2 { max-width: 58rem; }
.contact p:not(.section-label) { max-width: 34rem; margin-top: 1.1rem; color: #e4dece; font-size: 1.1rem; }
.contact .actions { justify-content: center; margin-top: 1.75rem; }
.footer { border-top: 1px solid #fbf7ef2b; background: var(--ink-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.35rem; color: #e4dece; font-size: .875rem; }
.footer-email { text-underline-offset: .25em; overflow-wrap: anywhere; }
.footer-email:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .nav-inner { gap: 1.1rem; }
  .nav-links { gap: 1rem; }
}

@media (max-width: 900px) {
  :root { --gutter: clamp(1.1rem, 4.5vw, 3.4rem); }
  .service-grid { gap: .75rem; }
  .section-intro { gap: 1.5rem; }
  .nav-inner { flex-wrap: wrap; min-height: 4.75rem; gap: 0; padding-block: .55rem; }
  .brand { min-height: 3.5rem; gap: .5rem; }
  .brand-symbol { width: 2.2rem; }
  .brand-name img { width: 7.05rem; }
  .brand-name span { font-size: .465rem; letter-spacing: .05em; }
  .menu-toggle:not([hidden]) { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .35rem; padding: .35rem .55rem; color: var(--ink); border: 1px solid var(--line); background: transparent; border-radius: .35rem; font-size: .9rem; font-weight: 700; cursor: pointer; }
  .nav-links { flex: 0 0 100%; display: grid; gap: .2rem; padding-block: .65rem .25rem; white-space: normal; }
  .nav-links > a:not(.button) { padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
  .nav-contact { justify-self: start; margin-top: .65rem; }
  .menu-toggle[aria-expanded="false"] + .nav-enhanced { display: none; }
}

@media (max-width: 820px) {
  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-inner { padding: clamp(1.2rem, 4.65vw, 2.4rem); }
  .hero h1 { font-size: clamp(1.75rem, 7.8vw, 3.5rem); }
  .hero p { max-width: 30rem; margin-top: 1.05rem; }
  .hero .actions { margin-top: 1.25rem; }
  .hero-figure { aspect-ratio: 1.47; max-height: 27rem; }
  .image-note { right: .65rem; bottom: .65rem; }
}

@media (max-width: 720px) {
  .section-intro, .about-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .section-intro { margin-bottom: 1.65rem; }
  .desktop-break { display: none; }
  .service-grid { grid-template-columns: 1fr; gap: .75rem; }
  .service { grid-template-rows: none; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; row-gap: .55rem; }
  .service p { grid-column: 2; }
  .icon-tile { width: 3.15rem; height: 3.15rem; }
  .steps { grid-template-columns: 1fr; gap: 1.35rem; }
  .steps::before { inset: .5rem auto 1.15rem 1.5rem; height: auto; width: 1px; }
  .steps li { grid-template-columns: 3.1rem 1fr; align-items: start; justify-items: start; gap: 1rem; text-align: left; }
  .step-icon { width: 3.1rem; height: 3.1rem; }
  .steps p { max-width: none; margin: .3rem 0 0; }
  .project-grid { --project-gap: .9rem; }
  .project-copy { padding-block: 1rem .55rem; }
  .team { margin-top: .6rem; }
}

@media (max-width: 650px) {
  .focus-inner { padding-block: .85rem; }
  .focus-inner li { flex-direction: column; gap: .4rem; min-height: 3.3rem; padding: .2rem .3rem; text-align: center; font-size: .875rem; }
  .focus-inner .icon { width: 1.35rem; height: 1.35rem; }
  .project-grid { grid-auto-columns: 100%; }
  .footer-inner { flex-wrap: wrap; }
  .footer-email { flex-basis: 100%; }
}

@media (max-width: 420px) {
  .hero .actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .55rem; }
  .hero .button { min-height: 3rem; padding-inline: .33rem; font-size: .875rem; }
}

@media (max-width: 390px) {
  .button { padding-inline: .9rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
