:root {
  --ink: #303536;
  --muted: #6e7474;
  --paper: #f5f3ef;
  --paper-deep: #ebe8e2;
  --stone: #7b8582;
  --stone-dark: #5e6765;
  --line: rgba(48, 53, 54, 0.2);
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --transition: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.section {
  padding: 112px 0;
}

.section-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.section-shell--wide {
  width: min(1420px, calc(100% - 48px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--stone);
  font-size: 11px;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.outline-button {
  align-items: center;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  min-width: 198px;
  padding: 0 28px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.outline-button:hover,
.outline-button:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.outline-button--light {
  color: var(--white);
}

.outline-button--light:hover,
.outline-button--light:focus-visible {
  background: var(--white);
  color: var(--ink);
}

/* The header fades from transparent to opaque over the first 180px of scroll. */
.site-header {
  --header-opacity: 0;

  background: rgb(94 103 101 / var(--header-opacity));
  color: var(--white);
  left: 0;
  padding: 38px 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  transition: padding var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
  box-shadow: 0 8px 32px rgba(15, 22, 21, 0.12);
  padding: 18px 0;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 34px;
  width: min(1540px, 100%);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  text-transform: uppercase;
}

.brand__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.25vw, 36px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.brand__descriptor {
  align-self: center;
  font-size: 8px;
  letter-spacing: 0.52em;
  margin-top: 10px;
  padding-left: 0.52em;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(24px, 3vw, 54px);
  margin-left: auto;
  margin-right: clamp(30px, 4vw, 72px);
}

.desktop-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  position: relative;
  text-transform: uppercase;
}

.desktop-nav a::after {
  background: currentColor;
  bottom: -10px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: width var(--transition);
  width: 0;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  width: 100%;
}

.site-header__actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.header-icon {
  display: inline-flex;
}

.header-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 18px;
}

.header-icon .header-icon__dot {
  fill: currentColor;
  stroke: none;
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0 6px 8px;
}

.menu-button span {
  background: currentColor;
  display: block;
  height: 1px;
  width: 22px;
}

.mobile-menu {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 80px 32px 48px;
  pointer-events: none;
  position: fixed;
  transform: translateX(30px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  visibility: hidden;
  z-index: 60;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.22em;
  position: absolute;
  right: 28px;
  text-transform: uppercase;
  top: 28px;
}

.mobile-menu__close span {
  font-size: 20px;
  margin-left: 8px;
  vertical-align: -2px;
}

.mobile-menu__brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 54px;
  text-align: center;
  text-transform: uppercase;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(28px, 9vw, 42px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 54px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero {
  align-items: flex-end;
  background-image: url("/images/hero-estate.webp");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: 180px 32px 104px;
  position: relative;
}

.hero__shade {
  background: linear-gradient(180deg, rgba(5, 12, 14, 0.42) 0%, rgba(5, 12, 14, 0.04) 46%, rgba(5, 12, 14, 0.56) 100%);
  inset: 0;
  position: absolute;
}

.hero__content {
  margin: 0 auto;
  max-width: 740px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero__content > p {
  font-size: 10px;
  letter-spacing: 0.35em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.7vw, 82px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 34px;
}

.hero__scroll {
  align-items: center;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 40px;
  z-index: 2;
}

.hero__scroll span {
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll i {
  background: currentColor;
  height: 34px;
  opacity: 0.7;
  width: 1px;
}

.about {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.about__grid {
  align-items: center;
  display: grid;
  gap: clamp(60px, 10vw, 150px);
  grid-template-columns: 1fr 0.82fr;
}

.about__copy {
  padding-left: 4vw;
}

.about h1,
.section-heading h2,
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.about h1 {
  margin-bottom: 38px;
  max-width: 620px;
}

.about__copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 20px;
  max-width: 610px;
}

.text-link {
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-family: var(--serif);
  font-size: 13px;
  gap: 35px;
  letter-spacing: 0.08em;
  margin-top: 20px;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.portrait-image {
  aspect-ratio: 4 / 5;
  background: transparent;
  overflow: hidden;
}

.portrait-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.section-anchor {
  display: block;
  scroll-margin-top: 88px;
}

.credentials {
  background: var(--paper);
  padding: 62px 0;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.credentials__grid > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.credentials__grid > div + div {
  border-left: 1px solid var(--line);
}

.credentials strong {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
}

.credentials span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.results {
  background: var(--stone);
  color: var(--white);
}

.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 58px;
}

.section-heading > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 6px;
  max-width: 310px;
}

.section-heading--light > p,
.section-heading--light .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.sales-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.sale-card__image {
  align-items: center;
  aspect-ratio: 0.7;
  background: #69736f;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.sale-card--1 .sale-card__image {
  background: linear-gradient(155deg, #596560, #a5aaa4 60%, #5d6561);
}

.sale-card--2 .sale-card__image {
  background: linear-gradient(35deg, #383f3e, #8f9993 48%, #d0c8ba);
}

.sale-card--3 .sale-card__image {
  background: linear-gradient(145deg, #9a8f80, #56605f 55%, #77837e);
}

.sale-card--4 .sale-card__image {
  background: linear-gradient(25deg, #d0c7b8, #7f8883 44%, #4f5856);
}

.sale-card__image > span,
.listing-card__image > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.sale-card__overlay {
  align-items: center;
  background: rgba(47, 54, 53, 0.9);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 30px;
  position: absolute;
  text-align: center;
  transition: opacity var(--transition);
}

.sale-card:hover .sale-card__overlay,
.sale-card:focus-within .sale-card__overlay {
  opacity: 1;
}

.sale-card__overlay strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
}

.sale-card__overlay p {
  font-family: var(--serif);
  font-size: 18px;
  margin: 18px 0 8px;
}

.sale-card__overlay small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results__button {
  display: flex;
  margin: 52px auto 0;
  width: fit-content;
}

.listings {
  background: var(--paper);
}

.listing-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);
}

.listing-card__image {
  align-items: center;
  aspect-ratio: 1.28;
  background: #8d9691;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.listing-card__image--1 {
  background: linear-gradient(130deg, #55615d, #bdc0b7);
}

.listing-card__image--2 {
  background: linear-gradient(25deg, #c2b9aa, #737d79 58%, #414b49);
}

.listing-card__image--3 {
  background: linear-gradient(155deg, #39413f, #808b86 48%, #c9c3b7);
}

.listing-card__image a {
  align-items: center;
  background: rgba(47, 53, 54, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  height: 48px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  text-transform: uppercase;
  transition: opacity var(--transition);
  width: 180px;
}

.listing-card__image:hover a,
.listing-card__image:focus-within a {
  opacity: 1;
}

.listing-card__details {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 16px 0;
}

.listing-card h3,
.listing-card__details > strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  margin: 0;
}

.listing-card h3 {
  margin-bottom: 8px;
}

.listing-card p {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.listing-card__details > strong {
  white-space: nowrap;
}

.contact {
  background: var(--stone-dark);
  color: var(--white);
}

.contact__grid {
  display: grid;
  gap: clamp(60px, 9vw, 130px);
  grid-template-columns: 0.9fr 1fr;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.contact h2 {
  margin-bottom: 30px;
}

.contact__grid > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 470px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.contact-form,
.contact-form label {
  display: flex;
  flex-direction: column;
}

.contact-form {
  gap: 28px;
}

.contact-form__row {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.contact-form label > span {
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  color: var(--white);
  outline: 0;
  padding: 8px 0 13px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--white);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-form__status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0;
  min-height: 1.4em;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 78px 0 30px;
}

.footer__top {
  align-items: flex-start;
  display: grid;
  gap: 70px;
  grid-template-columns: 1.1fr 1fr auto;
  padding-bottom: 70px;
}

.footer__brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.footer__logo {
  display: block;
  height: auto;
  max-width: 300px;
  width: 100%;
}

.footer__top p {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.footer nav {
  display: grid;
  gap: 14px 36px;
  grid-template-columns: 1fr 1fr;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding-top: 26px;
}

@media (max-width: 1050px) {
  .desktop-nav {
    gap: 22px;
    margin-right: 30px;
  }

  .about__grid {
    gap: 60px;
  }

  .about__copy {
    padding-left: 0;
  }

  .listing-card__details {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 82px 0;
  }

  .section-shell,
  .section-shell--wide {
    width: min(100% - 40px, 680px);
  }

  .site-header {
    padding: 26px 0;
  }

  .site-header--scrolled {
    padding: 15px 0;
  }

  .site-header__inner {
    padding: 0 22px;
  }

  .desktop-nav {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .menu-button {
    display: flex;
  }

  .hero {
    background-position: 52% center;
    padding: 150px 24px 90px;
  }

  .hero__scroll {
    display: none;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__copy {
    order: 2;
  }

  .portrait-image {
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .sales-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-card + .listing-card {
    margin-top: 28px;
  }

  .listing-card__details {
    flex-direction: row;
  }

  .footer__top {
    gap: 45px;
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .section-shell,
  .section-shell--wide {
    width: calc(100% - 32px);
  }

  .header-icon {
    display: none;
  }

  .brand__descriptor {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .credentials__grid {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .credentials__grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .sales-grid {
    display: flex;
    margin-left: 16px;
    overflow-x: auto;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
  }

  .sale-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .listing-card__details {
    flex-direction: column;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
