:root {
  --ink: #15241f;
  --muted: #5d6862;
  --line: #d8ddd7;
  --paper: #f8f7f1;
  --panel: #ffffff;
  --pine: #174439;
  --teal: #2c6b73;
  --gold: #c58a2e;
  --clay: #a64f39;
  --shadow: 0 20px 50px rgba(21, 36, 31, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  background: rgba(248, 247, 241, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px) 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; font-weight: 800; gap: 10px; }
.header-logo-brand {
  flex: 0 0 auto;
  min-width: 0;
}
.header-logo {
  display: block;
  height: 56px;
  max-width: min(300px, 44vw);
  object-fit: contain;
  width: auto;
}
.compact-brand {
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  min-width: max-content;
}
.brand-icon {
  background: #fff;
  border: 1px solid rgba(13, 43, 116, 0.16);
  border-radius: 8px;
  display: block;
  height: 38px;
  object-fit: contain;
  width: 38px;
}
.brand-logo {
  display: block;
  height: auto;
  max-height: 82px;
  max-width: min(112px, 30vw);
  object-fit: contain;
  width: min(112px, 30vw);
}
.brand-mark {
  align-items: center;
  background: var(--pine);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.nav { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.nav a, .nav-drop > summary { color: var(--muted); font-size: 0.94rem; font-weight: 700; }
.nav-drop {
  position: relative;
}
.nav-drop > summary {
  cursor: pointer;
  list-style: none;
}
.nav-drop > summary::-webkit-details-marker {
  display: none;
}
.nav-drop > summary::after {
  content: " ▾";
  font-size: .72rem;
}
.nav-drop[open] > summary,
.nav a:hover,
.nav-drop > summary:hover {
  color: var(--ink);
}
.nav-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
}
.nav-menu a {
  border-radius: 6px;
  color: var(--ink);
  padding: 10px 12px;
}
.nav-menu a:hover {
  background: #edf2ee;
}
.nav .nav-cta {
  background: var(--pine);
  border-radius: 8px;
  color: white;
  padding: 10px 13px;
}
.nav .nav-cta:hover {
  background: #0f3028;
  color: white;
}
.nav .public-signin {
  background: transparent;
  border-radius: 0;
  color: var(--ink);
  font-size: .72rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-only {
  display: none !important;
}
body.has-agent-session .auth-agent,
body.has-admin-session .auth-admin,
body.has-agent-session .auth-signout,
body.has-admin-session .auth-signout {
  display: inline-flex !important;
}
.footer-grid .auth-agent,
.footer-grid .auth-admin {
  align-items: flex-start;
}
.footer-grid .auth-only {
  display: none !important;
}
body.has-agent-session .footer-grid .auth-agent,
body.has-admin-session .footer-grid .auth-admin {
  display: block !important;
}
body.has-agent-session .public-signin,
body.has-admin-session .public-signin {
  display: none;
}
.nav .auth-signout {
  color: var(--clay);
}

.mobile-menu-toggle {
  display: none;
}

.hero {
  background: #101b17;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 70px) 34px;
  position: relative;
}
.hero::before {
  background: linear-gradient(90deg, rgba(10, 21, 18, 0.84), rgba(10, 21, 18, 0.34) 52%, rgba(10, 21, 18, 0.06));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}
.hero-bg {
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: right center;
  position: absolute;
  width: 100%;
  z-index: 0;
}
.hero-content { color: white; max-width: 760px; position: relative; z-index: 2; }
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); line-height: 0.95; margin-bottom: 22px; max-width: 720px; }
.hero-title span {
  display: block;
}
.hero-title .keep-together {
  white-space: nowrap;
}
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin-bottom: 16px; }
h3 { font-size: 1.08rem; margin-bottom: 6px; }
.hero-content p:not(.eyebrow) { font-size: 1.22rem; line-height: 1.55; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 52px; }
.button, .lead-form button, .application-form button, .login-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 18px;
}
.primary, .lead-form button, .application-form button, .login-form button { background: var(--gold); color: #17120a; }
.secondary { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.5); color: white; }

.chat-widget {
  bottom: 22px;
  display: grid;
  gap: 12px;
  justify-items: end;
  position: fixed;
  right: 22px;
  z-index: 2147483000;
}

.chat-toggle {
  align-items: center;
  background: var(--pine);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(12, 31, 25, 0.28);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 10px;
  min-height: 52px;
  padding: 9px 18px 9px 9px;
}

.chat-icon {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #17120a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.chat-exit-dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow: auto;
  box-sizing: border-box;
}
.chat-exit-open > :not(.chat-exit-dialog) { pointer-events: none; }
.chat-exit-dialog h2 { font-size: 1.4rem; margin: 0 32px 12px 0; }
.chat-exit-dialog p { line-height: 1.5; margin: 0 0 18px; }
.chat-exit-dialog button:not(.chat-exit-dismiss) {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--pine);
  border-radius: 6px;
  background: white;
  color: var(--pine);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chat-exit-dialog button[data-exit-confirm] { background: var(--pine); color: white; }
