:root {
  color-scheme: light;
  --paper: #f2f2f2;
  --ink: #242424;
  --muted: #515151;
  --line: #cecece;
  --black: #000;
  font: 100%/1.55 "Lao UI", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid #595959; outline-offset: 5px; }
.frame { width: min(100% - 112px, 1320px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 16px; top: 16px; padding: 12px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { position: absolute; z-index: 2; inset: 0 0 auto; color: white; }
.nav { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid #ffffff40; }
.header-brand { justify-self: start; max-width: 100%; }
.brand-wordmark { width: clamp(245px, 25vw, 360px); max-width: 100%; height: auto; }
.header-brand .brand-wordmark { filter: brightness(0) invert(1); }
nav { display: flex; gap: clamp(18px, 4vw, 56px); }
nav a, .contact-nav { font-size: .94rem; text-decoration: none; }
.contact-nav { justify-self: end; padding-block: 9px; font-weight: 700; }
nav a:hover:not(:focus-visible), .contact-nav:hover:not(:focus-visible) { outline: 1px solid currentColor; outline-offset: 4px; }
.hero { --hero-height: clamp(650px, 89svh, 1000px); position: relative; isolation: isolate; display: grid; background: var(--black); color: #fafafa; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 64% 50%; z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000000db 0%, #0000008a 36%, #00000019 70%),
              linear-gradient(180deg, #000000d9 0%, transparent 25%, transparent 52%, #000000eb 100%);
}
.hero-inner { min-height: var(--hero-height); display: grid; grid-template-rows: 1fr auto; padding: 110px 0 34px; }
.hero-copy { align-self: center; display: flex; align-items: center; gap: .23em; padding-block: clamp(20px, 4vh, 54px); font-size: clamp(3rem, 7.5vw, 7.5rem); }
.hero-mark { flex: none; width: auto; height: 1.68em; height: calc(.97em + 1cap); }
.eyebrow { font-size: .84rem; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 20px; }
h1 { font-size: inherit; line-height: .97; text-transform: uppercase; letter-spacing: -.055em; }
@supports (text-box: trim-both cap alphabetic) {
  .hero-copy h1 { text-box: trim-both cap alphabetic; }
}
h2 { font-size: clamp(3rem, 5.7vw, 6rem); font-weight: 400; line-height: .99; letter-spacing: -.055em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.hero-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(24px, 4vw, 65px); align-items: center; border-top: 1px solid #ffffff65; padding-top: 22px; }
.intro { max-width: 45ch; }
.outline-button {
  display: inline-block;
  justify-self: start;
  min-width: 108px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  padding: 6px 23px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.outline-button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.hero-rotation { width: 36px; height: 36px; padding: 0; border: 1px solid currentColor; background: transparent; line-height: 1; }
.hero-rotation:not([hidden]) { display: grid; place-items: center; }
.hero-rotation span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero-rotation[data-paused] span { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; }
.hero-rotation:hover { background: #ffffff20; }
.header :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: white; }
.section { padding-block: clamp(58px, 8vw, 118px); }
.projects { position: relative; z-index: 1; background: var(--paper); }
#projetos, .gallery-section > .frame { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; margin-bottom: 44px; }
.section-head > p { max-width: 42ch; color: var(--muted); padding-bottom: 5px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 24px; }
.project img { aspect-ratio: 1.63; object-fit: cover; background: #dedede; }
.project-info { padding: 17px 0 12px; }
.project-info h3 { margin-bottom: 5px; }
.project-info p { color: var(--muted); }
.services, .contact { background: var(--black); color: var(--paper); }
.services-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.service-list article { padding: 21px 0; border-top: 1px solid #777; }
.service-list article:first-child { padding-top: 16px; }
.service-list p { margin-top: 8px; max-width: 46ch; }
.section-stack { isolation: isolate; }
.studio { --studio-height: clamp(460px, 43vw, 640px); position: relative; isolation: isolate; z-index: 1; display: grid; align-items: center; min-height: var(--studio-height); background: #d2d2ce; color: var(--black); }
.studio-background { position: absolute; inset: 0; z-index: -1; height: 100%; object-fit: cover; object-position: center; }
.studio-inner { display: grid; grid-template-columns: minmax(0, 49ch) auto; justify-content: start; align-items: center; gap: clamp(24px, 4vw, 54px); }
.studio-map { width: clamp(116px, 14vw, 182px); max-width: 100%; height: auto; }
.studio-wordmark { width: clamp(170px, 22vw, 320px); max-width: 100%; height: auto; }
.studio p:not(.eyebrow), .contact p:not(.eyebrow) { margin-top: 19px; max-width: 49ch; }
.studio .outline-button { margin-top: 22px; }
.gallery-section { position: relative; z-index: 2; background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.gallery button { margin: 0; padding: 0; border: 0; background: #dedede; overflow: hidden; }
.gallery img { aspect-ratio: 1.6; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { margin-top: 24px; }
.gallery-more[hidden] { display: none; }
.contact-inner { align-items: end; }
address { display: grid; gap: 14px; justify-items: start; font-style: normal; padding-bottom: 5px; }
address a[href^="tel:"] { font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 700; }
.footer { min-height: 111px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.footer-brand { max-width: 100%; }
dialog { width: min(860px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: clamp(16px, 4vw, 34px); border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #000000ba; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font-size: clamp(1.9rem, 5vw, 3.25rem); }
.close { font-size: 1.8rem; width: 42px; height: 42px; line-height: 1; background: transparent; border: 1px solid var(--line); }
#project-dialog .dialog-top { justify-content: flex-end; }
.detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; margin-top: 16px; }
.detail-photos img { max-height: 310px; object-fit: contain; background: #ededed; }
.lightbox { width: min(1110px, calc(100% - 28px)); }
.lightbox > img { max-height: 67dvh; object-fit: contain; background: #e8e8e8; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; }
.gallery-controls button { border: 1px solid var(--line); padding: 7px 10px; background: transparent; }
@media (max-width: 1000px) {
  .frame { width: calc(100% - 64px); }
}
@media (max-width: 900px) {
  .nav { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; padding-block: 12px; gap: 8px 10px; }
  .header-brand { grid-column: 1 / -1; }
  .brand-wordmark { width: 320px; }
  nav { grid-row: 2; gap: clamp(12px, 4vw, 23px); }
  .contact-nav { grid-row: 2; padding-block: 7px; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 36px); }
  .hero { --hero-height: max(670px, 94svh); }
  .hero-inner { padding: 128px 0 22px; container-type: inline-size; }
  .hero-copy { align-self: start; padding-block: 20px; font-size: clamp(1.15rem, 7.4vw, 3.5rem); font-size: clamp(1.15rem, 8.8cqi, 3.5rem); }
  .hero-image { object-position: 62% center; }
  .hero::after { background: linear-gradient(180deg, #000000eb 0%, #000000aa 29%, #0000001a 54%, #000000eb 90%); }
  .hero-footer { grid-template-columns: 1fr auto; gap: 14px 10px; padding-top: 14px; }
  .hero-footer .intro { grid-column: 1 / -1; }
  .section-head, .services-inner, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .studio-background { object-position: 62% center; }
  .studio-inner { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(12px, 3.5vw, 24px); }
  .studio-map { width: clamp(60px, 19vw, 116px); }
  .project-grid { grid-template-columns: 1fr; gap: 35px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .footer { flex-wrap: wrap; padding-block: 20px; }
}
@media (max-width: 360px) {
  nav { gap: 8px; }
  nav a, .contact-nav { font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero:not(:has(:focus-visible)) { position: sticky; top: min(0px, 100svh - var(--hero-height)); }
  .section-stack > :is(.services, .studio):not(:has(:focus-visible)) {
    position: sticky;
    top: min(0px, 100svh - var(--panel-height, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
