/* ============================================
   Esme Rodriguez — one-page template
   ============================================ */

:root {
  --bg: #0b0b0b;
  --bg-raised: #121212;
  --bg-card: #161616;
  --bg-soft: #1b1b1b;
  --cream: #efeae1;
  --ink: #111111;
  --text: #f4f1ea;
  --text-muted: #9c968c;
  --text-faint: #6f6a62;
  --line: rgba(244, 241, 234, 0.1);
  --line-strong: rgba(244, 241, 234, 0.18);
  --accent: #c4a574;
  --accent-hover: #d4b88a;
  --header-h: 84px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.5rem;
  --space-xl: 6.5rem;
  --space-2xl: 9rem;
  --max: 1180px;
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 500;
  background: var(--cream);
  color: var(--ink);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------
   Buttons & links
   -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease), transform 0.45s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.nav-link:focus-visible,
.logo:focus-visible,
.text-link:focus-visible,
.back-to-top:focus-visible,
.menu-toggle:focus-visible,
.to-top:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.contact-block a:focus-visible,
.footer-links a:focus-visible,
.footer-social a:focus-visible,
.mobile-nav a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #1a140c;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-nav {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  min-height: 42px;
  padding: 0.55rem 1.1rem;
}

.btn-nav:hover {
  background: var(--accent);
  color: #1a140c;
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: #000;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.45s var(--ease);
}

.text-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.text-link:hover::after {
  transform: translateX(6px);
}

/* --------------------------------------------
   Header / navigation
   -------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  width: min(calc(100% - 2.5rem), calc(var(--max) + 80px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav-list {
  display: flex;
  gap: 1.35rem;
}

.nav-link {
  position: relative;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.site-header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* --------------------------------------------
   Shared section chrome
   -------------------------------------------- */