.chat-exit-dialog .chat-exit-dismiss {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pine);
  font-size: 28px;
  cursor: pointer;
}

.chat-panel {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 36, 31, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: min(410px, calc(100vw - 32px));
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  align-items: center;
  background: var(--pine);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.chat-header h2 {
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 0;
}

.chat-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.45rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.chat-eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  min-height: 172px;
  overflow-y: auto;
  padding: 18px;
}

.chat-time {
  color: var(--muted);
  font-size: 0.76rem;
  justify-self: center;
}

.chat-privacy-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 auto 4px;
  max-width: 320px;
  text-align: center;
}

.chat-speaker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

.chat-message {
  border-radius: 8px;
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: 90%;
  padding: 11px 12px;
}

.chat-message.assistant {
  background: #eef3ef;
  color: var(--ink);
  justify-self: start;
}

.chat-message.visitor {
  background: var(--pine);
  color: white;
  justify-self: end;
}

.chat-message-link {
  background: var(--gold);
  border-radius: 8px;
  color: #17120a;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 900;
  justify-content: center;
  padding: 9px 10px;
}

.chat-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 14px;
}

.chat-suggestions button {
  background: #eef3ef;
  border: 1px solid rgba(21, 36, 31, 0.12);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  min-height: 44px;
  padding: 9px 10px;
}

.chat-suggestions button:hover {
  background: #e3ece6;
}

.chat-lead-capture {
  border-top: 1px solid var(--line);
  padding: 0 18px;
}

.chat-lead-capture > summary {
  color: var(--pine);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  list-style: none;
  padding: 13px 0;
}

.chat-lead-capture > summary::-webkit-details-marker {
  display: none;
}

.chat-lead-capture > summary::after {
  content: " +";
}

.chat-lead-capture[open] > summary::after {
  content: " -";
}

.chat-lead-form {
  display: grid;
  gap: 9px;
  padding-bottom: 15px;
}

.chat-lead-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 4px;
}

.chat-lead-form input,
.chat-lead-form select,
.chat-lead-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.chat-lead-form textarea {
  min-height: 78px;
  resize: vertical;
}

.chat-lead-form button {
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 12px;
}

.chat-lead-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.chat-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 18px;
}

.chat-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
}

.chat-form button {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: #17120a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 14px;
}

.chat-direct-actions {
  background: #f4f6f2;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.chat-direct-actions a {
  color: var(--pine);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}

.chat-direct-actions a + a {
  border-left: 1px solid var(--line);
}

