:root {
  --ink: #171817;
  --paper: #f3f1ec;
  --white: #fff;
  --stone: #d8d4cb;
  --green: #24332b;
  --accent: #a98953;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { object-fit: cover; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5vw;
  color: white;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  letter-spacing: .11em;
}

.brand-name { font-family: var(--serif); font-size: 20px; }
.brand-subtitle { margin-top: 7px; font-size: 8px; letter-spacing: .42em; padding-left: .42em; }

nav { display: flex; align-items: center; gap: 34px; font-size: 13px; }
nav a { transition: opacity .2s ease; }
nav a:hover { opacity: .65; }
.nav-contact { border: 1px solid rgba(255,255,255,.6); padding: 11px 18px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,20,16,.71) 0%, rgba(14,20,16,.29) 51%, rgba(14,20,16,.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 90vw);
  padding: 0 0 9vh 7vw;
}

.eyebrow {
  margin: 0 0 30px;
  color: #70726f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow.light { color: rgba(255,255,255,.72); }

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(64px, 8vw, 132px); line-height: .85; }

.hero-copy {
  max-width: 560px;
  margin: 30px 0 36px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.hero-actions { display: flex; align-items: center; gap: 34px; }

.button {
  display: inline-block;
  padding: 16px 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--accent); color: white; }
.text-link { font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span { margin-left: 8px; }
.hero-signature {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 7vh;
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  writing-mode: vertical-rl;
}

.section-pad { padding: 120px 7vw; }

.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12vw;
  align-items: start;
}

.intro h2, .section-heading h2, .process h2, .about h2 {
  font-size: clamp(45px, 5.4vw, 78px);
  line-height: 1.02;
}

