:root {
  --surface: #ffffff;
  --text: #101010;
  --muted: #5e5a57;
  --line: rgba(16, 16, 16, 0.14);
  --accent: #5a2f91;
  --accent-dark: #49227a;
  --accent-soft: rgba(90, 47, 145, 0.08);
  --accent-line: rgba(90, 47, 145, 0.22);
  --content-width: 1240px;
  --section-space: clamp(6.5rem, 9vw, 9rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  overflow-x: hidden;
  background: #ffffff;
  line-height: 1.6;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid rgba(90, 47, 145, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--accent);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.16);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-frame {
  min-height: 100vh;
}

.hero,
.section,
.site-footer {
  width: 100%;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #5a2f91;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 220ms ease;
  overflow: hidden;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(30, 12, 49, 0.16);
}

.site-header :focus-visible,
.site-footer :focus-visible,
#about :focus-visible,
.section-accent :focus-visible {
  outline-color: rgba(255, 255, 255, 0.82);
}

.site-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 232px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.site-nav a,
.header-cta {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  color: rgba(255, 255, 255, 0.76);
}

.header-cta {
  justify-self: end;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: color 160ms ease, border-color 160ms ease;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.2rem;
  color: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #ffffff;
}

.hero {
  min-height: 90dvh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.hero-inner,
.section > .two-column,
.section > .credentials-layout,
.section > .listings-header,
.section > .listings-frame,
.site-footer > .footer-grid {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-brand-mark {
  width: clamp(265px, 30vw, 360px);
  height: auto;
  margin: 0 0 2.5rem;
  mix-blend-mode: multiply;
}

.hero h1,
.section h2,
.site-footer h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero h1 {
  line-height: 1;
}

.hero h1 > span {
  display: block;
  white-space: nowrap;
}

.hero h1 .broker-title {
  margin-top: 0.6em;
  font-size: clamp(1.15rem, 1.75vw, 1.5rem);
  letter-spacing: -0.015em;
}

.hero h1 .business-name {
  font-size: clamp(1.3rem, 2.75vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 .name-accent {
  color: var(--accent);
}

.hero-text,
.section-copy p,
.listings-header p,
.site-footer p,
.credentials-columns li,
.hero-caption {
  color: var(--muted);
}

.hero-text {
  max-width: 34rem;
  margin: 1.8rem 0 0;
  font-size: 1.14rem;
  line-height: 1.78;
}

.hero-signature {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 180ms var(--ease-out),
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(90, 47, 145, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 18px 36px rgba(90, 47, 145, 0.24);
}

.button-secondary {
  border-color: rgba(90, 47, 145, 0.36);
  color: var(--accent);
  background: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.hero-media {
  position: relative;
}

.hero-card {
  position: relative;
  width: min(100%, 390px);
  margin-left: auto;
  padding: 1rem 1rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(25, 16, 31, 0.13);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 72px rgba(25, 16, 31, 0.16);
}

.hero-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  line-height: 1;
  padding: 0.2rem 0.25rem 0;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(90, 47, 145, 0.28);
}

.hero-image-wrap {
  overflow: hidden;
  background: #ece6dd;
  aspect-ratio: 0.78;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms var(--ease-out);
}

.hero-card:hover .hero-image-wrap img {
  transform: scale(1.015);
}

.hero-caption {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--accent);
}

.section {
  padding: var(--section-space) 0;
}

.section-rule {
  display: none;
}

.two-column,
.credentials-layout,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 6vw, 6.5rem);
}

.section h2,
.site-footer h2 {
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.06;
}

.section-copy {
  display: grid;
  gap: 1.2rem;
}

.section-copy p,
.credentials-columns li,
.listings-header p,
.site-footer p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

#about,
.section-accent,
.site-footer {
  background: var(--accent);
  color: #ffffff;
}

#about,
.section-accent {
  position: relative;
  overflow: hidden;
}

#about::after,
.section-accent::after {
  content: "MG";
  position: absolute;
  z-index: 0;
  color: rgba(255, 255, 255, 0.055);
  font-family: "Great Vibes", cursive;
  font-size: clamp(18rem, 38vw, 36rem);
  line-height: 0.7;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

#about::after {
  right: -0.08em;
  bottom: -0.08em;
  transform: rotate(-5deg);
}

.section-accent::after {
  top: 50%;
  left: -0.16em;
  transform: translateY(-43%) rotate(4deg);
}

#about > .two-column,
.section-accent > .two-column {
  position: relative;
  z-index: 1;
}

.about-grid,
.affiliations-grid {
  align-items: center;
}

.about-copy,
.affiliations-copy {
  position: relative;
  padding-left: 2.6rem;
}

.about-copy::before,
.affiliations-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

#about h2,
#about p,
#about blockquote,
.section-accent h2,
.section-accent p,
.site-footer h2,
.site-footer p,
.site-footer a {
  color: #ffffff;
}

blockquote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 1.6rem 0 0;
  padding: 1.45rem 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.5;
}

.quote-mark {
  font-size: 2.6rem;
  line-height: 0.9;
}

.credentials-layout {
  align-items: center;
}

.credentials-intro {
  padding-right: 2rem;
}

.credentials-underline {
  width: 72px;
  height: 2px;
  margin-top: 1.8rem;
  background: var(--accent);
}

.credentials-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem);
}