.search-panel {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(8, 17, 14, 0.16);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1120px;
  padding: 18px;
  position: relative;
  z-index: 3;
}
.join-panel article { border-left: 4px solid var(--gold); display: grid; gap: 7px; padding: 4px 0 4px 14px; }
.join-panel strong { color: var(--ink); font-size: 1rem; }
.join-panel em { color: var(--pine); font-size: .95rem; font-style: normal; font-weight: 900; }
.join-panel span { color: var(--muted); font-size: .94rem; }
label { color: var(--muted); display: grid; font-size: 0.9rem; font-weight: 800; gap: 7px; }
input, select, textarea {
  background: #fff;
  border: 1px solid #cdd4cd;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}
textarea { resize: vertical; }

.audience-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-strip a { background: var(--pine); border-right: 1px solid rgba(255,255,255,.16); color: white; display: grid; gap: 7px; min-height: 128px; padding: 26px clamp(18px, 2.4vw, 38px); }
.audience-strip a:nth-child(2) { background: var(--teal); }
.audience-strip a:nth-child(3) { background: #26352f; }
.client-strip a:nth-child(1) { background: #2f5f55; }
.client-strip a:nth-child(2) { background: #6a6759; }
.client-strip a:nth-child(3) { background: var(--teal); }
.audience-strip strong { font-size: 1.15rem; }
.audience-strip span { color: rgba(255,255,255,.82); }
.photo-marquee { background: #101b17; overflow: hidden; padding: 22px 0; }
.marquee-track { animation: slide-right 38s linear infinite; display: flex; gap: 18px; width: max-content; }
.photo-marquee:hover .marquee-track { animation-play-state: paused; }
.photo-marquee figure { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: 0 22px 42px rgba(0,0,0,.28); flex: 0 0 clamp(280px, 36vw, 520px); margin: 0; overflow: hidden; position: relative; }
.photo-marquee img { aspect-ratio: 16 / 9; display: block; height: 100%; object-fit: cover; width: 100%; }
.photo-marquee figcaption { background: rgba(16,27,23,.76); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; bottom: 14px; color: white; font-size: .82rem; font-weight: 900; left: 14px; padding: 7px 12px; position: absolute; text-transform: uppercase; }
@keyframes slide-right { from { transform: translateX(calc(-50% - 9px)); } to { transform: translateX(0); } }

.section, .split-section, .lead-section, .application-section { padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 70px); }
.section-heading { align-items: end; display: grid; gap: 20px; grid-template-columns: minmax(260px, .9fr) minmax(260px, .7fr); margin-bottom: 34px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.04rem; }
.journey-section { background: #fff; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 70px); }
.journey-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.journey-grid article { background: linear-gradient(180deg, #fff, #f3f1e9); border: 1px solid var(--line); border-radius: 8px; min-height: 240px; padding: 24px; position: relative; }
.journey-grid article::before { background: var(--gold); content: ""; height: 4px; left: 24px; position: absolute; right: 24px; top: 0; }
.journey-grid span { color: var(--clay); display: inline-flex; font-size: .82rem; font-weight: 900; margin-bottom: 42px; text-transform: uppercase; }
.journey-grid h3 { font-size: 1.42rem; }
.journey-grid p { color: var(--muted); }

.split-section { align-items: start; background: #fff; border-top: 1px solid var(--line); display: grid; gap: 40px; grid-template-columns: minmax(260px, .9fr) minmax(260px, .8fr); }
.split-section.alt { background: #edf2ee; }
.split-section p { color: var(--muted); font-size: 1.05rem; }
.service-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.service-list li, .steps article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.service-list li::before { color: var(--clay); content: "✓"; font-weight: 900; margin-right: 10px; }

.why-section {
  background: #f6f5ee;
  border-top: 1px solid var(--line);
}
.why-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.why-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(8, 17, 14, 0.08);
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
}
.why-grid h3 {
  color: var(--pine);
  font-size: 1.25rem;
  margin: 0;
}
.why-grid p {
  color: var(--muted);
  margin: 0;
}

.onboarding { background: #20352f; color: white; }
.onboarding .section-heading p:last-child { color: rgba(255,255,255,.76); }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.steps span { color: var(--gold); font-weight: 900; }
.steps p { color: rgba(255,255,255,.78); }

.join-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.42) 48%, rgba(10, 21, 18, 0.08)),
    url("assets/call_CqiXpQIAghktwh7i3It1PfOt.webp?v=phase-58-image-optimization") center center / cover no-repeat,
    #101b17;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.55fr);
  min-height: 520px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 70px);
}
.join-hero h1 {
  max-width: 680px;
}
.join-hero > div:first-child p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 620px;
}
.join-hero .contact-details {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.application-section {
  align-items: start;
  background: #fff;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.72fr 1.28fr;
}
.application-section > div p {
  color: var(--muted);
  font-size: 1.05rem;
}
.application-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
}
.application-form .wide,
.application-form button,
.application-form .form-note {
  grid-column: 1 / -1;
}
.detailed-application {
  gap: 22px;
}
.detailed-application fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 20px;
}
.detailed-application legend {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 0 8px;
}
.checkbox-grid {
  background: var(--paper);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}
.checkbox-grid span {
  color: var(--ink);
  font-weight: 900;
  grid-column: 1 / -1;
}
.checkbox-grid label,
.acknowledgment label {
  align-items: center;
  display: flex;
  font-weight: 700;
}
.checkbox-grid input,
.acknowledgment input {
  accent-color: var(--gold);
  min-height: auto;
  width: auto;
}
.acknowledgment {
  background: #f8f7f1;
}
.login-section {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.44)),
    url("assets/call_JcblOOZCEsAg2wWuTGhclglO.webp") right center / cover no-repeat,
    #101b17;
  color: white;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.55fr);
  min-height: calc(100vh - 74px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 70px);
}
.login-section p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 620px;
}
.login-form {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 24px;
}
.login-form a {
  color: var(--pine);
  font-weight: 800;
}
.admin-shortcut {
  justify-self: start;
}

.sign-in-hub {
  align-items: center;
}

.signin-modal-page {
  min-height: 100vh;
  position: relative;
}

.signin-preview-page {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(248, 247, 241, 0.78), rgba(248, 247, 241, 0.42)),
    url("assets/call_JcblOOZCEsAg2wWuTGhclglO.webp") center center / cover no-repeat,
    var(--paper);
  display: grid;
  min-height: 420px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 70px);
}

.signin-preview-copy {
  max-width: 760px;
}

.signin-preview-copy h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.signin-preview-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.14rem;
  max-width: 620px;
}

.signin-scrim {
  background: rgba(21, 36, 31, 0.56);
  inset: 0;
  position: fixed;
  z-index: 70;
}

.signin-dialog {
  background: #eef5f8;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: min(92vw, 360px);
  padding: 24px;
  position: fixed;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 360px;
  z-index: 80;
}

.signin-dialog .eyebrow {
  margin-bottom: 0;
}

.signin-dialog h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 0;
}

.signin-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 4px;
}

.signin-close {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 12px;
}

.signin-social-row {
  display: grid;
}

.google-login {
  align-items: center;
  background: #ea4335;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
}

.signin-divider {
  align-items: center;
  color: #7a8780;
  display: grid;
  font-size: .72rem;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  margin: 2px 0;
}

.signin-divider::before,
.signin-divider::after {
  background: #c7d0d5;
  content: "";
  height: 1px;
}

