:root {
  color-scheme: light;
  --paper: #f7f2ea;
  --white: #fffbf6;
  --ink: #2d241f;
  --muted: #5b4b43;
  --deep: #31241e;
  --deepest: #251a16;
  --accent: #694d3c;
  --stone: #eee4d8;
  --putty: #d5c5b4;
  --brass: #9c784c;
  --navy: #18344f;
  --navy-hover: #2c4d6a;
  --blue-mist: #e0e8ee;
  --line: #ded0c2;
  --light-brass: #f0d8b3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --shell: min(1232px, calc(100% - clamp(36px, 8vw, 120px)));
  --shadow: 0 18px 45px rgb(49 36 30 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.027em; }
h2 { font-size: clamp(2.85rem, 6vw, 5.75rem); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
[id] { scroll-margin-top: 101px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 16px; background: var(--white); }
.skip:focus { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--brass);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: 400 clamp(1.13rem, 2.1vw, 1.55rem)/1 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--deep);
}
.brand-mark { flex: none; width: 42px; height: 42px; object-fit: contain; filter: brightness(0) saturate(100%) invert(13%) sepia(17%) saturate(989%) hue-rotate(331deg) brightness(96%) contrast(92%); }
.header .wordmark { color: inherit; }
.header .brand-mark { filter: brightness(0) invert(1); }
.header :focus-visible { outline-color: var(--light-brass); }
nav { display: flex; align-items: center; gap: clamp(13px, 2.05vw, 31px); font-size: 1rem; font-weight: 700; }
nav > a:not(.button):hover, nav > a[aria-current="page"], nav summary:hover, nav details[open] summary {
  color: var(--light-brass);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-dropdown { position: relative; }
.nav-dropdown > summary { cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown summary span { margin-left: 5px; color: var(--light-brass); }
.nav-dropdown > div {
  position: absolute;
  top: calc(100% + 14px);
  left: -13px;
  min-width: 215px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.nav-dropdown > div a { display: block; padding: 10px 12px; border-radius: 7px; }
.nav-dropdown > div a:hover, .nav-dropdown > div a:focus-visible, .nav-dropdown a[aria-current="page"] { background: var(--blue-mist); }
.header .nav-dropdown > div a:focus-visible { outline-color: var(--navy); outline-offset: -2px; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 23px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  background: var(--deep);
  color: #fffbf6;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button.small { min-height: 42px; padding: 7px 17px; gap: 8px; }
.header .button { background: var(--light-brass); border-color: var(--light-brass); color: var(--navy); }
.header .button:hover { background: var(--white); border-color: var(--white); }
.button.light { color: var(--deepest); background: var(--white); border-color: var(--white); }
.button.light:hover { background: var(--stone); border-color: var(--stone); }
.text-link {
  display: inline-block;
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--ink); }
.text-link span { margin-left: 3px; }
.button span, .text-link span, .link-arrow {
  font-family: "DejaVu Sans", "Segoe UI Symbol", sans-serif;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  width: min(1536px, calc(100% - clamp(24px, 5vw, 76px)));
  min-height: clamp(495px, 46vw, 695px);
  margin: 18px auto 0;
  border-radius: clamp(14px, 2vw, 28px);
  background: var(--deepest);
  color: #fffbf6;
}
.hero-backdrop, .hero-image, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-backdrop { z-index: -2; overflow: hidden; }
.hero-image { object-fit: cover; object-position: center 42%; }
.hero-image.hero-image-estate { object-position: center 55%; }
.hero-image-second, .hero-image-third, .hero-image-fourth, .hero-image-fifth { opacity: 0; }
.hero-image.hero-image-third { object-position: 55% 64%; }
.hero-image.hero-image-fifth { object-position: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-backdrop .hero-image { animation: backdrop-drift 35s ease-in-out infinite alternate; }
  .hero-backdrop .hero-image-second { animation: backdrop-drift 35s ease-in-out infinite alternate, backdrop-second 35s linear infinite; }
  .hero-backdrop .hero-image-third { animation: backdrop-drift 35s ease-in-out infinite alternate, backdrop-third 35s linear infinite; }
  .hero-backdrop .hero-image-fourth { animation: backdrop-drift 35s ease-in-out infinite alternate, backdrop-fourth 35s linear infinite; }
  .hero-backdrop .hero-image-fifth { animation: backdrop-drift 35s ease-in-out infinite alternate, backdrop-fifth 35s linear infinite; }
}
@keyframes backdrop-drift {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
@keyframes backdrop-second {
  0%, 16%, 42%, 100% { opacity: 0; }
  20%, 40% { opacity: 1; }
}
@keyframes backdrop-third {
  0%, 36%, 62%, 100% { opacity: 0; }
  40%, 60% { opacity: 1; }
}
@keyframes backdrop-fourth {
  0%, 56%, 82%, 100% { opacity: 0; }
  60%, 80% { opacity: 1; }
}
@keyframes backdrop-fifth {
  0%, 76%, 100% { opacity: 0; }
  80%, 96% { opacity: 1; }
}
.hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(29 20 16 / 72%), rgb(29 20 16 / 46%) 33%, rgb(29 20 16 / 10%) 68%, transparent),
    linear-gradient(0deg, rgb(29 20 16 / 72%), rgb(29 20 16 / 15%) 48%, transparent 76%);
}
.hero-copy { width: min(1232px, calc(100% - clamp(48px, 10vw, 150px))); padding-block: 80px clamp(40px, 6vw, 82px); }
.hero-byline { font-size: .95rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #fff4df; }
.hero-byline span { margin-inline: 4px; }
.hero h1 {
  margin-block: 15px 16px;
  font-size: clamp(4.15rem, 7.7vw, 8rem);
  line-height: .87;
  text-shadow: 0 2px 22px rgb(29 20 16 / 35%);
}
.hero h1 em { color: var(--light-brass); }
.intro { max-width: 45ch; font-size: clamp(1.1875rem, 1.55vw, 1.3125rem); }
.hero-action { margin-top: 25px; }

.meet-langdon {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(215px, 315px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 65px);
  padding-block: clamp(38px, 6.5vw, 92px);
}
.meet-langdon img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 18px;
  background: var(--stone);
}
.meet-langdon h2 { font-size: clamp(3.15rem, 6vw, 5.25rem); }
.meet-langdon p { max-width: 58ch; margin-block: 16px 20px; color: var(--muted); font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); }

.guide-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1536px, calc(100% - clamp(24px, 5vw, 76px)));
  margin: 18px auto 0;
  padding-block: clamp(39px, 6vw, 74px);
  border-radius: clamp(14px, 2vw, 26px);
  background: linear-gradient(108deg, var(--navy), var(--navy-hover));
  color: var(--white);
}
.guide-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("langdon-unlocked-mark.png") no-repeat calc(100% - 7vw) center / clamp(230px, 31vw, 460px);
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .075;
  pointer-events: none;
}
.guide-header .shell { width: min(1232px, calc(100% - clamp(48px, 10vw, 150px))); }
.guide-header h1 { max-width: 17ch; margin-block: 12px 14px; font-size: clamp(3.25rem, 6.1vw, 6rem); }
.guide-header p { max-width: 57ch; font-size: clamp(1.1875rem, 1.55vw, 1.3125rem); color: #eee1d4; }
.guide-header p .text-link { color: inherit; font-size: inherit; overflow-wrap: anywhere; }
.guide-header .guide-home { color: var(--light-brass); }
.guide-home span { margin-inline: 0 4px; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr);
  align-items: start;
  gap: clamp(23px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 67px) clamp(55px, 8vw, 105px);
}
.guide-layout > article { min-width: 0; }
.guide-step { padding-block: 24px; border-top: 1px solid var(--line); }
.guide-step:first-child { padding-top: 0; border-top: 0; }
.guide-step h2, .guide-next h2 { margin-bottom: 9px; color: var(--deep); font-size: clamp(2rem, 3.3vw, 3rem); }
.guide-step p { max-width: 65ch; color: var(--muted); }
.listing-help {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blue-mist);
}
.guide-step.listing-help { margin-bottom: 24px; }
.home-listing-help {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 48px);
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blue-mist);
}
.home-listing-help h2 { font-size: clamp(2.55rem, 5vw, 4.5rem); color: var(--deep); }
.home-listing-help p { margin-top: 10px; color: var(--muted); }
.home-listing-help h2 + p, .guide-step h2 + p { font-size: 1.1875rem; }
.listing-next-steps { min-width: 0; }
.listing-next-steps h3 { font: 700 1.125rem/1.4 var(--sans); letter-spacing: 0; }
.listing-next-steps p { margin-top: 4px; }
.listing-next-steps h3 + p + h3 { margin-top: 14px; }
.listing-next-steps .text-link { display: inline-block; margin-top: 12px; }
.listing-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 12px;
  font-size: 1.0625rem;
}
.listing-contact strong, .listing-contact .phone-number, .listing-contact .text-link { font-weight: 700; color: var(--navy); }
.listing-contact strong, .listing-contact .text-link { overflow-wrap: anywhere; }
.buyer-guide .guide-step > .text-link { margin-top: 12px; }
.buyer-milestones { display: grid; gap: 21px; padding-left: 1.4em; margin: 18px 0 0; }
.buyer-milestones > li::marker { color: var(--deep); font-weight: 700; }
.buyer-milestones h3 { margin: 0 0 5px; font: 700 1.13rem/1.35 var(--sans); letter-spacing: 0; }
.buyer-costs { margin: 8px 0; padding-left: 1.3em; color: var(--muted); }
.buyer-costs li + li { margin-top: 4px; }
.guide-next {
  display: grid;
  gap: 13px;
  justify-items: start;
  padding: clamp(21px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.guide-next h2 { margin-bottom: 1px; }
.guide-related { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.neighborhood-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 500px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.neighborhood-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
}
.neighborhood-links a:hover { background: var(--blue-mist); color: var(--navy); }
.bio-layout {
  grid-template-columns: minmax(225px, 1fr) minmax(0, 2.3fr);
  grid-template-areas: "portrait bio" "contact contact";
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}
.bio-layout .bio-copy { grid-area: bio; }
.bio-layout .guide-next { grid-area: contact; }
.bio-portrait {
  grid-area: portrait;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 18px;
  background: var(--stone);
}
.bio-copy { padding-top: 3px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.82; }
.bio-copy p + p { margin-top: 1.2em; }
.bio-social-links { display: flex; gap: 10px; }
.bio-social-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); }
.bio-social-icon:hover { background: var(--blue-mist); }

.footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(32px, 5vw, 64px);
  background: var(--navy);
  color: var(--white);
  font-size: 1.0625rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.footer .wordmark { color: inherit; }
.footer .brand-mark { filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 12px; }
.footer h2 { margin-bottom: 12px; color: var(--light-brass); font-size: 1.6rem; }
.footer-links, .footer-social { margin: 0; padding: 0; list-style: none; }
.footer-links { display: grid; gap: 6px; }
.footer address { display: grid; gap: 6px; font-style: normal; overflow-wrap: anywhere; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; }
.footer-social a:hover { background: var(--navy-hover); }
.footer .photo-credit { margin-top: 12px; color: var(--blue-mist); font-size: .81rem; }
.footer a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: 4px; }
.phone-action { text-decoration: none; }
.phone-action .phone-number {
  margin: 0;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .header-inner { min-height: 68px; }
  .menu-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 42px;
    padding: 5px 13px;
    border: 1px solid var(--light-brass);
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - 69px);
    overflow: auto;
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--brass);
    background: var(--navy);
  }
  .menu-toggle[aria-expanded="true"] + nav { display: grid; gap: 7px; font-size: 1.125rem; }
  nav > a:not(.button), nav summary { display: block; padding-block: 10px; }
  nav .button { justify-self: start; }
  .nav-dropdown > div { position: static; margin-left: 9px; box-shadow: none; }
}
@media (max-width: 680px) {
  .header-inner { gap: 9px; }
  .brand-mark { width: 35px; height: 35px; }
  .hero, .guide-header { margin-top: 11px; }
  .hero { min-height: clamp(470px, 118vw, 590px); }
  .hero-copy { padding-block: 102px 67px; }
  .hero h1 { font-size: clamp(3.15rem, 11.4vw, 5.2rem); }
  .hero-image { object-position: 45% center; }
  .hero::before {
    background: linear-gradient(0deg, rgb(29 20 16 / 94%) 2%, rgb(29 20 16 / 69%) 48%, rgb(29 20 16 / 12%) 100%);
  }
  .guide-layout { grid-template-columns: 1fr; }
  .meet-langdon { grid-template-columns: 1fr; gap: 23px; }
  .meet-langdon img { max-width: 260px; }
  .home-listing-help { grid-template-columns: 1fr; }
  .guide-header::after { background-position: 115% center; }
  .bio-layout { grid-template-areas: "portrait" "bio" "contact"; }
  .bio-portrait { width: min(100%, 330px); }
}
@media (max-width: 520px) {
  .footer-brand, .footer-inner > :last-child { grid-column: 1 / -1; }
  .footer-links { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .wordmark { gap: 6px; font-size: 1.05rem; }
  .menu-toggle { padding-inline: 9px; }
  .neighborhood-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#lenders .buyer-milestones { margin-bottom: 18px; }