.credentials-columns > div {
  position: relative;
}

.credentials-columns > div:first-child {
  padding-right: 2rem;
}

.credentials-columns > div:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1.4rem;
  width: 1px;
  height: 100%;
  background: rgba(90, 47, 145, 0.18);
}

.credentials-columns h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.section-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credentials-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials-columns li {
  position: relative;
  padding-left: 1.7rem;
}

.credentials-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(90, 47, 145, 0.6);
}

.credentials-columns li + li {
  margin-top: 0.8rem;
}

.affiliations-title-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.3rem;
}

.affiliations-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.affiliations-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.listings-header h2 {
  margin: 0;
}

.listings-header p {
  max-width: 34rem;
}

.listings-frame {
  height: min(78vh, 900px);
  background: var(--surface);
  border: 1px solid var(--accent-line);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 6.75rem 0 4.5rem;
}

.footer-grid {
  position: relative;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
}

.footer-brand-block {
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: clamp(265px, 30vw, 360px);
  height: auto;
  margin-bottom: 2rem;
}

.site-footer p {
  margin-top: 1rem;
  max-width: 40rem;
}

.footer-contact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.18rem;
  color: #ffffff;
  transition: opacity 160ms ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  opacity: 0.82;
}

.contact-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-ready .reveal [data-reveal-item] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 480ms ease,
    transform 540ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible [data-reveal-item] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .two-column,
  .credentials-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .credentials-columns {
    grid-template-columns: 1fr;
    gap: 3.75rem;
  }

  .credentials-columns > div:first-child {
    padding-right: 0;
  }

  .credentials-columns > div:first-child::after,
  .about-copy::before,
  .affiliations-copy::before,
  .footer-contact {
    border: 0;
    background: none;
  }

  .about-copy,
  .affiliations-copy,
  .footer-contact {
    padding-left: 0;
  }

  .hero-card {
    margin: 0 auto;
  }

  .listings-header {
    flex-direction: column;
    align-items: start;
  }

}

@media (max-width: 820px) {
  .site-header-inner {
    grid-template-columns: auto auto;
    padding: 0.65rem 1.25rem;
  }

  .brand img {
    width: 190px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.75rem 0 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .site-footer {
    padding-top: 5.75rem;
    padding-bottom: 4rem;
  }

  .hero-inner,
  .section > .two-column,
  .section > .credentials-layout,
  .section > .listings-header,
  .section > .listings-frame,
  .site-footer > .footer-grid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-brand-mark {
    width: 265px;
    margin-bottom: 2rem;
  }

  .hero-inner,
  .two-column,
  .credentials-layout,
  .footer-grid {
    gap: 3.25rem;
  }

  .hero-card {
    width: 100%;
  }

  .affiliations-title-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 168px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-contact a {
    font-size: 1rem;
  }

  .footer-logo {
    width: 265px;
  }

  .listings-frame {
    height: 68svh;
  }
}

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

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

  .motion-ready .reveal [data-reveal-item] {
    opacity: 1;
    transform: none;
  }
}