.signin-mini-form {
  display: grid;
  gap: 9px;
}

.signin-mini-form input {
  border-color: #bec8ce;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 10px;
}

.signin-mini-form input:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(21, 36, 31, 0.12);
}

.signin-mini-form button {
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  min-height: 38px;
}

.signin-form-note {
  color: var(--pine);
  font-size: .78rem;
  font-weight: 800;
  margin: 0;
  min-height: 18px;
}

.signin-help-row {
  display: flex;
  font-size: .72rem;
  justify-content: space-between;
}

.signin-help-row a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signin-options {
  display: grid;
  gap: 14px;
}

.signin-options a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 7px;
  padding: 22px;
}

.signin-options span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signin-options strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.signin-options small {
  color: var(--muted);
  font-size: .95rem;
}

.signin-options.compact {
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 2px;
}

.signin-options.compact a {
  box-shadow: none;
  gap: 3px;
  padding: 12px;
}

.signin-options.compact strong {
  font-size: .9rem;
}

.signin-options.compact small {
  font-size: .72rem;
  line-height: 1.25;
}

.admin-shell {
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 70px);
}
.admin-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}
.admin-heading h1 {
  color: var(--ink);
  margin-bottom: 0;
}
.admin-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}
.admin-stats button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 15px;
  text-align: left;
}
.admin-stats strong {
  color: var(--pine);
  font-size: 1.8rem;
  line-height: 1;
}
.admin-stats span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.admin-tools {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  margin-bottom: 20px;
  padding: 18px;
}

.backoffice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.backoffice-tabs a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--pine);
  font-weight: 900;
  padding: 10px 14px;
}

.backoffice-section {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.admin-report-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-report-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  padding: 20px;
}

.admin-report-grid strong {
  font-size: 1.08rem;
}

.admin-report-grid span {
  color: var(--muted);
}

.compact-heading {
  margin-bottom: 0;
}
.admin-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}
.application-table-card,
.review-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.application-table-card {
  overflow-x: auto;
}
.application-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}
.application-table th,
.application-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
}

.application-table td span,
.application-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 3px;
}

.application-table select {
  min-width: 190px;
}

.inline-review {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.inline-review input,
.inline-review select {
  min-width: 0;
  width: 100%;
}

.inline-review button {
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 12px;
}

.inline-check {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  gap: 7px;
  margin-top: 8px;
}

.inline-check input {
  margin: 0;
}

.inline-review button.delete-property,
.inline-review button.reset-agent-password {
  background: #edf2ee;
  color: var(--pine);
}
.application-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.table-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-weight: 900;
  gap: 2px;
  padding: 0;
  text-align: left;
}
.table-link span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.status-pill {
  background: #edf2ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}
.empty-state {
  color: var(--muted);
  margin: 0;
  padding: 20px;
}
.review-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  position: sticky;
  top: 96px;
}
.review-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
}
.review-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}
.review-actions button,
.notes-form button {
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 46px;
  padding: 11px 14px;
}
.review-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 16px;
}
.review-section p {
  color: var(--muted);
  margin: 0;
}
.review-section strong {
  color: var(--ink);
}
.notes-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}
.timeline {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 3px solid var(--gold);
  display: grid;
  gap: 2px;
  padding-left: 12px;
}
.timeline span {
  color: var(--muted);
}

.portal-header {
  position: sticky;
  top: 0;
}

.agent-portal-login {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.88), rgba(10, 21, 18, 0.48)),
    url("assets/call_CqiXpQIAghktwh7i3It1PfOt.webp") center center / cover no-repeat,
    #101b17;
}