.intro-grid > div { padding-top: 10px; max-width: 520px; }
.intro-grid p, .about-copy > p, .services-lead {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
.intro-grid p + p { margin-top: 24px; font-family: var(--sans); font-size: 14px; color: #5e605d; }

.portfolio { padding-top: 55px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
}
.section-heading > p { color: #777a76; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 340px;
  gap: 12px;
}

figure { margin: 0; position: relative; overflow: hidden; }
figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portfolio-grid figure img, .project-gallery figure img, .about figure img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.portfolio-grid figure:hover img, .project-gallery figure:hover img { transform: scale(1.025); }
.portfolio-tall { grid-row: span 2; }
.portfolio-wide { grid-column: span 2; height: 510px; }

.project { background: var(--green); color: white; }
.project-heading {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: 60px;
}
.project h2 { font-size: clamp(48px, 6vw, 88px); line-height: .98; }
.project-heading > p { max-width: 530px; margin: 0; color: rgba(255,255,255,.72); font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-gallery figure { min-height: 440px; }
.project-exterior { grid-column: span 2; min-height: 72vh !important; }

.services .section-heading { align-items: end; }
.services-lead { max-width: 420px; margin: 0; text-transform: none !important; letter-spacing: 0 !important; }
.service-list { border-top: 1px solid #bdbab3; }
.service-list article {
  display: grid;
  grid-template-columns: 70px 1fr .8fr;
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid #bdbab3;
}
.service-list span { color: #777a76; font-size: 10px; }
.service-list h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.service-list p { margin: 0; color: #666965; font-size: 14px; line-height: 1.65; }

.process { background: #dfddd6; }
.process-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 10vw; }
.process ol { list-style: none; margin: 0; padding: 0; }
.process li { display: grid; grid-template-columns: 45px 1fr; gap: 25px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid #bab7af; }
.process li > span { font-size: 10px; color: #737570; }
.process h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.process li p { margin: 0; color: #666863; font-size: 13px; line-height: 1.6; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.about figure { min-height: 690px; }
.about-copy { max-width: 560px; }
.about-lead { margin: 34px 0 25px; }
.about-copy > p:not(.eyebrow):not(.about-lead) { color: #62645f; font-family: var(--sans); font-size: 14px; }
.about .location { margin-top: 38px; padding-top: 24px; border-top: 1px solid #c3c0b8; line-height: 1.65; }

.contact { background: #171b18; color: white; text-align: center; }
.contact h2 { font-size: clamp(58px, 7vw, 105px); line-height: .92; }
.contact-lead { max-width: 560px; margin: 35px auto; color: rgba(255,255,255,.67); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.contact-actions { display: flex; justify-content: center; align-items: center; gap: 32px; }
.whatsapp-link { border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 5px; font-size: 13px; }
.contact-details { display: flex; justify-content: center; gap: 36px; margin-top: 70px; font-size: 12px; color: rgba(255,255,255,.65); }

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  padding: 60px 5vw 35px;
  background: #101210;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}
.footer-brand { color: white; align-items: flex-start; }
footer > div { display: flex; justify-content: flex-end; gap: 25px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin: 20px 0 0; text-align: right; }

@media (max-width: 850px) {
  .site-header { padding: 23px 5vw; }
  nav a:not(.nav-contact) { display: none; }
  .nav-contact { padding: 9px 13px; }
  .hero { min-height: 86svh; }
  .hero-content { padding: 0 6vw 9vh; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,15,12,.7), rgba(10,15,12,.18)); }
  .hero-signature { display: none; }
  .section-pad { padding: 85px 6vw; }
  .intro-grid, .project-heading, .process-grid, .about { grid-template-columns: 1fr; gap: 45px; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 360px; }
  .portfolio-tall, .portfolio-wide { grid-column: auto; grid-row: auto; height: auto; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-exterior { grid-column: auto; min-height: 55vh !important; }
  .project-gallery figure { min-height: 360px; }
  .section-heading { align-items: start; flex-direction: column; gap: 30px; }
  .service-list article { grid-template-columns: 40px 1fr; }
  .service-list article p { grid-column: 2; }
  .about figure { min-height: 540px; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer > div { justify-content: flex-start; }
  .copyright { grid-column: auto; text-align: left; }
}

@media (max-width: 520px) {
  h1 { font-size: 58px; }
  .hero-copy { font-size: 17px; }
  .hero-actions, .contact-actions, .contact-details { flex-direction: column; align-items: flex-start; }
  .contact-actions, .contact-details { align-items: center; gap: 20px; }
  .portfolio-grid { grid-auto-rows: 270px; }
  .project-gallery figure { min-height: 280px; }
  .project-exterior { min-height: 380px !important; }
  .service-list article { gap: 16px; }
  .about figure { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.contact-page {
  min-height: 100vh;
  background: var(--paper);
}

.contact-page-header {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid #cfcbc2;
}

.contact-page-header .nav-contact {
  border-color: #aaa79f;
}

.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10vw;
  align-items: start;
}

.contact-intro h1 {
  color: var(--ink);
  font-size: clamp(54px, 6vw, 88px);
  line-height: .95;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 460px;
  margin-top: 28px;
  color: #60625e;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.contact-intro-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 45px;
  font-size: 13px;
}

.budget-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
  row-gap: 38px;
  padding: 52px;
  background: white;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa79f;
  border-radius: 0;
  outline: 0;
  min-height: 48px;
  padding: 14px 0;
  background: transparent;
  color: var(--ink);
  font: 15px var(--sans);
}

.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--ink); }

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #666863;
  font-size: 12px;
  line-height: 1.5;
}

.consent input { margin-top: 2px; }
.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: var(--green);
  color: white;
  cursor: pointer;
}

.form-submit:hover { background: var(--accent); }
.form-note { grid-column: 1 / -1; margin: 0; color: #747671; font-size: 11px; line-height: 1.5; }
.form-alert { grid-column: 1 / -1; padding: 15px 17px; font-size: 13px; line-height: 1.5; }
.form-alert.error { background: #f4e4df; color: #71392c; }
.form-alert.success { background: #e1ede4; color: #274d32; }
.website-field,
[hidden] { display: none !important; }

@media (max-width: 850px) {
  .contact-layout { grid-template-columns: 1fr; gap: 55px; }
  .contact-page-header nav a:not(.nav-contact) { display: none; }
}

@media (max-width: 600px) {
  .budget-form {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 34px 24px;
  }
  .form-field.full { grid-column: auto; }
  .consent, .form-submit, .form-note, .form-alert { grid-column: auto; }
}
