:root {

  --color-bg: #e5dfd9;
  --color-bg-alt: #d9d2ca;
  --color-text: #151413;
  --color-text-muted: #5e5852;
  --color-accent: #8c8279;
  --color-line: #c4bcb3;
  --color-light: #f4f1ed;

  --font-heading: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.button {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font: 400 13px/1 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.button:hover, .button:focus-visible { background: var(--color-text); color: var(--color-bg); }
.button--light { border-color: #cbc4b7; color: #cbc4b7; }
.button--light:hover, .button--light:focus-visible { background: #cbc4b7; color: var(--color-text); }

.section-title {
  font: 300 clamp(34px, 5vw, 54px)/1.1 var(--font-heading);
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 0 40px;
}

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 var(--gutter);
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s;
}
.header.is-solid {
  background: var(--color-light);
  color: var(--color-text);
  box-shadow: 0 1px 0 var(--color-line);
}
.header-brand {
  font: 600 15px/1 var(--font-heading);
  letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none;
  opacity: 0; transition: opacity .35s;
}
.header.is-solid .header-brand { opacity: 1; }
.header-brand, .menu-toggle { position: relative; z-index: 2; }

.menu-toggle {
  display: grid; gap: 7px; width: 48px; height: 48px; place-content: center;
  margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 28px; height: 1.5px; background: currentColor;
  transition: transform .35s ease, opacity .35s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  background: var(--color-bg); color: var(--color-text);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.menu a {
  font: 300 clamp(36px, 6vw, 64px)/1.15 var(--font-heading);
  letter-spacing: -.01em; text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, color .25s;
}
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1) { transition-delay: .08s; }
.menu.is-open a:nth-child(2) { transition-delay: .14s; }
.menu.is-open a:nth-child(3) { transition-delay: .20s; }
.menu.is-open a:nth-child(4) { transition-delay: .26s; }
.menu a:hover, .menu a:focus-visible { color: var(--color-accent); }
.menu-contact { margin-top: 18px; }
.header.menu-is-open { color: var(--color-text); background: transparent; box-shadow: none; }
.header.menu-is-open .header-brand { opacity: 1; }

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: grid; place-items: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  animation: zoom-out 18s ease-out both;
}
@keyframes zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.45) 100%);
}
.hero-content { position: relative; padding: 0 var(--gutter); animation: fade-up 1.4s .3s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-brand .name {
  font: 500 clamp(48px, 9vw, 112px)/1 var(--font-heading);
  letter-spacing: -.02em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-brand .subtitle {
  font-size: 13px; letter-spacing: .6em; text-transform: uppercase;
  margin: 14px 0 38px; padding-left: .6em;
}
.hero-brand img {
  width: min(450px, 70vw); margin: 0 auto 38px;
}
.hero-tagline {
  font: 300 clamp(18px, 2.4vw, 24px)/1.4 var(--font-heading);
  margin: -12px 0 38px;
}
.hero-tagline:empty { display: none; }
.hero-arrow {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  text-decoration: none; font-size: 22px; opacity: .8;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

.quote { padding: clamp(80px, 12vw, 140px) var(--gutter); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 760px; }
.quote p {
  font: 300 clamp(28px, 4.4vw, 48px)/1.25 var(--font-heading);
  letter-spacing: -.01em;
  margin: 0;
}
.quote p::before, .quote p::after { color: var(--color-accent); }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote cite {
  display: block; margin-top: 18px;
  font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.quote cite:empty { display: none; }

.portfolio { padding: 0 var(--gutter) clamp(80px, 10vw, 120px); max-width: var(--max-width); margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: -16px 0 40px; }
.filters:empty { display: none; }
.filter {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 400 12px/1.4 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
}
.filter:hover { color: var(--color-text); }
.filter.is-active { color: var(--color-text); border-color: var(--color-text); }

.gallery { columns: 3 300px; column-gap: 14px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 14px;
  padding: 0; border: 0; background: var(--color-bg-alt);
  width: 100%; cursor: zoom-in; overflow: hidden; display: block;
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.gallery-item.is-visible { opacity: 1; transform: none; }
.gallery-item img { width: 100%; height: auto; transition: transform .8s ease, filter .5s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-item[hidden] { display: none; }

.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  background: var(--color-bg-alt);
}
.about-image { max-width: 520px; justify-self: end; width: 100%; }
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text { max-width: 520px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-paragraphs p { margin: 0 0 18px; color: var(--color-text-muted); }
.about-signature {
  font: 600 15px/1 var(--font-heading); letter-spacing: .32em; text-transform: uppercase;
  margin: 26px 0 34px;
}

.contact { padding: clamp(80px, 10vw, 130px) var(--gutter); max-width: 820px; margin: 0 auto; }
.contact-intro { text-align: center; color: var(--color-text-muted); margin: -20px 0 36px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 56px; }
.contact-links .button { display: inline-flex; align-items: center; gap: 10px; }
.contact-links svg { width: 16px; height: 16px; fill: currentColor; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.field em { text-transform: none; letter-spacing: 0; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  font: 300 17px/1.5 var(--font-body); color: var(--color-text);
  background: transparent; border: 0; border-bottom: 1px solid var(--color-line);
  border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f665d'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding-right: 40px;
}

.field select { color-scheme: light; }
.field select option { background-color: var(--color-bg); color: var(--color-text); }

@supports (appearance: base-select) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select::picker-icon { display: none; }
  .field select::picker(select) {
    margin-top: 6px; padding: 6px;
    background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(21, 20, 19, .12);
  }
  .field select option { padding: 10px 14px; border-radius: 8px; font: 300 16px/1.4 var(--font-body); }
  .field select option::checkmark { display: none; }
  .field select option:hover, .field select option:focus-visible { background: var(--color-bg-alt); outline: none; }
  .field select option:checked { font-weight: 400; }
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-text); }
.field .has-error { border-color: #b4553f; }

.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill, .field select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg) inset;
  box-shadow: 0 0 0 1000px var(--color-bg) inset;
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  transition: background-color 9999s ease-out 0s, border-color .3s;
}
.field input:autofill, .field textarea:autofill, .field select:autofill {
  box-shadow: 0 0 0 1000px var(--color-bg) inset;
  -webkit-text-fill-color: var(--color-text);
}
.honeypot { position: absolute; left: -9999px; }
.form .button { justify-self: center; margin-top: 10px; }
.form-status { text-align: center; margin: 0; min-height: 1.7em; color: var(--color-text-muted); }
.form-status.is-success { color: #4f6b4a; }
.form-status.is-error { color: #b4553f; }

.footer {
  text-align: center; padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--color-line);
  font-size: 14px; color: var(--color-text-muted);
}
.footer p { margin: 4px 0; }
.footer-small { font-size: 12px; }
.footer-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 20px; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--color-line); border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s;
}
.footer-social a:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.back-to-top {
  display: inline-block; margin-top: 22px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
}

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: scale(0); transition: transform .35s ease;
}
.whatsapp-float.is-visible { transform: scale(1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
.whatsapp-float:not([href]) { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 16, .96);
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; animation: fade-up .4s ease; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  cursor: pointer; opacity: .75; transition: opacity .2s;
  font: 200 48px/1 var(--font-heading); padding: 12px 18px;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 10px; right: 14px; }
.lightbox-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0;
  color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .24em;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }

  .about { grid-template-columns: 1fr; }
  .about-image { justify-self: center; }
  .about-text { justify-self: center; text-align: center; }
  .about-text .section-title { text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .gallery-item { opacity: 1; transform: none; }
}