.portal-shell {
  background: #f8f7f1;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 74px);
  padding: clamp(30px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.portal-welcome {
  align-items: end;
  background: #101b17;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 46px);
}

.portal-welcome h1 {
  margin-bottom: 10px;
}

.portal-welcome p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.agent-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  min-width: 250px;
  padding: 16px;
}

.agent-avatar {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: #17120a;
  display: grid;
  flex: 0 0 54px;
  font-size: 1.1rem;
  font-weight: 900;
  height: 54px;
  place-items: center;
  width: 54px;
}

.agent-card strong,
.agent-card span {
  display: block;
}

.agent-card span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.portal-grid,
.portal-modules {
  display: grid;
  gap: 18px;
}

.portal-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.portal-modules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.portal-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-overview {
  gap: 20px;
}

.portal-stats,
.dashboard-lists,
.commission-summary {
  display: grid;
  gap: 14px;
}

.portal-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.portal-stats article,
.commission-summary article {
  background: #edf2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
}

.portal-stats span,
.commission-summary span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-stats strong,
.commission-summary strong {
  color: var(--pine);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.dashboard-lists {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-lists > article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dashboard-lists h3 {
  margin: 0;
}

.commission-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.muted-copy {
  color: var(--muted);
  margin: 0;
}

.panel-heading h2,
.portal-panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 0;
}

.progress-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.progress-steps article {
  border-left: 4px solid var(--line);
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 8px 10px 12px;
}

.progress-steps article.complete {
  border-left-color: var(--gold);
}

.progress-steps span {
  color: var(--ink);
  font-weight: 900;
}

.progress-steps strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-actions a {
  background: #edf2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--pine);
  font-weight: 900;
  min-height: 48px;
  padding: 13px 14px;
}

.portal-form {
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.portal-form button {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: #17120a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 13px;
}

.profile-form,
.transaction-form,
.task-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-form .full-field,
.profile-form button,
.profile-form .form-note,
.transaction-form .full-field,
.transaction-form button,
.transaction-form .form-note,
.task-form .full-field,
.task-form button,
.task-form .form-note {
  grid-column: 1 / -1;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-list article {
  border-left: 4px solid var(--gold);
  display: grid;
  gap: 4px;
  padding: 7px 0 7px 12px;
}

.module-list article.lead-card {
  gap: 10px;
}

.training-card p,
.marketing-resource p,
.transaction-card p,
.task-card p,
.calendar-card p {
  color: var(--muted);
  margin: 0;
}

.training-card button,
.marketing-resource a,
.task-card button {
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  width: fit-content;
}

.training-card.complete {
  border-left-color: var(--teal);
}

.task-card.complete {
  border-left-color: var(--teal);
  opacity: 0.78;
}

.transaction-card small {
  color: var(--pine);
  font-weight: 800;
}

.mini-heading {
  font-size: 1rem;
  margin: 4px 0 -2px;
}

.training-card small {
  color: var(--teal);
  font-weight: 900;
}

.lead-card p {
  color: var(--muted);
  margin: 0;
}

.lead-card label {
  display: grid;
  gap: 6px;
}

.lead-card button {
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 13px;
}

.module-list strong {
  color: var(--ink);
}

.module-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state.compact {
  padding: 0;
}

.dynaverse-footer {
  background: #f4f5f3;
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 70px) 0;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.footer-grid section {
  display: grid;
  gap: 10px;
}

.footer-grid h2 {
  color: var(--ink);
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.footer-grid a,
.footer-grid span,
.footer-grid strong {
  color: #46534d;
  font-size: 0.96rem;
  line-height: 1.45;
}

.footer-grid a:hover {
  color: var(--pine);
}

.footer-grid strong {
  color: var(--ink);
}

.footer-brand {
  align-items: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: clamp(46px, 7vw, 78px) auto 28px;
  max-width: 1180px;
  text-align: center;
}

.footer-logo {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.footer-logo img {
  display: block;
  height: auto;
  max-width: min(400px, 78vw);
  width: 360px;
}

.footer-logo span {
  align-items: center;
  background: var(--gold);
  border-radius: 8px;
  color: #17120a;
  display: grid;
  font-size: 1.35rem;
  font-weight: 900;
  height: 46px;
  place-items: center;
  width: 46px;
}

.footer-logo strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.footer-logo small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fair-housing {
  border: 2px solid #8b938f;
  border-radius: 8px;
  color: #6a756f;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 10px 14px;
  text-transform: uppercase;
}

.footer-legal {
  background: #dfe2df;
  color: #79837d;
  display: grid;
  gap: 12px;
  margin: 0 calc(clamp(20px, 5vw, 70px) * -1);
  padding: 34px clamp(20px, 8vw, 110px);
  text-align: center;
}

.footer-legal p {
  margin: 0 auto;
  max-width: 1180px;
}

.lead-section { align-items: start; display: grid; gap: 36px; grid-template-columns: .75fr 1.25fr; }
.lead-section > div p { color: var(--muted); font-size: 1.05rem; }
.contact-details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
}
.contact-details p {
  margin: 0;
}
.lead-form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px; }
.lead-form .wide, .lead-form button, .form-note { grid-column: 1 / -1; }
.form-note { color: var(--pine); font-weight: 800; margin: 0; min-height: 24px; }

.agents-hero {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.88), rgba(10, 21, 18, 0.58) 44%, rgba(10, 21, 18, 0.16)),
    url("assets/dynaverse-agents-hero-smiling-realtor.webp") center right / cover no-repeat,
    #10241d;
  color: white;
  padding: clamp(72px, 12vw, 132px) clamp(20px, 5vw, 70px);
}

.agent-directory-hero {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.94), rgba(10, 21, 18, 0.76)),
    linear-gradient(135deg, #10241d, #255447);
  color: white;
  min-height: 420px;
  padding: clamp(80px, 12vw, 146px) clamp(20px, 5vw, 70px);
}

.agent-directory-hero > div {
  max-width: 780px;
}

.agent-directory-hero h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.agent-directory-hero p:not(.eyebrow) {
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 680px;
}

.directory-hero {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.9), rgba(10, 21, 18, 0.58) 44%, rgba(10, 21, 18, 0.12)),
    linear-gradient(135deg, #10241d, #21483d);
}

.agents-hero > div {
  max-width: 900px;
}

.agents-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.agents-hero p:not(.eyebrow) {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 760px;
}

.public-agents-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-agent-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.public-agent-photo {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #edf2ee;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
  place-items: center;
}

