@font-face {
  font-family: Clash Display;
  src: url("ClashDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Clash Display;
  src: url("ClashDisplay-Semibold.otf") format("opentype");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: Erode;
  src: url("Erode-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #161f23;
  --muted: #4c585a;
  --paper: #fbfbf8;
  --white: #fff;
  --line: #d7dcd5;
  --ground: #efefe9;
  --lime: #dcfd52;
  --lime-hover: #e0ff65;
  --max: 78rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: "Clash Display", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 2rem; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 7vw, 6.5rem); }

:focus-visible { outline: 2px solid #205b9a; outline-offset: 4px; }
.skip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  padding: .75rem 1rem;
  background: var(--white);
  transform: translateY(-180%);
}
.skip:focus { transform: translateY(0); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: center;
  min-height: 5.25rem;
}
.brand { width: fit-content; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 1.2rem; font-weight: 740; letter-spacing: -.047em; white-space: nowrap; }
.brand-logo { width: clamp(8.75rem, 13vw, 11.35rem); height: auto; }
.nav, .header-utilities { display: flex; align-items: center; gap: clamp(1rem, 2.25vw, 2rem); }
.header-utilities { justify-content: flex-end; }
.nav a, .locale-link { font-size: .9375rem; font-weight: 620; text-decoration: none; }
.nav a:hover, .locale-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.button {
  display: inline-flex;
  min-height: 3.2rem;
  padding: .72rem 1.3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .2rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 720;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .17s ease, border-color .17s ease;
}
.button:hover { background: var(--lime-hover); border-color: #8bad18; }
.button:disabled { cursor: default; opacity: .5; }
.button-small { min-height: 2.65rem; padding: .55rem .9rem; font-size: .9375rem; }
.button-outline { background: transparent; border-color: var(--line); }
.text-link {
  width: fit-content;
  font-weight: 650;
  text-underline-offset: .25em;
  text-decoration-color: #647b6f;
}
.text-link:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6.1vw, 6.7rem) clamp(4.5rem, 8vw, 7.4rem);
}
.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 680;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: #768b19; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: Erode, Georgia, serif; font-weight: 400; }
h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 5.8vw, 5.9rem);
  line-height: 1.01;
  letter-spacing: -.045em;
}
:lang(es) .hero h1 { max-width: 13ch; font-size: clamp(2.65rem, 5.02vw, 5.25rem); }
.hero-description {
  max-width: 38ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem 1.3rem; align-items: center; margin-top: 1.8rem; }
.hero-visual { position: relative; align-self: stretch; display: grid; align-items: center; }
.site-photo { position: relative; background: #e4e5df; }
.site-photo img { aspect-ratio: 1.24; object-fit: cover; object-position: center 48%; }
.site-photo figcaption, .project-media figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .28rem .55rem;
  background: var(--white);
  font-size: .75rem;
  line-height: 1.35;
  color: #364141;
}
.plan-inset {
  position: absolute;
  left: -1.6rem;
  bottom: -.95rem;
  width: clamp(11rem, 43%, 16rem);
  padding: .45rem .55rem .55rem;
  border: 1px solid #cdd4cd;
  background: var(--white);
  box-shadow: 0 1.3rem 2.65rem -1.6rem #14212799;
}
.plan-inset figcaption { margin-top: .38rem; font-size: .79rem; font-weight: 630; }

