:root {
  color-scheme: light;
  --bg: #f3efe8;
  --ink: #1c1916;
  --muted: #6e675f;
  --soft: #3c3833;
  --line: rgba(28, 25, 22, 0.12);
  --surface: #fffdf9;
  --paper: #1c1916;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--paper); color: #f3efe8; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
canvas { display: block; }
img { height: auto; }
figure, dl, dd { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 50;
  padding: 12px 20px;
  background: var(--paper);
  color: #f3efe8;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  z-index: 40;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 12px max(40px, calc((100vw - 1120px) / 2));
  background: rgba(243, 239, 232, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-decoration: none;
}
.brand-location {
  margin-top: 4px;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
  font-size: 14px;
  text-decoration: none;
}
.bar-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--paper);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
.bar-cta { min-height: 42px; padding: 10px 16px; flex-shrink: 0; }
.bar-cta, .btn-solid { background: var(--paper); color: #f7f3ec; }
.bar-cta span, .btn span { font-size: 16px; line-height: 1; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-decoration: none;
}
.text-link span { font-size: 16px; }

.hero-bleed {
  position: relative;
  min-height: min(82vh, 820px);
  min-height: min(82svh, 820px);
  margin: 0;
  background: #cbbba6;
  overflow: hidden;
}
.hero-bleed video,
.hero-bleed img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 46%;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 22, 0.62) 0%, rgba(28, 25, 22, 0.28) 42%, rgba(28, 25, 22, 0.05) 72%),
    linear-gradient(180deg, rgba(28, 25, 22, 0.16) 0%, rgba(28, 25, 22, 0.22) 48%, rgba(28, 25, 22, 0.5) 100%);
  pointer-events: none;
}
.hero-bleed figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(82vh, 820px);
  min-height: min(82svh, 820px);
  padding-block: 88px 72px;
  color: #f7f3ec;
}
.hero-bleed h1, .hero-bleed .lede, .hero-bleed .kicker { color: #f7f3ec; }
.hero-bleed .title-dot { color: rgba(247, 243, 236, 0.72); }
.hero-bleed .btn-solid { background: #1c1916; color: #f7f3ec; border-color: #1c1916; }
.hero-credit {
  margin: 22px 0 0;
  color: rgba(247, 243, 236, 0.82);
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-link { color: #f7f3ec; border-bottom-color: rgba(247, 243, 236, 0.45); }

.ficha-band {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 8px 0 18px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.ficha {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ficha > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border-left: 1px solid var(--line);
}
.ficha > div:first-child { border-left: 0; }
.ficha dt { color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ficha dd { margin: 0; font: 300 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); letter-spacing: -0.03em; }
.ficha dd span { font-size: 0.55em; }
.stats-note { margin: 12px 4px 0; color: var(--muted); font-size: 13px; }

.kicker, .idx, .control-label {
  margin: 0;
  color: var(--muted);
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker { margin-bottom: 18px; }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 { font-size: clamp(64px, 8vw, 108px); line-height: 0.96; }
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.08; }
.lede { margin: 18px 0 0; max-width: 16ch; font-size: 22px; line-height: 1.35; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; }

.block { padding-block: 88px 72px; }
.idx { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.idx > span { color: var(--ink); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px 64px;
  align-items: end;
  margin-bottom: 36px;
}
.section-copy { max-width: 42ch; margin: 0; color: var(--soft); }
.place-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.item {
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.item h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 500; }
.item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.stage {
  background: var(--surface);
  border: 1px solid var(--line);
}
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sol-controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sol-controls .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: min(100%, 240px); margin-top: 0; }
.stage-toolbar .control-label { color: var(--ink); }
.stage-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.hud-tools { display: flex; gap: 8px; flex-shrink: 0; }
.hud-tools button, .faces button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.hud-tools button[aria-pressed="true"], .faces button[aria-pressed="true"] {
  background: var(--paper);
  color: #f7f3ec;
  border-color: var(--paper);
}
.hud-tools button:disabled { opacity: 0.45; cursor: wait; }
#view {
  width: 100%;
  height: clamp(420px, 62vh, 640px);
  height: clamp(420px, 62svh, 640px);
  background: #c9d0b8;
}
.stage-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.scene-note { margin: 0; color: var(--muted); font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--soft); font: 10px/1.5 var(--mono); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; }
.c-gleba { background: #995c41; }
.c-rua { background: #777d75; }
.c-rio { background: #387e98; }
.c-casa { background: #1c1916; }
.c-entorno { background: #6d8a55; }
.plant-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.plan-pane { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.plan-pane .control-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.plan-pane .note { margin: 0 0 12px; }
.plan-pane .sheet { max-height: 280px; overflow: hidden; }
.plan-pane .sheet img { width: 100%; max-height: 280px; object-fit: contain; object-position: top center; }
.plan-reference summary { padding: 16px 20px; font-size: 15px; cursor: pointer; }
.plan-reference summary::marker { color: var(--muted); }
.plan-date { float: right; color: var(--muted); font: 11px/1.6 var(--mono); }
.plan-content { padding: 0 20px 20px; }
.plan-content .note { margin: 0 0 14px; }
.sheet { display: block; background: #efeae2; }
.sheet img { width: 100%; }

.film {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.film-frame { aspect-ratio: 9 / 16; background: #e7e0d4; }
.phone video, .motion-poster { width: 100%; height: 100%; object-fit: cover; }
.motion-poster { display: none; }
.stills { display: grid; gap: 18px; }
.stills a, .film-frame { display: block; border: 1px solid var(--line); background: var(--surface); }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film figcaption { display: flex; justify-content: space-between; gap: 8px 12px; margin-top: 10px; color: var(--soft); font: 10px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.film figcaption span:last-child { color: var(--muted); }
.construction-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 15px;
}
.construction-note .control-label { color: var(--muted); }

.solar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); gap: 28px; align-items: start; }
.sun-stats { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); }
.sun-stats > div { padding: 18px 20px; border-top: 1px solid var(--line); }
.sun-stats > div:first-child { border-top: 0; }
.sun-stats dt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 11px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sun-stats dt > span { color: var(--muted); font-size: 10px; }
.sun-stats dd { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.sun-stats strong { min-width: 78px; font: 300 42px/1 var(--serif); letter-spacing: -0.03em; }
.sun-stats dd > span { color: var(--soft); font-size: 15px; line-height: 1.45; }
.solar-panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.sunpath { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 18px; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.faces button { padding: 10px 4px; }
.face-read { min-height: 7.2em; margin: 16px 0 0; color: var(--soft); font-size: 15px; line-height: 1.6; }

.availability { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.table-hint { display: none; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #f7f3ec; color: var(--soft); font: 500 11px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 15px; font-variant-numeric: tabular-nums; }
.empty-state { padding: 36px 28px 32px; }
.empty-status { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.empty-state h3 { margin: 16px 0 8px; font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; }
.empty-state p { max-width: 54ch; margin: 0; color: var(--muted); font-size: 15px; }
.empty-state .text-link { margin-top: 16px; }

.conta { margin-top: 28px; padding: 22px 22px 8px; background: var(--surface); border: 1px solid var(--line); }
.conta dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 12px; }
.conta dl > div { padding: 14px 8px; border-top: 1px solid var(--line); }
.conta dt { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.conta dd { margin: 4px 0 0; font: 300 28px/1.1 var(--serif); }
.conta dd span { display: block; margin-top: 4px; color: var(--muted); font: 13px/1.4 var(--sans); }
.ocupacao { margin-top: 8px; }
.ocupacao a { display: block; border: 1px solid var(--line); background: var(--surface); }
.ocupacao img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; }
.ocupacao figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.sol-stage { margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
#solview { display: block; width: 100%; max-width: none; height: 480px; max-height: 480px; background: #e7e0d4; }
.sol-controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px 0; }
.sol-controls .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: min(100%, 280px); }
.sol-stage .note { margin: 0; padding: 12px 16px 16px; }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px 48px;
  align-items: end;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact .section-copy { margin-top: 0; }
.contact .note { max-width: 42ch; }
.end { padding-block: 28px 36px; }
.footer-line { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-line > span, .back-top { color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.back-top { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; text-decoration: none; }
.foot { max-width: 78ch; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (hover: hover) {
  .bar-nav a:hover, .back-top:hover { color: var(--ink); }
  .bar-cta:hover, .btn-solid:hover { background: #000; border-color: #000; }
  .hero-bleed .btn-solid:hover { background: #000; color: #f7f3ec; border-color: #000; }
  .text-link:hover { border-color: var(--ink); }
  .hud-tools button:not(:disabled):hover, .faces button:hover { border-color: var(--paper); }
}

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .bar { padding-inline: 24px; }
  .place-details { grid-template-columns: 1fr 1fr; }
  .section-head, .solar-grid, .contact-panel { grid-template-columns: 1fr; gap: 20px; }
  .film { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 68px; padding: 10px 16px; }
  .brand { font-size: 12px; }
  .bar-nav { display: none; }
  .hero-bleed, .hero-bleed figcaption { min-height: 78svh; }
  .hero-bleed figcaption { padding-block: 56px 64px; }
  h1 { font-size: clamp(56px, 14vw, 80px); }
  h2 { font-size: clamp(34px, 8vw, 46px); }
  .lede { font-size: 20px; }
  .ficha { grid-template-columns: 1fr 1fr; }
  .ficha > div:nth-child(odd) { border-left: 0; }
  .ficha > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ficha-band { margin-top: -18px; border-radius: 18px 18px 0 0; }
  .block { padding-block: 56px 48px; }
  .place-details, .plant-details { grid-template-columns: 1fr; }
  .stage-toolbar { flex-wrap: wrap; padding: 14px; }
  #view { height: clamp(320px, 58svh, 480px); }
  .film { grid-template-columns: 1fr; }
  .phone { width: min(100%, 280px); }
  .stills img { aspect-ratio: 4 / 3; }
  .construction-note { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .conta dl, .sol-controls { grid-template-columns: 1fr; }
  .conta dl { display: grid; grid-template-columns: 1fr; }
  .sol-controls { flex-direction: column; }
  .contact-panel { padding: 24px 18px; }
  .table-hint { display: block; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px/1.5 var(--mono); }
  .empty-state { padding: 24px 18px; }
  .hud-tools { width: 100%; }
  .hud-tools button { flex: 1; }
  .plan-date { display: block; float: none; margin-top: 6px; }
  .back-top { flex-basis: 100%; margin-left: 0; }
}

.hero-bleed img { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bleed video, .phone video { display: none; }
  .hero-bleed img, .motion-poster { display: block; }
}