.public-agent-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.public-agent-photo span {
  align-items: center;
  background: var(--pine);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 900;
  height: 86px;
  justify-content: center;
  width: 86px;
}

.public-agent-card h3 {
  font-size: 1.45rem;
  margin: 0;
}

.public-agent-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.agent-profile-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.agent-profile-list span {
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .92rem;
  padding-left: 10px;
}

.agent-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.agent-contact-actions a {
  background: var(--pine);
  border-radius: 8px;
  color: white;
  font-weight: 900;
  padding: 10px 12px;
}

.agent-directory-callout {
  align-items: center;
}

.closing-cta {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.94), rgba(10, 21, 18, 0.72)),
    url("assets/call_hNDDBp0zOJX1xEKK1hIsCdRR.webp") center / cover no-repeat,
    #101b17;
  color: white;
}
.closing-cta > div {
  max-width: 880px;
}
.closing-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 760px;
}
.closing-cta .hero-actions {
  margin-bottom: 18px;
}
.agent-cta-note {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  margin: 0;
}
.agent-cta-note a {
  color: var(--gold);
  text-decoration: underline;
}

.property-search-bar {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.5fr .8fr .8fr;
  margin: 0 0 34px;
}

.property-search-bar label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.property-search-section {
  background: #f6f5ee;
}

.remine-search-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  min-height: 92px;
  padding: clamp(18px, 3vw, 30px);
}

.remine-search-card #remine-autocomplete {
  min-height: 52px;
}

.idx-note {
  color: var(--muted);
  font-size: .94rem;
  margin: 0 0 22px;
}

.property-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.light,
.property-search-actions .secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--pine);
}

.featured-properties-section[hidden] {
  display: none;
}

.featured-properties-section {
  padding-bottom: clamp(28px, 5vw, 56px);
  padding-top: clamp(32px, 5vw, 58px);
}

.featured-properties-section .section-heading {
  margin-bottom: 18px;
}

.featured-properties-section .section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.featured-properties-section .section-heading p {
  max-width: 520px;
}

.property-marquee {
  border-block: 1px solid var(--line);
  margin-inline: calc(clamp(20px, 5vw, 70px) * -1);
  overflow: hidden;
  padding: 12px 0;
}

.property-marquee-track {
  animation: property-roll 36s linear infinite;
  display: flex;
  gap: 12px;
  grid-template-columns: none;
  width: max-content;
}

.property-marquee:hover .property-marquee-track {
  animation-play-state: paused;
}

.property-marquee-track .property-card {
  flex: 0 0 clamp(210px, 20vw, 280px);
  width: clamp(210px, 20vw, 280px);
}

@keyframes property-roll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 6px)); }
}

.compact-property-card {
  box-shadow: 0 12px 26px rgba(21, 36, 31, 0.12);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 112px;
}

.compact-property-card .property-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 112px;
}

.compact-property-card .property-card-body {
  gap: 6px;
  padding: 12px;
  min-width: 0;
}

.compact-property-card .status-pill {
  font-size: .68rem;
  justify-self: start;
  padding: 4px 8px;
}

.compact-property-card h3 {
  font-size: 1rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-property-card strong {
  font-size: 1rem;
}

.compact-property-card .property-card-body p {
  font-size: .82rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-property-card .property-facts {
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.compact-property-card .property-facts span {
  font-size: .72rem;
  padding: 4px 7px;
}

.compact-property-card .property-card-body a {
  font-size: .78rem;
  justify-self: start;
  padding: 8px 10px;
}

.property-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.property-photo {
  aspect-ratio: 4 / 3;
  background: #edf2ee;
  display: grid;
  place-items: center;
}

.property-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.property-photo span {
  color: var(--pine);
  font-weight: 900;
}

.property-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.property-card-body h3 {
  font-size: 1.35rem;
  margin: 0;
}

.property-card-body strong {
  color: var(--pine);
  font-size: 1.2rem;
}

.property-card-body p {
  color: var(--muted);
  margin: 0;
}

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-facts span {
  background: #edf2ee;
  border-radius: 999px;
  color: var(--pine);
  font-size: .84rem;
  font-weight: 900;
  padding: 6px 10px;
}

.property-card-body a {
  background: var(--gold);
  border-radius: 8px;
  color: #17120a;
  font-weight: 900;
  justify-self: start;
  padding: 10px 12px;
}

.property-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.property-form .full-field,
.property-form button,
.property-form .form-note {
  grid-column: 1 / -1;
}

.property-hero {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.88), rgba(10, 21, 18, 0.54) 45%, rgba(10, 21, 18, 0.08)),
    url("assets/dynaverse-properties-hero.webp") center right / cover no-repeat,
    #174439;
}

.service-hero {
  background:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.36)),
    url("assets/call_mOi9hxmazL8pYJ6JzxmUwas3.webp") right center / cover no-repeat,
    #101b17;
  color: white;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 70px);
}