h2 {
  max-width: 22ch;
  margin-bottom: clamp(1.7rem, 3vw, 2.8rem);
  font-size: clamp(2.05rem, 4.2vw, 3.65rem);
  letter-spacing: -.04em;
  line-height: 1.09;
}
h3 { font-size: clamp(1.2rem, 1.7vw, 1.53rem); font-weight: 690; letter-spacing: -.028em; line-height: 1.2; }
.services { border-top: 1px solid var(--line); }
.services-grid, .portfolio-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3.25vw, 2.5rem);
}
.service { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.service:first-child { border-top-color: #8fab2d; }
.service h3, .project h3, .process h3 { margin-bottom: .65rem; }
.service p, .project p, .process p { color: var(--muted); }
.service .service-detail { margin-block: .75rem 1.35rem; font-size: .94rem; }
.service-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  margin-top: auto;
}
.scope-note { margin-top: 2rem; color: var(--muted); font-size: .9rem; }

.portfolio { background: var(--ground); }
.project { background: var(--white); border: 1px solid var(--line); }
.project-media { position: relative; overflow: hidden; background: #e4e6df; }
.project-media img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.project-info { padding: 1.25rem 1.25rem 1.5rem; }
.project .project-location {
  margin-bottom: .42rem;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project .project-scope { margin-bottom: .55rem; color: var(--ink); font-size: .94rem; font-weight: 640; }
.home-gallery {
  margin-top: clamp(2.8rem, 6vw, 5rem);
  padding-top: clamp(1.25rem, 3.2vw, 2.3rem);
  border-top: 1px solid var(--line);
}
.home-gallery h3 {
  margin-bottom: 1.05rem;
  font-family: Erode, Georgia, serif;
  font-size: clamp(1.95rem, 3.65vw, 3rem);
  font-weight: 400;
}
.gallery-stage { touch-action: pan-y pinch-zoom; }
.home-render {
  background: var(--white);
  border: 1px solid var(--line);
}
.home-render img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--ink);
}
.home-render figcaption {
  padding: .75rem 1rem;
  font-size: clamp(.95rem, 1.45vw, 1.12rem);
  font-weight: 650;
}
.gallery-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  margin-top: .8rem;
}
.gallery-button {
  justify-self: start;
  min-height: 2.8rem;
  padding: .55rem .9rem;
  border-color: var(--line);
  background: var(--white);
  font-size: .9375rem;
}
.gallery-button[data-gallery-next] { justify-self: end; }
.gallery-position { color: var(--muted); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.process-grid { padding-left: 0; margin: 0; list-style: none; }
.process-grid li { padding-top: 1.15rem; border-top: 1px solid var(--line); }

.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 8vw, 7rem); }
.contact-copy h2 { max-width: 13ch; margin-bottom: 1rem; }
.contact-copy > p { max-width: 31ch; color: #d9e1e1; font-size: 1.09rem; }
.contact-area { max-width: 28rem; margin-top: 2.2rem; border-top: 1px solid #5c6a6d; padding-top: 1.1rem; }
.contact-area h3 { font-size: 1.07rem; color: #e5f48f; margin-bottom: .45rem; }
.contact-area p { margin-top: .3rem; color: #d9e1e1; }
.quote-form { min-width: 0; padding: clamp(1.2rem, 3.2vw, 2.25rem); background: var(--white); color: var(--ink); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-grid > label, .draft > label { display: block; min-width: 0; font-size: .9375rem; font-weight: 650; }
.wide, .form-status { grid-column: 1 / -1; }
.field-hint { display: block; margin-block: .14rem .32rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.quote-form :is(input, select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  margin-top: .25rem;
  padding: .55rem .65rem;
  border: 1px solid #aab4ae;
  border-radius: .15rem;
  color: var(--ink);
  background: #fcfdfa;
  font-size: 1rem;
  font-weight: 400;
}
.quote-form textarea { resize: vertical; }
.select-wrap { display: block; position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: .85rem;
  top: 1.18rem;
  width: .48rem;
  height: .48rem;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.select-wrap select { appearance: none; padding-right: 2rem; text-overflow: ellipsis; }
.form-note, .form-status { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.form-submit { margin-top: .9rem; }
.form-status:empty { margin: 0; }
.form-status { color: #2c4f40; font-weight: 650; }
.draft { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.draft-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .55rem; }
.draft-actions .button { min-height: 2.7rem; padding: .55rem .85rem; font-size: .9rem; }
.site-footer { background: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; justify-content: space-between; padding-block: 1.4rem; }
.footer-inner p, .footer-inner .text-link { color: var(--muted); font-size: .9rem; }

@media (max-width: 57rem) {
  .hero { gap: 1.65rem; }
  h1 { font-size: clamp(2.85rem, 6.2vw, 4.2rem); }
  .plan-inset { left: -.6rem; bottom: -.7rem; }
  .project-info { padding-inline: 1rem; }
}

@media (max-width: 47rem) {
  .header-inner { grid-template-columns: auto 1fr; min-height: 4.25rem; gap: .8rem; }
  .nav { display: none; }
  .header-utilities { gap: .85rem; }
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 2.6rem 3.6rem; gap: 1.75rem; }
  .hero h1 { max-width: 15ch; }
  :lang(es) .hero h1 { max-width: 18ch; }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.3rem; }
  .site-photo img { aspect-ratio: 1.45; }
  .plan-inset { width: clamp(8.75rem, 41%, 13rem); }
  .services-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .service .service-detail { margin-bottom: .7rem; }
  .project-info { padding: 1.25rem; }
  .contact-area { margin-top: 1.45rem; }
}

@media (max-width: 24rem) {
  .brand-name { font-size: 1rem; }
  .brand-logo { width: 7.8rem; }
  .header-quote { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
