:root {
  color-scheme: light;
  --ink: #112b40;
  --muted: #4e5e68;
  --accent: #f3a267;
  --accent-dark: #954111;
  --paper: #fffefa;
  --line: #e2ded7;
  --pale: #f2efe9;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1200px;
  --edge: clamp(20px, 4.8vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ad531f; outline-offset: 4px; }
section[id] { scroll-margin-top: 32px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .99; }
h2 { font-size: clamp(2.75rem, 5vw, 4.75rem); letter-spacing: -.025em; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--edge))); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 5;
  transform: translateY(-180%);
  color: white;
  background: var(--ink);
  padding: .6rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--paper); }
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 28px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; text-decoration: none; }
.brand img { object-fit: contain; flex-shrink: 0; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text span { font-size: .85rem; font-weight: 700; }
.brand-text strong { font-size: 1.65rem; letter-spacing: .08em; }
.navigation { display: flex; align-items: center; gap: clamp(20px, 3vw, 43px); }
.navigation a { font-size: .9375rem; font-weight: 600; text-decoration: none; text-underline-offset: 5px; }
.navigation a:hover { text-decoration: underline; text-decoration-color: var(--accent-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  min-height: 49px;
  padding: .7rem 1.15rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button-dark { background: var(--ink); color: #fffefa; }
.button-dark:hover { background: #244863; }
.button-accent { color: #262119; background: var(--accent); }
.button-accent:hover { background: #ffd0ad; }
.button-outline { color: white; border-color: #ffffffa6; background: #132b4070; }
.button-outline:hover { background: #112b40; border-color: white; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(534px, 45vw, 650px);
  background: #2a3335;
  color: #fffdf8;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101e2aed 0%, #101e2ac9 27%, #101e2a54 55%, transparent 85%);
}
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-inner { padding-block: 78px 89px; }
.hero-copy { max-width: 630px; }
.eyebrow {
  color: var(--accent-dark);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero-location { display: flex; align-items: center; gap: 12px; color: #ffcca8; margin-bottom: 21px; }
.hero-location::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.4rem, 8.6vw, 8rem); letter-spacing: -.027em; line-height: .86; }
.hero h1 em { font-weight: 400; color: #ffd2af; }
.hero-summary { max-width: 420px; margin-top: 26px; color: #fffaf3; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-credit, .photo-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  background: #13293de8;
  color: #fff;
  font-size: .75rem;
}
.hero-credit { right: var(--edge); }

.section { padding-block: clamp(54px, 7vw, 94px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px 46px;
  margin-bottom: 30px;
}
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p { max-width: 310px; padding-bottom: 3px; color: var(--muted); }
.section-heading > .text-link { margin-bottom: 5px; }

.solutions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.solution { background: #fffefa; border: 1px solid var(--line); }
.solution-photo, .project-photo { position: relative; overflow: hidden; background-color: var(--pale); }
.solution-photo { aspect-ratio: 4 / 3; }
.solution-photo img, .project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution:nth-child(2) img { object-position: 50% 39%; }
.solution-content { padding: 20px 17px 21px; }
.solution-content h3 { font-size: 1.27rem; }
.solution-content p { margin-top: 9px; color: var(--muted); }

.projects { background: var(--pale); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.project-link { display: block; background: var(--paper); color: inherit; text-decoration: none; }
.project-photo { aspect-ratio: 4 / 3; }
.project-photo img { transition: transform .24s ease; }
.project-link:hover img { transform: scale(1.04); }
.project:nth-child(2) img { object-position: 50% 41%; }
.project-info { padding: 19px 21px 22px; }
.project-info p { margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--accent-dark); }
.project-info h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.project-info .text-link { display: inline-block; margin-top: 12px; }
.text-link {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #9a5736;
}
.text-link:hover { color: var(--accent-dark); }

.quote-section { padding-bottom: clamp(42px, 5vw, 70px); }
.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px min(7vw, 104px);
  padding: clamp(26px, 5.6vw, 74px);
  color: #fffdf7;
  background: var(--ink);
}
.quote-panel .eyebrow { margin-bottom: 10px; color: #ffbe92; }
.quote-panel h2 { text-wrap: initial; }
.quote-panel h2 + p { margin-top: 14px; max-width: 475px; color: #ecedea; }
.contact-actions { display: grid; justify-items: center; gap: 15px; }
.contact-phone, .contact-phone:hover { color: #fffdf7; text-decoration-color: #ffbe92; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 86px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 14px;
}
.footer-brand { font-weight: 700; }
.footer-inner > p { font-size: .9375rem; color: var(--muted); }

.project-dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100% - 28px);
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior: contain;
}
.project-dialog::backdrop { background: #0e2031b8; }
.dialog-toolbar { display: flex; justify-content: flex-end; padding: 7px 18px; }
.dialog-close { background: transparent; border: 0; padding: 6px; cursor: pointer; }
.dialog-image { width: 100%; max-height: 42vh; object-fit: contain; background: var(--pale); }
.dialog-body { padding: 21px 24px 26px; }
.dialog-body h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.dialog-description { margin: 10px 0 16px; color: var(--muted); }

@media (max-width: 960px) {
  .header-inner { gap: 16px; }
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-photo { aspect-ratio: 16 / 10; }
  .hero { min-height: 530px; }
}
@media (max-width: 760px) {
  .hero-inner { padding-block: 70px 80px; }
  .hero-image { object-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, #101e2aeb, #101e2aaf 64%, #101e2a32); }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { max-width: 450px; }
  .projects-grid { gap: 12px; }
  .project-info { padding: 14px; }
  .quote-panel { grid-template-columns: 1fr; }
  .contact-actions { justify-items: start; }
}
@media (max-width: 520px) {
  .header-inner { gap: 8px 15px; }
  .navigation { justify-content: space-between; gap: 12px; }
  .hero { min-height: 510px; }
  .hero h1 { font-size: clamp(3.75rem, 14vw, 5rem); }
  .hero-summary { font-size: 1rem; }
  .hero-actions { align-items: start; gap: 9px; }
  .hero-actions .button { padding-inline: .8rem; font-size: .875rem; }
  .section-heading { margin-bottom: 22px; }
  .solutions-grid { gap: 12px; }
  .solution-photo { aspect-ratio: 5 / 4; }
  .solution-content { padding: 14px 11px 15px; }
  .solution-content h3 { font-size: 1.08rem; }
  .solution-content p { margin-top: 6px; }
  .photo-credit { bottom: 5px; right: 5px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-photo { aspect-ratio: 16 / 10; }
  .project-info { padding: 15px 16px; }
  .footer-inner { gap: 6px 22px; }
  .footer-inner .brand { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


.portal-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.portal-entry:hover { color: var(--accent-dark); }
.social-links { display: flex; align-items: center; justify-self: end; }
.social-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: color .18s, background-color .18s;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon[href]:hover, .social-icon[href]:focus-visible { color: var(--accent-dark); background: #f8eee5; }
.social-icon[aria-disabled="true"] { color: #65727b; }
.social-email { color: var(--accent-dark); }
.whatsapp-float {
  position: fixed;
  z-index: 4;
  right: max(clamp(14px, 2.3vw, 36px), env(safe-area-inset-right));
  bottom: max(clamp(14px, 2.3vw, 32px), env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 19px 10px 15px;
  border: 1px solid #ffffff8c;
  border-radius: 99px;
  color: white;
  background: #126447;
  box-shadow: 0 4px 18px #102c2942;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.whatsapp-float svg { width: 25px; height: 25px; flex: none; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #0c5139; }
.site-footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (max-width: 880px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "navigation login";
    gap: 0 10px;
    padding: 6px 0;
  }
  .header-inner .brand { grid-area: brand; }
  .header-inner .social-links { grid-area: social; }
  .header-inner .navigation { grid-area: navigation; justify-content: flex-start; gap: clamp(10px, 3vw, 24px); }
  .header-inner .navigation a { display: inline-flex; align-items: center; min-height: 44px; }
  .header-inner .portal-entry { grid-area: login; justify-self: end; }
}
@media (max-width: 520px) {
  .header-inner { width: calc(100% - 24px); grid-template-columns: auto 1fr; gap: 0; }
  .header-inner .navigation { grid-column: 1 / -1; justify-self: start; }
  .header-inner .portal-entry { grid-column: 1 / -1; }
  .header-inner .navigation a, .portal-entry { font-size: .875rem; }
  .header-inner .social-icon { width: clamp(36px, 10.2vw, 44px); }
  .whatsapp-float { min-height: 46px; padding: 8px 14px 8px 12px; gap: 7px; font-size: .9375rem; }
}
@media (max-width: 355px) {
  .header-inner .brand { gap: 5px; }
  .header-inner .brand img { width: 32px; height: 32px; }
  .header-inner .brand-text span { font-size: .75rem; }
  .header-inner .navigation { gap: 8px; }
  .header-inner .portal-entry { gap: 3px; }
}
@media print {
  .social-links, .whatsapp-float { display: none; }
}

@keyframes luz-arc {
  from { transform: scale(1.015) translateX(-.5%); }
  to { transform: scale(1.085) translateX(.7%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: luz-arc 16s ease-in-out infinite alternate; }
}
.hero-music {
  position: absolute; bottom: 12px; left: var(--edge); width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  color: white; background: radial-gradient(circle, #112b4088 0 15px, transparent 16px); cursor: pointer;
}
.hero-music:focus-visible { outline: 2px solid white; }
.hero-music[hidden], .hero-music .sound-on, .hero-music.playing .sound-off { display: none; }
.hero-music.playing .sound-on { display: inline; }

.hero-image { opacity: 0; }
.hero-image.visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-image { transition: opacity 1.2s ease-in-out; }
}
.hero.paused .hero-image { animation-play-state: paused; }
@media (max-width: 640px) {
  .hero-credit { top: 12px; bottom: auto; }
  .hero-image { object-position: 68% center; }
}

.model-reference { margin: 0 0 18px; }
.model-reference figcaption { margin-bottom: 8px; font-size: .875rem; }
.model-reference img { display: block; width: 100%; height: 160px; object-fit: contain; background: var(--pale); }