.featured-agent-card {
  grid-column: span 2;
  align-items: stretch;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.featured-agent-card .public-agent-photo {
  aspect-ratio: auto;
  background:
    linear-gradient(145deg, rgba(204, 143, 38, 0.2), transparent 48%),
    #10241d;
  border-radius: 0;
  min-height: 270px;
  padding: 20px;
}

.featured-agent-card .public-agent-photo img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(3, 10, 8, 0.28);
  height: 230px;
  object-fit: cover;
  object-position: center 12%;
  width: min(100%, 190px);
}

.featured-agent-card > div:last-child {
  padding: 22px;
}

.buyer-hero {
  background-image:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.36)),
    url("assets/dynaverse-buyers-hero.webp");
}

.seller-hero {
  background-image:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.34)),
    url("assets/dynaverse-sellers-hero.webp");
}

.management-hero {
  background-image:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.28)),
    url("assets/dynaverse-property-management-hero.webp");
}

.home-services-hero {
  background-image:
    linear-gradient(90deg, rgba(10, 21, 18, 0.84), rgba(10, 21, 18, 0.24)),
    url("assets/dynaverse-home-services-hero.webp");
}

.invest-hero {
  background-image:
    linear-gradient(90deg, rgba(10, 21, 18, 0.86), rgba(10, 21, 18, 0.28)),
    url("assets/dynaverse-property-management-hero.webp");
}

.service-hero > div {
  max-width: 820px;
}