.section {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.section-index {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.eyebrow-dark {
  color: #6b645b;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-lede {
  color: var(--text-muted);
  max-width: 36ch;
  justify-self: end;
}

.section-heading {
  margin-bottom: 2.5rem;
}

/* --------------------------------------------
   Hero
   -------------------------------------------- */

.hero {
  width: 100%;
  margin: 0;
  min-height: calc(100svh - var(--header-h));
  padding: 0;
}

.hero-stage {
  position: relative;
  width: min(calc(100% - 2.5rem), calc(var(--max) + 120px));
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 1.1rem 0 2rem;
}

.hero-mast {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 3;
  pointer-events: none;
  align-self: start;
  padding-top: 0.2rem;
}

.hero-mast .eyebrow {
  margin-bottom: 0.85rem;
}

.hero-given {
  display: block;
  font-size: clamp(4.4rem, 13vw, 10.75rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-family {
  display: block;
  margin-top: -0.08em;
  margin-left: clamp(2.5rem, 16vw, 11rem);
  font-size: clamp(2.35rem, 6.4vw, 5.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 10px 36px rgba(11, 11, 11, 0.4);
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
  max-width: 34rem;
  padding-top: 0;
  padding-bottom: 0.15rem;
  align-self: end;
}

.hero-place {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-line {
  display: block;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
}

.hero-lede {
  margin-top: 1.15rem;
  max-width: 38ch;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  margin: 0.4rem -0.4rem 0 0;
  min-height: 0;
  align-self: stretch;
  height: 100%;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid rgba(196, 165, 116, 0.28);
  pointer-events: none;
  z-index: 2;
}

.hero-caption {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 3;
  display: flex;
  gap: 1.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.78);
}

/* --------------------------------------------
   About
   -------------------------------------------- */

.about {
  position: relative;
  overflow: hidden;
}

.er-mark {
  position: absolute;
  right: 0;
  top: 4%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(10rem, 28vw, 24rem);
  line-height: 0.72;
  letter-spacing: -0.08em;
  color: var(--text);
  opacity: 0.038;
  pointer-events: none;
  user-select: none;
}

.about .section-heading,
.about-grid,
.about .stats {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 4rem;
  align-items: center;
}

.about-portrait {
  margin: 0;
  position: relative;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: auto -1.1rem -1.1rem auto;
  width: 46%;
  height: 46%;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  pointer-events: none;
}

.about-copy h2 {
  max-width: 14ch;
}

.about-copy p {
  margin-top: 1.3rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.about-value {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stats li {
  padding-right: 1rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------
   Services
   -------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3.5rem;
}

.service-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  min-height: 0;
  transition: border-color 0.45s var(--ease);
}

.service-card:hover {
  border-top-color: rgba(196, 165, 116, 0.7);
}

.service-number {
  display: block;
  margin-bottom: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  max-width: 38ch;
}

/* --------------------------------------------
   Work
   -------------------------------------------- */

.work.section {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 5.5rem;
}

.work .section-intro,
.support-listings {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-left: auto;
  margin-right: auto;
}

.featured-residence {
  display: flex;
  flex-direction: column;
  margin: 0 0 4.75rem;
  background: transparent;
}

.featured-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  width: 100%;
  min-height: min(72vh, 760px);
}

.featured-media img {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 760px);
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.featured-residence:hover .featured-media img {
  transform: scale(1.03);
}

.featured-copy {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.2rem 0 0;
}

.featured-name {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.featured-copy .work-location {
  margin-top: 0.9rem;
}

.featured-price {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  margin-top: 0.55rem;
}

.featured-desc {
  margin-top: 1.15rem;
  max-width: 38ch;
  color: var(--text-muted);
}

.featured-copy .listing-cta {
  align-self: start;
  margin-top: 1.4rem;
  justify-self: start;
}

.featured-copy .listing-cta::after {
  content: "→";
  margin-left: 0.7rem;
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.featured-copy .listing-cta:hover::after {
  transform: translateX(6px);
}

.support-listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem 1.6rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-meta {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.work-location {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.work-price-text {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.work-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.work-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-media img {
  transform: scale(1.035);
}

.work-card:hover .work-media::after {
  opacity: 1;
}

.work-body {
  padding: 1.2rem 0 0.2rem;
  transform: translateY(0);
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-body {
  transform: translateY(-6px);
}

.work-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.work-body p:not(.work-category):not(.work-location):not(.work-price-text):not(.work-meta) {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

/* --------------------------------------------
   CTA band
   -------------------------------------------- */

.cta-band {
  background: var(--cream);
  color: var(--ink);
  padding: 6.5rem 1.25rem;
}

.cta-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 1.1rem;
}

.cta-inner p {
  color: #5d574f;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--cream);
}

/* --------------------------------------------
   Contact
   -------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 4rem;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.85rem 0;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 2px), calc(100% - 6px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
}

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

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--accent);
}

.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-bottom-color: #c47a74;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.6rem;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--accent);
}

.contact-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
  padding-top: 0.4rem;
  border-left: 1px solid var(--line);
  padding-left: 2.4rem;
}

.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.7rem;
}

.contact-block a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-block a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-block p,
.social-list {
  color: var(--text-muted);
}

.social-list {
  display: grid;
  gap: 0.45rem;
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */

.site-footer {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.footer-brand p:last-child,
.footer-links a,
.footer-social a,
.footer-bottom {
  color: var(--text-muted);
}

.footer-links,
.footer-social {
  display: grid;
  gap: 0.45rem;
}

.footer-links a:hover,
.footer-social a:hover,
.back-to-top:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.back-to-top {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 11, 11, 0.8);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* --------------------------------------------
   Editorial marquee
   -------------------------------------------- */

.marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}

.marquee-item {
  flex: none;
  padding-right: 2.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.1vw, 2.35rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.42;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------
   Reveal animation
   -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------
   Intent split
   -------------------------------------------- */

.intent-split {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intent-card {
  display: block;
  background: transparent;
  border: 0;
  padding: 2.6rem 0 2.4rem;
  padding-right: 2.8rem;
  transition: color 0.45s var(--ease);
}

.intent-card + .intent-card {
  padding-left: 2.8rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.intent-card:hover {
  transform: none;
}

.intent-card:hover h2 {
  color: var(--accent);
}

.intent-card h2 {
  transition: color 0.45s var(--ease);
}

.intent-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.intent-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  max-width: 12ch;
}

.intent-card p {
  margin: 0.9rem 0 1.3rem;
  color: var(--text-muted);
  max-width: 38ch;
}

/* --------------------------------------------
   Client journey
   -------------------------------------------- */

.journey {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 1.6rem 1.6rem 1.4rem;
}

.journey-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.journey-tab {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.journey-tab:hover,
.journey-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
}

.journey-tab.is-active {
  background: rgba(196, 165, 116, 0.1);
  color: var(--accent);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  counter-reset: step;
}

.journey-steps li {
  min-width: 0;
}

.journey-step {
  width: 100%;
  min-height: 76px;
  padding: 0.7rem 0.65rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.journey-step:hover,
.journey-step.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.journey-step.is-active {
  background: rgba(196, 165, 116, 0.08);
}

.journey-step.is-complete {
  border-color: rgba(196, 165, 116, 0.35);
}

.journey-step-num {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.journey-step-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: inherit;
  line-height: 1.2;
}

.journey-panel {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  min-height: 240px;
}

.journey-path-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.journey[data-active-path="sell"] .journey-path-label,
.journey[data-active-path="sell"] .journey-tab.is-active {
  color: var(--accent);
}

.journey-step-index {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.journey-panel h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.7rem;
}

.journey-panel > p {
  color: var(--text-muted);
  max-width: 62ch;
}

.journey-points {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0 1.5rem;
  color: var(--text);
}

.journey-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.journey-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.journey-actions .btn:disabled {
  opacity: 0.38;
  pointer-events: none;
  transform: none;
}

.journey-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.journey-demo-note {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 46ch;
}

.journey-progress {
  height: 2px;
  background: var(--line);
  margin: 0 0 1.2rem;
  overflow: hidden;
}

.journey-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

/* --------------------------------------------
   Testimonials
   -------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.quote-card {
  margin: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--accent);
  padding: 1.6rem 0 0.4rem;
}

.quote-card p {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}

.quote-card footer {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.2rem;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-card footer span {
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* --------------------------------------------
   Responsive
   -------------------------------------------- */

@media (max-width: 1180px) {
  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.7rem;
  }
}

@media (max-width: 1100px) {
  .hero-stage {
    column-gap: 1rem;
  }

  .hero-visual img {
    min-height: 72vh;
  }

  .featured-copy {
    width: min(calc(100% - 2.5rem), var(--max));
  }

  .featured-media,
  .featured-media img {
    min-height: 58vh;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .nav,
  .btn-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(11, 11, 11, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.25rem 1.8rem;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav-list {
    display: grid;
    gap: 0.2rem;
  }

  .mobile-nav-list a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-cta {
    margin-top: 1.4rem;
    width: 100%;
  }

  .hero-stage,
  .about-grid,
  .section-intro,
  .contact-grid,
  .footer-top,
  .featured-residence,
  .support-listings,
  .intent-split,
  .quote-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .journey-step {
    min-height: 0;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
  }

  .hero,
  .hero-stage {
    min-height: auto;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 0 2.6rem;
    gap: 0;
  }

  .hero-visual {
    order: 1;
    margin: 0;
    width: 100%;
  }

  .hero-visual img {
    position: static;
    inset: auto;
    min-height: 44vh;
    height: 44vh;
    width: 100%;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-visual::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, var(--bg) 92%);
    pointer-events: none;
  }

  .hero-mast {
    order: 2;
    pointer-events: auto;
    margin-top: -6.25rem;
    padding: 0 1.25rem;
    text-align: left;
  }

  .hero-copy {
    order: 3;
    max-width: none;
    padding: 0.2rem 1.25rem 0;
    text-align: left;
  }

  .hero-given {
    font-size: clamp(3.7rem, 16vw, 4.8rem);
  }

  .hero-family {
    margin-left: 1.35rem;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .hero-line {
    max-width: 18ch;
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }

  .hero-lede {
    margin-top: 0.85rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero-caption {
    display: none;
  }

  .intent-card,
  .intent-card + .intent-card {
    padding: 2rem 0;
    border-left: 0;
  }

  .intent-card + .intent-card {
    border-top: 1px solid var(--line);
  }

  .featured-residence {
    margin-bottom: 3.5rem;
  }

  .featured-media,
  .featured-media img {
    min-height: 52vh;
  }

  .featured-copy {
    width: min(calc(100% - 2.5rem), var(--max));
    padding-top: 1.6rem;
  }

  .work .section-intro,
  .support-listings {
    width: min(calc(100% - 2.5rem), var(--max));
  }

  .section-lede {
    justify-self: start;
    max-width: none;
  }

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

  .contact-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 5rem 0;
  }

  .service-grid,
  .stats,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .hero-actions,
  .footer-bottom,
  .cta-actions,
  .journey-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual img {
    min-height: 42vh;
    height: 42vh;
  }

  .hero-mast {
    margin-top: -3.6rem;
  }

  .featured-media,
  .featured-media img {
    min-height: 52vh;
  }

  .featured-copy .listing-cta {
    width: 100%;
  }

  .btn,
  .btn-nav {
    width: 100%;
  }

  .logo-name {
    font-size: 1.05rem;
  }

  .about-portrait::after {
    display: none;
  }

  .cta-band {
    padding: 4.5rem 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .work-card:hover .work-body,
  .work-card:hover .work-media img,
  .featured-residence:hover .featured-media img {
    transform: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: 1280px;
  }

  .hero-stage {
    width: min(calc(100% - 4rem), 1480px);
  }

  .featured-residence {
    width: min(100%, 1600px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .hero-given {
    font-size: clamp(4.6rem, 11vw, 9rem);
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero-given {
    font-size: clamp(3.8rem, 9vw, 7.2rem);
  }

  .hero-family {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
  }
}
