:root {
  --ivory: #f7f2ea;
  --linen: #ede5d8;
  --stone: #d9cfbf;
  --ink: #1b1d19;
  --ink-deep: #121411;
  --text: #2a2c27;
  --muted: #625e55;
  --brass: #7d5830;
  --brass-light: #d2ad7c;
  --line: #d6ccbb;
  --line-dark: rgba(247, 242, 234, .18);
  --on-dark: #f7f2ea;
  --on-dark-muted: #cfc8bb;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: Jost, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 5.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + .5rem); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
figure, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; font-weight: 400; }
h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); color: var(--ink); }
h3 { font-size: clamp(2rem, 3vw, 2.6rem); color: var(--ink); }

.wrap { width: min(100% - 7rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(5rem, 11vw, 10rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .26em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; flex: none; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .7rem 1.1rem;
  background: var(--ivory);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

/* Header */

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  color: var(--on-dark);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}

.js .site-header { position: fixed; }

.site-header.is-open { transition: none; background: var(--ivory) !important; backdrop-filter: none !important; }

.site-header.is-solid, .site-header.is-open {
  background: rgba(247, 242, 234, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(247, 242, 234, .86); backdrop-filter: blur(14px) saturate(1.2); }
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  transition: min-height .45s var(--ease);
}

.site-header.is-solid .header-inner { min-height: 4.6rem; }

.wordmark {
  display: inline-grid;
  width: max-content;
  gap: .3rem;
  justify-items: start;
  line-height: 1;
  text-decoration: none;
}

.wordmark-name { font: 500 1.85rem/1 var(--serif); letter-spacing: -.01em; }
.wordmark-type { font-size: .62rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; opacity: .85; }

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .55rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-phone { display: none; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: .6rem; }

.header-contact, .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.9rem;
  padding: .5rem 1.15rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 500 .76rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.header-contact:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.site-header.is-solid .header-contact:hover, .site-header.is-open .header-contact:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.mobile-phone { display: none; }

.nav-toggle-icon { position: relative; width: 1.1rem; height: 1px; background: currentColor; transition: background-color .3s; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.nav-toggle-icon::before { transform: translateY(-5px); }
.nav-toggle-icon::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(40rem, 100svh);
  overflow: hidden;
  background: #2a2620;
  color: var(--on-dark);
}

.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: 58% 46%; }
.js .hero-photo { animation: hero-settle 2.8s var(--ease) both; }

@keyframes hero-settle {
  from { transform: scale(1.08); opacity: .4; }
  to { transform: none; opacity: 1; }
}

.hero::after {
  content: "";
  background:
    linear-gradient(180deg, rgba(14, 15, 12, .62) 0%, rgba(14, 15, 12, 0) 24%),
    linear-gradient(90deg, rgba(14, 15, 12, .84) 0%, rgba(14, 15, 12, .6) 38%, rgba(14, 15, 12, .08) 78%),
    linear-gradient(0deg, rgba(14, 15, 12, .72) 0%, rgba(14, 15, 12, 0) 46%);
}

.hero-inner { align-self: end; padding-block: calc(var(--header-h) + 4rem) clamp(2.5rem, 6vh, 4.5rem); }
.hero-copy { max-width: 66rem; }
.hero .eyebrow { color: var(--brass-light); }
.hero-location { margin-bottom: 1.6rem; }

.hero h1 {
  font-size: clamp(3.3rem, 6.1vw, 6.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}

.hero h1 em { display: block; color: #f3e3c8; }
.hero-description { max-width: 34rem; margin-top: 1.8rem; color: #e9e3d8; font-size: clamp(1.02rem, 1.3vw, 1.15rem); font-weight: 300; line-height: 1.75; }
.hero-language { margin-top: 1.6rem; color: var(--on-dark-muted); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }

.js .hero-copy > * { animation: rise 1.1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
.js .hero-copy > :nth-child(4) { animation-delay: .36s; }
.js .hero-copy > :nth-child(5) { animation-delay: .48s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.scroll-cue { display: inline-flex; align-items: center; gap: .9rem; }
.scroll-cue::after { content: ""; width: 3.5rem; height: 1px; background: linear-gradient(90deg, currentColor 50%, transparent 50%) 0 0 / 200% 100%; animation: cue 2.4s ease-in-out infinite; }

@keyframes cue {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Buttons and links */

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: .9rem 1.9rem;
  border: 1px solid transparent;
  font: 500 .78rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.button-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.button-light:hover { background: #f3e3c8; border-color: #f3e3c8; }
.button-ghost { border-color: rgba(247, 242, 234, .55); color: var(--on-dark); }
.button-ghost:hover { border-color: var(--on-dark); background: rgba(247, 242, 234, .1); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 2rem;
  padding-block: .4rem;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link::after { content: "→"; font-size: 1rem; letter-spacing: 0; transition: transform .35s var(--ease); }
.text-link:hover::after { transform: translateX(.3rem); }

/* Credentials */

.credentials { background: var(--ivory); border-bottom: 1px solid var(--line); }
.credential-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.credential-list li { display: grid; align-content: start; gap: .45rem; padding: 2.4rem 1.6rem 2.5rem; }
.credential-list li:first-child { padding-left: 0; }
.credential-list li + li { border-left: 1px solid var(--line); }
.credential-value { font: 500 clamp(1.55rem, 2.2vw, 2rem)/1.1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.credential-label { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 25rem) minmax(0, 40rem);
  justify-content: space-between;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.portrait-arch {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .55), transparent 58%),
    linear-gradient(180deg, var(--linen), var(--stone));
  border: 1px solid var(--line);
  padding: 2rem;
}

.portrait {
  width: min(14rem, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  outline: 1px solid var(--brass);
  outline-offset: 8px;
  box-shadow: 0 1.5rem 3rem rgba(42, 34, 22, .18);
}

.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.broker-figure figcaption { display: grid; justify-items: center; gap: .3rem; margin-top: 1.5rem; text-align: center; }
.broker-name { font: 500 1.6rem/1.1 var(--serif); color: var(--ink); }
.broker-title { color: var(--brass); font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }

.about-copy .eyebrow, .place-copy .eyebrow, .section-head .eyebrow, .contact-copy .eyebrow { margin-bottom: 1.6rem; }
.about-copy h2 + p, .place-copy h2 + p, .section-head h2 + p { margin-top: 1.8rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p, .place-copy p, .section-head p, .service p { color: var(--muted); }
.about-copy .lede { color: var(--text); font: 400 clamp(1.3rem, 1.7vw, 1.5rem)/1.5 var(--serif); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.facts div { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--brass); font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.facts dd { margin-top: .3rem; color: var(--text); font-size: .95rem; line-height: 1.5; }

/* Services */

.services { background: var(--linen); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 clamp(2rem, 6vw, 6rem); align-items: end; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 + p { margin-top: 0; max-width: 30rem; }

.services-figure { margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.services-figure img { width: 100%; height: clamp(16rem, 34vw, 28rem); object-fit: cover; object-position: 50% 62%; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service { padding: clamp(2.5rem, 4vw, 3.75rem) clamp(2rem, 5vw, 4.5rem) 0 0; }
.service + .service { border-left: 1px solid var(--stone); padding-left: clamp(2rem, 5vw, 4.5rem); padding-right: 0; }
.service-number { margin-bottom: 1.1rem; font: italic 400 2.4rem/1 var(--serif); color: var(--brass); }
.service h3 + p { margin-top: 1.1rem; max-width: 32rem; }

.steps { margin-top: 1.8rem; counter-reset: step; border-top: 1px solid var(--stone); }
.steps li { display: flex; gap: 1.2rem; align-items: baseline; padding-block: .95rem; border-bottom: 1px solid var(--stone); color: var(--text); counter-increment: step; }
.steps li::before { content: "0" counter(step); flex: none; color: var(--brass); font-size: .72rem; font-weight: 500; letter-spacing: .14em; }

/* Albuquerque */

.place-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.place-collage { position: relative; padding-bottom: 5.5rem; }
.place-main img { width: 88%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 55% 50%; }

.place-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  padding: .7rem;
  background: var(--ivory);
  border-radius: 999px 999px 0 0;
}

.place-inset img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 30% 50%; border-radius: 999px 999px 0 0; }

.landmarks { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.landmarks li { display: grid; gap: .2rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.5; }
.landmark-name { font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }

/* Contact */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 13vw, 11rem);
  background: var(--ink-deep);
  color: var(--on-dark);
}

.contact-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 15, 12, .9) 0%, rgba(14, 15, 12, .72) 55%, rgba(14, 15, 12, .5) 100%); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: clamp(3rem, 8vw, 8rem); }
.contact .eyebrow { color: var(--brass-light); }
.contact h2 { color: var(--on-dark); }
.contact h2 em { color: #f3e3c8; }
.contact-copy h2 + p { margin-top: 1.6rem; max-width: 32rem; color: var(--on-dark-muted); }

.contact-phone {
  display: block;
  width: max-content;
  margin-top: 2.2rem;
  font: 400 clamp(2.4rem, 4.6vw, 4rem)/1 var(--serif);
  letter-spacing: .01em;
  font-variant-numeric: lining-nums;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 242, 234, .3);
  padding-bottom: .5rem;
  transition: border-color .35s var(--ease);
}

.contact-phone:hover { border-color: var(--on-dark); }
.contact .button { margin-top: 2.2rem; }

.contact address { display: grid; justify-items: start; gap: .6rem; font-style: normal; border-left: 1px solid var(--line-dark); padding-left: 2.5rem; color: var(--on-dark-muted); }
.contact address .eyebrow { margin-bottom: .6rem; }
.contact address strong { color: var(--on-dark); font: 500 1.5rem/1.2 var(--serif); }
.contact address .text-link { margin-top: .8rem; color: var(--on-dark); }

/* Footer */

.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); font-size: .85rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 3rem 2.4rem; border-top: 1px solid var(--line-dark); }
.footer-name { color: var(--on-dark); font: 500 1.7rem/1.2 var(--serif); margin-bottom: .4rem; }
.site-footer a { text-underline-offset: .2em; text-decoration-color: rgba(247, 242, 234, .35); }
.site-footer a:hover { text-decoration-color: currentColor; }
.eho { display: flex; gap: .7rem; align-items: center; color: var(--on-dark); white-space: nowrap; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { display: grid; gap: .6rem; padding-block: 1.6rem 2.4rem; border-top: 1px solid var(--line-dark); font-size: .76rem; line-height: 1.7; }
.photo-credits { color: #a59f93; }

/* Scroll reveal: only hidden when JavaScript is running and motion is allowed */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .credential-list .reveal:nth-child(2), .js .service-grid .reveal:nth-child(2) { transition-delay: .1s; }
  .js .credential-list .reveal:nth-child(3) { transition-delay: .2s; }
  .js .credential-list .reveal:nth-child(4) { transition-delay: .3s; }
}

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

/* Tablet */

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 4rem); }
  .header-inner { gap: 1.25rem; }
  .site-nav { gap: 1.25rem; }
  .credential-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .credential-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Phone and small tablet */

@media (max-width: 900px) {
  :root { --header-h: 4.5rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .site-header.is-solid .header-inner { min-height: var(--header-h); }

  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--header-h) auto; gap: 0 .75rem; }
  .site-header.is-open { max-height: 100svh; overflow-y: auto; }
  .wordmark-name { font-size: 1.5rem; }
  .wordmark-type { font-size: .56rem; letter-spacing: .32em; }
  .header-contact, .nav-toggle { min-height: 2.75rem; padding-inline: .85rem; letter-spacing: .14em; }
  .desktop-phone { display: none; }
  .mobile-phone { display: inline; }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    gap: 0;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    min-height: 3.6rem;
    border-bottom: 1px solid var(--line);
    font: 500 1.75rem/1 var(--serif);
    letter-spacing: 0;
    text-transform: none;
  }

  .site-nav a::after { display: none; }
  .site-nav .nav-phone { display: flex; border-bottom: 0; margin-top: .6rem; color: var(--brass); font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

  .hero { min-height: max(36rem, 100svh); }
  .hero-photo { object-position: 50% 45%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(14, 15, 12, .66) 0%, rgba(14, 15, 12, 0) 26%),
      linear-gradient(0deg, rgba(14, 15, 12, .9) 0%, rgba(14, 15, 12, .55) 55%, rgba(14, 15, 12, .2) 100%);
  }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 5.5rem); }
  .hero-inner { padding-bottom: 2.5rem; }
  .actions { margin-top: 2rem; }
  .actions .button { flex: 1 1 14rem; }
  .hero-caption { display: none; }

  .about-grid, .place-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .broker-figure { width: min(100%, 21rem); justify-self: center; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 + p { margin-top: 1.4rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { padding: 2.75rem 0 0; border-left: 0; }
  .service + .service { margin-top: 3rem; border-top: 1px solid var(--stone); }
  .place-collage { max-width: 34rem; }
  .contact address { border-left: 0; border-top: 1px solid var(--line-dark); padding: 2rem 0 0; }
  .contact-grid { align-items: start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .credential-list { grid-template-columns: minmax(0, 1fr); }
  .credential-list li, .credential-list li + li { padding: 1.5rem 0; border-left: 0; }
  .credential-list li + li { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .contact-phone { font-size: 2.6rem; }
  .eyebrow::before { width: 1.5rem; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 2rem); }
  .wordmark-name { font-size: 1.3rem; }
  .header-contact, .nav-toggle { padding-inline: .6rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero h1 { font-size: 2.75rem; }
}