.service-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.service-hero p:not(.eyebrow) {
  color: rgba(255,255,255,.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 700px;
}

@media (max-width: 1180px) {
  .audience-strip,
  .client-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .search-panel, .section-heading, .split-section, .lead-section, .application-section, .join-hero, .login-section, .steps, .journey-grid, .audience-strip, .why-grid, .admin-tools, .admin-layout, .portal-grid, .portal-modules, .progress-steps, .footer-grid, .public-agents-grid, .property-search-bar, .property-grid { grid-template-columns: 1fr; }
  .admin-report-grid { grid-template-columns: 1fr; }
  .portal-stats, .dashboard-lists, .commission-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-form, .transaction-form, .task-form, .property-form { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-panel { position: static; }
  .agents-hero {
    background: #10241d;
    display: grid;
    padding: 0;
  }
  .agents-hero::before {
    background: url("assets/dynaverse-agents-hero-smiling-realtor-mobile.webp") center / contain no-repeat #0b1714;
    content: "";
    display: block;
    min-height: 260px;
  }
  .property-hero::before {
    background-image: url("assets/dynaverse-properties-hero-mobile.webp");
  }
  .join-hero,
  .service-hero {
    background: #10241d;
    display: grid;
    min-height: 0;
    padding: 0;
  }
  .join-hero::before,
  .service-hero::before {
    background: url("assets/call_CqiXpQIAghktwh7i3It1PfOt-mobile.webp?v=phase-58-image-optimization") center / contain no-repeat #0b1714;
    content: "";
    display: block;
    min-height: 260px;
  }
  .service-hero::before {
    background-image: url("assets/call_mOi9hxmazL8pYJ6JzxmUwas3-mobile.webp");
  }
  .buyer-hero::before {
    background-image: url("assets/dynaverse-buyers-hero-mobile.webp");
  }
  .seller-hero::before {
    background-image: url("assets/dynaverse-sellers-hero-mobile.webp");
  }
  .management-hero::before {
    background-image: url("assets/dynaverse-property-management-hero-mobile.webp");
  }
  .home-services-hero::before {
    background-image: url("assets/dynaverse-home-services-hero-mobile.webp");
  }
  .join-hero > div,
  .service-hero > div {
    max-width: none;
    padding: 32px 24px 38px;
  }
  .join-hero .contact-details {
    margin: 0 24px 34px;
    padding: 18px;
  }
  .service-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }
  .agents-hero > div {
    max-width: none;
    padding: 32px 24px 38px;
  }
  .agents-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }
  .agents-hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }
  .agent-directory-hero {
    background: #10241d;
    display: grid;
    min-height: 0;
    padding: 0;
  }
  .agent-directory-hero::before {
    content: none;
    display: none;
  }
  .agent-directory-hero > div {
    max-width: none;
    padding: 32px 24px 38px;
  }
  .agent-directory-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }
  .agent-directory-hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }
  .featured-agent-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .featured-agent-card .public-agent-photo {
    min-height: 240px;
    padding: 18px;
  }
  .featured-agent-card .public-agent-photo img {
    height: 210px;
    max-width: 190px;
    object-position: center 12%;
  }
  .featured-agent-card > div:last-child {
    padding: 20px;
  }
  .hero { min-height: auto; padding-top: min(52vw, 380px); }
  .hero::before { background: linear-gradient(180deg, rgba(10,21,18,.28), rgba(10,21,18,.88)); }
  .hero-bg { height: auto; max-height: 420px; object-position: top center; }
  .portal-welcome { align-items: stretch; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 10px 16px;
  }
  .header-logo {
    height: 42px;
    max-width: min(230px, 66vw);
  }
  .mobile-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 900;
    gap: 8px;
    justify-self: end;
    padding: 8px 0;
    text-transform: uppercase;
  }
  .mobile-menu-bars {
    display: inline-block;
    height: 18px;
    position: relative;
    width: 25px;
  }
  .mobile-menu-bars,
  .mobile-menu-bars::before,
  .mobile-menu-bars::after {
    border-top: 3px solid var(--gold);
  }
  .mobile-menu-bars::before,
  .mobile-menu-bars::after {
    content: "";
    left: 0;
    position: absolute;
    width: 25px;
  }
  .mobile-menu-bars::before {
    top: 5px;
  }
  .mobile-menu-bars::after {
    top: 13px;
  }
  .nav {
    background: rgba(248, 247, 241, 0.98);
    border-top: 1px solid var(--line);
    display: none;
    gap: 0;
    grid-column: 1 / -1;
    justify-content: stretch;
    padding: 8px 0 2px;
    width: 100%;
  }
  .site-header.mobile-menu-open .nav {
    display: grid;
  }
  .nav a,
  .nav-drop > summary {
    border-bottom: 1px solid rgba(216, 221, 215, 0.72);
    color: var(--ink);
    display: block;
    font-size: 1.02rem;
    padding: 13px 4px;
    width: 100%;
  }
  .nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
  .nav-drop { width: 100%; }
  .nav-menu { position: static; width: 100%; }
  .nav-menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
  }
  .nav-menu a {
    background: transparent;
    border-bottom: 0;
    padding: 10px 4px;
  }
  .nav .public-signin {
    position: static;
    text-decoration: none;
  }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { text-align: center; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr; }
  .portal-stats, .dashboard-lists, .commission-summary { grid-template-columns: 1fr; }
  .review-actions { grid-template-columns: 1fr; }
  .lead-form, .application-form, .detailed-application fieldset, .checkbox-grid, .quick-actions { grid-template-columns: 1fr; }
  .agents-hero::before { min-height: 210px; }
  .agents-hero > div { padding: 28px 18px 34px; }
  .join-hero::before,
  .service-hero::before { min-height: 210px; }
  .join-hero > div,
  .service-hero > div { padding: 28px 18px 34px; }
  .join-hero .contact-details { margin: 0 18px 30px; }
  .marquee-track { animation-duration: 28s; }
  .signin-dialog { max-height: calc(100vh - 28px); overflow-y: auto; padding: 20px; top: 50%; }
  .signin-options.compact { grid-template-columns: 1fr; }
  .chat-widget {
    bottom: 14px;
    left: 14px;
    right: 14px;
  }
  .chat-toggle {
    font-size: 0.92rem;
    justify-content: center;
    justify-self: end;
    min-height: 46px;
    padding: 7px 14px 7px 7px;
    width: auto;
  }
  .chat-icon {
    font-size: 1rem;
    height: 30px;
    width: 30px;
  }
  .chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    justify-self: stretch;
    max-height: min(72vh, 560px);
    max-width: none;
    min-height: 0;
    width: 100%;
  }
  .chat-header {
    padding: 12px 14px;
  }
  .chat-header h2 {
    font-size: 0.95rem;
  }
  .chat-close {
    height: 30px;
    width: 30px;
  }
  .chat-messages {
    gap: 8px;
    max-height: none;
    min-height: 112px;
    overflow-y: auto;
    padding: 12px 14px;
  }
  .chat-privacy-note {
    display: none;
  }
  .chat-message {
    font-size: 0.88rem;
    max-width: 94%;
    padding: 9px 10px;
  }
  .chat-suggestions {
    gap: 6px;
    padding: 0 14px 10px;
  }
  .chat-suggestions button {
    font-size: 0.82rem;
    min-height: 38px;
    padding: 7px 8px;
  }
  .chat-lead-capture {
    max-height: 34vh;
    overflow-y: auto;
    padding: 0 14px;
  }
  .chat-lead-capture > summary {
    font-size: 0.88rem;
    padding: 10px 0;
  }
  .chat-lead-form {
    gap: 7px;
    padding-bottom: 11px;
  }
  .chat-lead-form input,
  .chat-lead-form select,
  .chat-lead-form textarea {
    min-height: 36px;
    padding: 8px 9px;
  }
  .chat-lead-form textarea {
    min-height: 64px;
  }
  .chat-form {
    gap: 7px;
    padding: 10px 14px;
  }
  .chat-form input,
  .chat-form button {
    min-height: 40px;
  }
  .chat-direct-actions a {
    padding: 10px;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 8px;
    padding: 9px 14px;
  }
  .header-logo {
    height: 38px;
    max-width: min(218px, 68vw);
  }
  .mobile-menu-toggle span:first-child {
    display: none;
  }
  .mobile-menu-bars,
  .mobile-menu-bars::before,
  .mobile-menu-bars::after {
    width: 26px;
  }
  .chat-suggestions {
    grid-template-columns: 1fr;
  }
  .chat-panel {
    max-height: 68vh;
  }
}
