:root {
  color-scheme: light;
  --bg: #f6f2ea; --surface: #fffcf6; --soft: #eee7da; --line: #dcd3c6;
  --text: #222330; --muted: #615d69; --mint: #63364f; --amber: #a74027; --blue: #295571;
  --accent: #a63e27; --night: #2c263d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 3; padding: 10px; background: var(--surface); }
.skip:focus { top: 12px; }
.bar, .footer { max-width: 1240px; margin: auto; padding: 20px clamp(18px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bar { border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 780; letter-spacing: -.025em; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--night); color: #fff1da; font-size: 21px; font-weight: 900; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.bar nav { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.bar nav a { color: var(--muted); font-weight: 690; padding: 9px 0; font-size: 13px; }
.bar nav a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
main { max-width: 1240px; padding: clamp(22px, 4.5vw, 54px) clamp(18px, 4vw, 44px) 60px; margin: auto; min-height: 71vh; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 24px; background: #eee4dc; border: 1px solid #e0d5ca; border-radius: 24px; }
.hero > div { padding: clamp(8px, 2.5vw, 34px); }
.hero img { width: 100%; height: auto; min-height: 330px; aspect-ratio: 1.08; object-fit: cover; border-radius: 16px; }
.eyebrow, .kind { color: var(--accent); font-size: 11px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; }
.hero h1, .pagehead h1, .city-copy h1 { font-family: Georgia, Cambria, serif; letter-spacing: -.064em; line-height: .92; font-weight: 650; text-wrap: balance; margin: 0; }
.hero h1 { font-size: clamp(49px, 6.15vw, 91px); }
.hero p:not(.eyebrow), .pagehead p, .card p, .detail p { color: var(--muted); line-height: 1.64; max-width: 65ch; }
.hero p:not(.eyebrow) { margin: 18px 0 24px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--accent); color: #fffaf1; padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 740; }
.button:hover { filter: brightness(.91); }
.button.ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.button.secondary { background: #295571; color: #fff; }
section { margin-top: 29px; }
.section-heading { font-family: Georgia, Cambria, serif; font-size: clamp(29px, 4vw, 45px); font-weight: 650; letter-spacing: -.055em; margin: 0 0 14px; }
.grid, .split { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; min-height: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 21px; }
.card h2, .card h3, .detail h2 { margin: 4px 0 8px; letter-spacing: -.04em; }
.card h2 { font-size: 22px; }
.card h3 { font-size: 20px; }
.card p { margin: 0 0 13px; font-size: 14px; }
.card.accent { border-top: 3px solid var(--tint, var(--accent)); }
.card .button { margin-top: 5px; }
.card details { padding: 12px 0; border-top: 1px solid var(--line); }
.card details:first-of-type { margin-top: 14px; }
.card summary { font-weight: 740; }
.card details p { margin: 8px 0 0; }
.pagehead { border-bottom: 1px solid var(--line); padding: 0 0 20px; }
.pagehead h1 { font-size: clamp(45px, 6vw, 76px); margin-bottom: 14px; }
.pagehead p { margin-bottom: 0; }
.tail { margin-top: 22px; color: var(--muted); }
.notice, .pill { display: inline-block; padding: 5px 9px; border-radius: 8px; color: #533849; background: #efE2e8; font-size: 12px; }
.pill.wait { color: #784310; background: #fae8c8; }
.search { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 18px 0 9px; }
.search label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.search label:first-child { flex: 1; min-width: 150px; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #cfc4b7; border-radius: 8px; color: var(--text); background: #fffefa; padding: 8px 10px; }
.empty { grid-column: 1/-1; padding: 22px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.detail { border: 1px solid #c7adb9; border-radius: 13px; margin-top: 16px; background: #f3e8eb; padding: 22px; }
.detail[hidden] { display: none; }
.progress { display: grid; gap: 10px; margin: 14px 0; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.tabrow, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tabrow { margin: 14px 0; }
.tabrow button[aria-pressed=true] { background: var(--night); color: #fffaf1; border-color: var(--night); }
.statusline { min-height: 20px; color: #65344a; font-size: 13px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.city-hero { display: grid; align-items: end; min-height: 480px; overflow: hidden; border-radius: 23px; padding: clamp(23px, 5.4vw, 65px); color: #fff8ea; background: linear-gradient(90deg,#211b2cec 0%,#211b2c96 43%,#211b2c08 88%),linear-gradient(0deg,#20192d88,transparent 65%),var(--night) url("vila-horizonte.png") center/cover; }
.city-copy { max-width: 490px; }
.city-copy h1 { font-size: clamp(61px, 10vw, 132px); }
.city-copy .eyebrow { color: #ffca9b; }
.city-copy p:not(.eyebrow) { max-width: 36ch; color: #fff2e4; line-height: 1.59; margin: 22px 0; }
.city-copy .button:not(.ghost) { background: #f7bd81; color: #3a2520; }
.portal-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.portal-strip a { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.portal-strip a:hover { background: var(--soft); }
.portal-strip span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.portal-strip.deic-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
.deic-steps .pill { padding: 10px; }
.form-card { display: grid; gap: 13px; }
.form-card h3, .form-card p { margin: 0; }
.form-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 680; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.form-card textarea { resize: vertical; }
.map-board { position: relative; min-height: 300px; border: 1px solid #9a9a93; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 78% 4%,#c4cda5 0 31%,transparent 32%),radial-gradient(ellipse at 46% 30%,#d8d1a4 0 43%,transparent 44%),repeating-linear-gradient(0deg,#9bbfc7 0 27px,#aac9cf 28px,#9bbfc7 29px); }
.map-water { position: absolute; left: 7%; bottom: 11%; font-size: 12px; color: #264c5c; letter-spacing: .12em; }
.map-pin { position: absolute; border: 1px solid #6c5a64; color: var(--text); background: var(--surface); padding: 9px 10px; border-radius: 8px; font-size: 12px; box-shadow: 0 4px 13px #27273529; }
.map-pin[aria-pressed=true] { background: var(--night); color: #fff5e6; }
.pin-port { left: 9%; top: 56%; }.pin-center { left: 36%; top: 34%; }.pin-valley { right: 9%; top: 12%; }
@media(max-width:850px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero img { min-height: 0; max-height: 330px; aspect-ratio: 1.65; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:580px) {
  .bar, .footer { align-items: start; flex-direction: column; gap: 7px; }
  .bar nav { gap: 3px 14px; }
  .bar nav a { font-size: 12px; padding: 7px 0; }
  main { padding-bottom: 38px; }
  .hero { padding: 12px; }
  .hero img { border-radius: 12px; }
  .grid, .portal-strip, .form-pair { grid-template-columns: 1fr; }
  .portal-strip.deic-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .city-hero { min-height: 420px; background-position: 58% center; }
  .city-copy h1 { font-size: clamp(50px,15vw,86px); }
}
