:root {
  color-scheme: light;
  --ink: #172536;
  --muted: #47586a;
  --line: #dce3e9;
  --paper: #f4f6f8;
  --navy: #102131;
  --accent: #984207;
  --orange: #ffb475;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b95413; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.35rem, 4.9vw, 4.65rem); letter-spacing: -.052em; }
h2 { font-size: clamp(1.62rem, 3vw, 2.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }
.shell { width: min(calc(100% - 3rem), 75rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: 1rem; padding: .65rem 1rem; z-index: 4; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 5.2rem; }
.logo { width: 9.25rem; }
.header nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.header nav a, .language { padding-block: .4rem; font-size: .96rem; font-weight: 620; text-decoration: none; }
.header nav a:hover, .header nav a[aria-current="page"], .language:hover { color: var(--accent); text-decoration: underline; }
.language { padding-inline-start: .85rem; border-inline-start: 1px solid var(--line); }
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 31%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102131 12%, rgba(16, 33, 49, .98) 32%, rgba(16, 33, 49, .66) 62%, rgba(16, 33, 49, .06) 92%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(13.5rem, .45fr); align-items: end; gap: clamp(1rem, 4vw, 3.5rem); min-height: clamp(29rem, 51vw, 39rem); padding-block: 5.5rem; }
.hero-copy { max-width: 45rem; }
.hero-photo { justify-self: end; width: min(100%, 20rem); background: #112233; border: 1px solid rgba(255, 255, 255, .5); border-radius: .2rem; box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, .28); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; object-position: center 55%; }
.hero-photo figcaption { color: #fff; font-size: .84rem; line-height: 1.35; padding: .65rem .75rem; }
.motion-control { position: absolute; right: 0; bottom: 1.15rem; appearance: none; background: #142638; border: 1px solid #bcc8d1; border-radius: .25rem; padding: .42rem .7rem; color: #fff; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 620; }
.motion-control:hover { background: #29445b; }
.motion-ready .hero-media img { animation: city-drift 20s cubic-bezier(.4, 0, .35, 1) infinite alternate; animation-play-state: paused; }
.motion-on .hero-media img { animation-play-state: running; }
.motion-on .hero-copy { animation: enter .75s cubic-bezier(.2, .75, .25, 1) both; }
.motion-on .hero-photo { animation: enter .85s .12s cubic-bezier(.2, .75, .25, 1) both; }
.motion-on .reveal-in { animation: enter .55s cubic-bezier(.2, .75, .25, 1) both; }
.motion-on .photos .reveal-in:nth-child(2), .motion-on .buyer-grid .reveal-in:nth-child(2) { animation-delay: .08s; }
.motion-on .photos .reveal-in:nth-child(3), .motion-on .buyer-grid .reveal-in:nth-child(3) { animation-delay: .16s; }
@keyframes city-drift { from { transform: scale(1.025) translateX(0); } to { transform: scale(1.11) translateX(-1.5%); } }
@keyframes enter { from { opacity: .42; transform: translateY(1.05rem); } to { opacity: 1; transform: translateY(0); } }
.context { color: var(--accent); font-size: .91rem; font-weight: 710; margin-bottom: 1rem; }
.hero .context { color: var(--orange); }
.hero h1 + p, .page-intro h1 + p { margin-top: 1.2rem; font-size: clamp(1.06rem, 1vw + .7rem, 1.31rem); max-width: 39rem; }
.hero h1 + p { color: #edf1f5; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.05rem 1.6rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 2.9rem; background: var(--navy); color: white; font-weight: 680; line-height: 1.2; padding: .75rem 1.1rem; border-radius: .3rem; text-decoration: none; }
.button:hover { background: #27445d; }
.hero .button, .band .button { background: var(--orange); color: #271609; }
.hero .button:hover, .band .button:hover { background: #ffd2ab; }
.text-link { font-weight: 680; }
.content { padding-block: clamp(3rem, 7vw, 5.5rem); }
.areas { margin-top: 1.7rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.area { grid-column: span 2; min-width: 0; background: linear-gradient(145deg, #fff 55%, #f7f9fb); padding: 1.55rem; border: 1px solid var(--line); border-top: 2px solid #c46729; border-radius: .2rem; }
.area:nth-last-child(-n+2) { grid-column: span 3; }
.area p, .case p, .contact-card p { margin-top: .65rem; color: var(--muted); }
.area details { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.area summary { cursor: pointer; color: var(--accent); font-weight: 680; }
.area ul { margin: .65rem 0 0; padding-left: 1.3rem; color: var(--muted); }
.area li + li { margin-top: .32rem; }
.areas-expanded { align-items: start; }
.portfolio { background: #eef2f5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-heading p { color: var(--muted); max-width: 39rem; margin-top: .65rem; }
.section-heading .button { flex-shrink: 0; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 2.2vw, 1.4rem); }
.photo { background: white; color: var(--ink); min-width: 0; border: 1px solid var(--line); border-radius: .2rem; overflow: hidden; }
.photo-image { aspect-ratio: 5 / 4; overflow: hidden; background: #d9e1e7; }
.photo-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.photo-link { display: block; position: relative; overflow: hidden; }
.photo-link:focus-visible { outline-offset: -5px; }
.photo-icon { position: absolute; display: grid; place-items: center; right: .65rem; bottom: .65rem; width: 2rem; height: 2rem; background: #132334; border: 1px solid #e6edf3; border-radius: 50%; color: #fff; font-size: 1.22rem; line-height: 1; }
.motion-on .photo-link img { transition: transform .35s ease-out; }
.motion-on .photo-link:hover img { transform: scale(1.045); }
.photo-dialog { width: min(54rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 1px solid #476175; border-radius: .4rem; background: #102131; color: #fff; padding: 2.9rem 1rem 1rem; }
.photo-dialog::backdrop { background: rgba(9, 19, 29, .89); }
.photo-dialog img { width: auto; height: auto; max-width: 100%; max-height: 69vh; object-fit: contain; margin-inline: auto; }
.photo-dialog figcaption { max-width: 42rem; margin: .9rem auto 0; text-align: center; }
.photo-close { position: absolute; top: .45rem; right: .65rem; width: 2.2rem; height: 2.2rem; background: #f5f7fa; color: #102131; border: 0; border-radius: .23rem; font-size: 1.65rem; cursor: pointer; line-height: 1; }
.photo figcaption { display: grid; gap: .3rem; padding: .85rem 1rem 1rem; }
.photo figcaption strong { font-size: 1.04rem; line-height: 1.3; }
.photo figcaption span { color: var(--muted); font-size: .95rem; }
.gallery-section { padding-block: clamp(1.65rem, 5vw, 3.35rem); }
.archive { background: #dfe7ed; }
.archive-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 4rem); padding-block: clamp(2.7rem, 7vw, 5.5rem); }
.archive-photo img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; object-position: center 48%; border-radius: .22rem; }
.archive-photo figcaption { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.archive-copy p { color: var(--muted); margin-top: .85rem; font-size: 1.05rem; max-width: 34rem; }
.archive-field-only { grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); }
.field-photos { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-field-only .field-photos { grid-column: auto; }
.field-photos .photo { display: grid; grid-template-columns: minmax(5.7rem, 31%) 1fr; align-items: center; }
.field-photos .photo-image { height: 100%; min-height: 10rem; aspect-ratio: auto; }
.field-photos .photo-image img { object-position: center 54%; }
.band { background: var(--navy); color: #fff; }
.band-inner { padding-block: 3.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; }
.band-inner .actions { margin-top: 0; }
.band-inner .button { flex-shrink: 0; }
.page-intro { padding-block: clamp(3.4rem, 9vw, 6.75rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 52rem; }
.page-intro h1 + p { color: var(--muted); }
.buyer { background: var(--navy); color: #fff; }
.buyer .section-heading p, .buyer-grid p { color: #e1e9f1; }
.buyer .button { background: var(--orange); color: #271609; }
.buyer .button:hover { background: #ffd2ab; }
.buyer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.buyer-grid article { background: #1a2d40; border-top: 2px solid var(--orange); padding: 1.2rem; }
.buyer-grid p { margin-top: .55rem; }
.project-tools { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.65rem; }
.project-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.project-filters button { border: 1px solid #a7b3bf; border-radius: .24rem; background: #fff; color: var(--ink); font: inherit; font-size: .94rem; font-weight: 650; padding: .5rem .72rem; cursor: pointer; }
.project-filters button:hover, .project-filters button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.project-count { color: var(--muted); margin-top: .65rem; font-size: .95rem; }
.project-group + .project-group { margin-top: 3.3rem; }
.project-group[hidden] + .project-group { margin-top: 0; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.bottom-action { margin-top: 2rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(14.5rem, 1fr); gap: 1.8rem; align-items: start; }
.office-grid { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.contact-office { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: .65rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-office strong { font-size: 1.14rem; }
.contact-office > a { color: var(--ink); font-weight: 650; }
.contact-office .whatsapp { justify-self: start; color: var(--accent); }
.contact-card { background: #edf2f5; border-top: 3px solid #c46729; padding: clamp(1rem, 3vw, 2.1rem); border-radius: .2rem; }
.contact-card .button { margin-top: 1.3rem; }
.footer { background: #f4f6f8; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 6.3rem; padding-block: 1.3rem; }
.footer-brand, .footer-office { display: grid; gap: .12rem; }
.footer-brand strong, .footer-office strong { color: var(--ink); }
.footer-offices { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1rem, 3vw, 2.7rem); }
.footer-offices a { white-space: nowrap; }

@media (max-width: 48rem) {
  .header-inner { padding-block: .55rem .75rem; flex-wrap: wrap; gap: .25rem 1rem; }
  .header nav { order: 1; flex-basis: 100%; flex-wrap: wrap; }
  .hero-media { inset: 0; }
  .hero::after { background: linear-gradient(0deg, #102131 1%, rgba(16, 33, 49, .91) 47%, rgba(16, 33, 49, .24)); }
  .hero-inner { grid-template-columns: 1fr; min-height: 32rem; padding-block: 6rem 3rem; row-gap: 1.6rem; }
  .hero-photo { display: grid; grid-template-columns: 7.1rem minmax(0, 1fr); align-items: center; justify-self: start; width: min(100%, 20rem); }
  .area { grid-column: span 3; }
  .area:last-child { grid-column: 1 / -1; }
  .band-inner { align-items: flex-start; flex-direction: column; }
  .archive-inner { grid-template-columns: 1fr; }
  .archive-copy { grid-row: 1; }
  .buyer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 33rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner { min-height: 29rem; }
  .motion-control { right: 0; bottom: .65rem; }
  .areas { grid-template-columns: 1fr; }
  .area, .area:nth-last-child(-n+2) { grid-column: 1; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .cases, .photos { grid-template-columns: 1fr; }
  .photo-image { aspect-ratio: 5 / 4; }
  .contact-office { grid-template-columns: minmax(5.25rem, 1fr) minmax(8.25rem, 1.25fr); }
  .contact-office .whatsapp { grid-column: 2; }
  .footer-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1.2rem; }
  .contact-card p { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero-media img, .motion-on .hero-copy, .motion-on .hero-photo, .motion-on .reveal-in { animation: none; }
  .motion-on .photo-link img { transition: none; }
}
