/* ============================================================
   Yang-Wrya - styles.css
   Palette: paper-cream / ink / brass
   Type:    Cormorant Garamond (serif) + Manrope (sans)
   Layout:  Desktop >= 880px + comprehensive mobile <= 879px
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --primary:    #EEE6D5;
  --primary-2:  #E0D5BD;
  --ink:        #100B08;
  --ink-2:      #1A1410;
  --accent:     #A98142;
  --secondary:  #1A1410;
  --muted:      #5A4F40;
  --hair:       rgba(16, 11, 8, 0.10);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* Skip link for keyboard nav */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--primary);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   HERO  (desktop 50 / 50 split, panel left, video right)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-panel {
  order: -1; /* panel on the LEFT in source order */
  background: var(--primary);
  padding: 40px 64px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand-logo {
  width: 96px;
  height: auto;
  display: block;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}
.brand-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  margin: 8px 0 0;
}

.intro {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}
.intro em {
  font-style: italic;
  color: var(--ink);
}

/* Ghost outline minimal service buttons */
.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  background: transparent;
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 10px;
  text-align: left;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1),
              box-shadow 280ms cubic-bezier(.22, 1, .36, 1),
              background 280ms cubic-bezier(.22, 1, .36, 1);
}
.svc-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(244, 239, 230, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.svc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(16, 11, 8, 0.35);
}
.svc-btn:hover::after { transform: translateX(100%); }
.svc-btn:hover .svc-btn-arrow { transform: translateX(6px); }

.svc-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.svc-btn-name {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.svc-btn-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  opacity: 0.7;
}
.svc-btn-arrow {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}

/* Secondary sub-button (sits under Real Estate for Mortgage Calculator) */
.svc-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 22px 10px 38px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  margin: -4px 0 -4px;
  border-radius: 8px;
  transition: color 200ms, background 200ms;
}
.svc-sub-btn:hover {
  color: var(--accent);
}
.svc-sub-name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.svc-sub-arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.svc-sub-btn:hover .svc-sub-arrow { transform: translateX(5px); }

/* Contact block at bottom of panel */
.contact-block {
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  margin-top: 0;
}
.contact-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.contact-row {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 0;
}
.contact-row a {
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding: 2px 4px;
  transition: border-color 0.15s ease;
}
.contact-row a:hover { border-bottom-color: var(--ink); }
.contact-sep { color: var(--muted); }
/* RECO-compliant agent + brokerage identity */
.agent-line {
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.agent-name {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.agent-title {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.brokerage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.brokerage-line {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}
.brokerage-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color 0.15s ease;
}
.brokerage-line a:hover { border-bottom-color: var(--ink); }

.hero-broker-plaque,
.foot-broker-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--ink);
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.hero-broker-plaque img,
.foot-broker-plaque img {
  display: block;
  height: 48px;
  width: auto;
}
.foot-broker-plaque img { height: 40px; }
@media (max-width: 879px) {
  .hero-broker-plaque img { height: 40px; }
  .foot-broker-plaque img { height: 36px; }
}
.hero-broker-plaque:hover,
.foot-broker-plaque:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(16, 11, 8, 0.4);
}

/* ============================================================
   DOG BAND  (desktop 60 / 40, video left, copy right)
   ============================================================ */
.dog-band {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: 55vh;
  background: var(--ink);
  color: var(--primary);
}
.dog-video {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.dog-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 80%;
  transform: scale(1.25);
  transform-origin: 18% 80%;
}
/* Narrower viewports: pan further left so Maya stays in frame */
@media (max-width: 1200px) and (min-width: 880px) {
  .dog-video video {
    object-position: 12% 80%;
    transform-origin: 12% 80%;
  }
}

.dog-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.dog-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}
.dog-head {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 48px;
  line-height: 1.18;
  color: var(--primary);
  margin: 0;
  font-weight: 500;
}
.dog-body {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #D8CFB8;
  margin: 0;
  max-width: 36ch;
}
.dog-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Ghost button on the dark band */
.ghost-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  border: 1.5px solid var(--accent);
  background: transparent;
  padding: 16px 24px;
  border-radius: 8px;
  min-height: 54px;
  transition: background 0.16s ease, color 0.16s ease;
}
.ghost-btn:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ============================================================
   LISTINGS  (full-width drag-scroll ticker)
   ============================================================ */
.listings {
  background: var(--primary);
  padding: 96px 0 88px;
}
.listings-head {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 720px;
  padding: 0 24px;
}
.listings-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.listings-title em { font-style: italic; }
.listings-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.listings-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 22px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: background 220ms, color 220ms, transform 220ms;
}
.listings-cta:hover {
  background: var(--ink);
  color: var(--primary);
  transform: translateY(-1px);
}
.listings-cta-arrow { transition: transform 220ms; }
.listings-cta:hover .listings-cta-arrow { transform: translateX(4px); }
@media (max-width: 879px) {
  .listings-cta { font-size: 13px; padding: 12px 18px; max-width: 100%; }
  .listings-cta-text { white-space: normal; line-height: 1.3; }
}

.ticker {
  position: relative;
  overflow-x: scroll;
  cursor: grab;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  padding: 8px 0 24px;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker.is-grabbing { cursor: grabbing; }
.ticker:focus-visible { outline-offset: 6px; }

.ticker-track {
  display: flex;
  gap: 24px;
  padding: 0 60px;
  width: max-content;
}

.card {
  width: 360px;
  height: 480px;
  background: var(--primary-2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--hair);
  flex-shrink: 0;
  user-select: none;
}
.card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  pointer-events: none;
}
.card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-loc {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.card-specs {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.card-foot { margin-top: auto; }

.pill {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--primary);
}
.pill.brass   { background: var(--accent);    color: var(--ink); }
.pill.oxblood { background: var(--secondary); color: var(--primary); }

/* Placeholder cards: softened tone signals "stand-in" */
.card-placeholder img { filter: saturate(0.7) brightness(0.95); }
.card-placeholder .card-price {
  font-style: italic;
  color: var(--muted);
  font-size: 24px;
}
.card-placeholder .pill {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--muted);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(.22, 1, .36, 1);
}
.modal.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 11, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  background: var(--primary);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 32px 34px 30px;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1),
              opacity 280ms cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 40px 80px -32px rgba(16, 11, 8, 0.6),
              0 16px 32px -16px rgba(16, 11, 8, 0.4);
}
.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 220ms, transform 220ms;
}
.modal-close:hover {
  background: rgba(16, 11, 8, 0.08);
  transform: rotate(90deg);
}

.modal-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}
.modal-intro {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.modal-compliance {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(169, 129, 66, 0.06);
  border-radius: 0 8px 8px 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
}
.field label .opt {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Inline hint: ? icon + popover */
.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
}
.hint-btn {
  appearance: none;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(169, 129, 66, 0.55);
  background: transparent;
  color: var(--accent);
  font: 600 10px/1 'Manrope', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.hint-btn:hover,
.hint-btn:focus-visible,
.hint-btn[aria-expanded="true"] {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  outline: none;
}
.hint-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 280px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--primary);
  font: 400 13px/1.5 'Manrope', sans-serif;
  letter-spacing: 0.005em;
  text-transform: none;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(16, 11, 8, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 50;
  pointer-events: none;
}
.hint-tip strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hint-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.hint-btn[aria-expanded="true"] + .hint-tip,
.hint:hover .hint-tip,
.hint:focus-within .hint-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
/* Shift tip when it would clip the modal edge */
.hint-tip[data-align="right"] {
  left: auto;
  right: -8px;
  transform: translate(0, 4px);
}
.hint-tip[data-align="right"]::after {
  left: auto;
  right: 14px;
  transform: none;
}
.hint-tip[data-align="left"] {
  left: -8px;
  transform: translate(0, 4px);
}
.hint-tip[data-align="left"]::after {
  left: 14px;
  transform: none;
}
.hint-btn[aria-expanded="true"] + .hint-tip[data-align="right"],
.hint:hover .hint-tip[data-align="right"],
.hint:focus-within .hint-tip[data-align="right"],
.hint-btn[aria-expanded="true"] + .hint-tip[data-align="left"],
.hint:hover .hint-tip[data-align="left"],
.hint:focus-within .hint-tip[data-align="left"] {
  transform: translate(0, 0);
}
/* Flip below the button when there isn't enough room above */
.hint-tip[data-flip="down"] {
  bottom: auto;
  top: calc(100% + 10px);
}
.hint-tip[data-flip="down"]::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ink);
}

@media (max-width: 879px) {
  .hint-tip { max-width: 240px; font-size: 12.5px; }
}

/* Conditional field groups — shown/hidden based on coverage type */
.cond-fields {
  display: contents;
}
.cond-fields[hidden] {
  display: none;
}

/* Mortgage calculator results panel */
.mortgage-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 11, 8, 0.10);
}
.mortgage-result[hidden] { display: none; }
.mtg-result-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.mtg-result-stats {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}
.mtg-result-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(16, 11, 8, 0.10);
}
.mtg-result-stats > div:last-child { border-bottom: 0; }
.mtg-result-stats dt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.mtg-result-stats dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.mtg-result-stats .mtg-stat-primary {
  background: var(--primary-2);
  padding: 16px 18px;
  border-radius: 12px;
  border-bottom: 0;
  margin-bottom: 4px;
}
.mtg-result-stats .mtg-stat-primary dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  font-weight: 600;
}
.mtg-result-stats .mtg-stat-primary dd {
  font-size: 32px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: -0.01em;
}
.mtg-disclaimer {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
  font-style: italic;
  line-height: 1.5;
}
.mortgage-broker-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 12px;
  text-decoration: none;
  min-height: 56px;
  transition: background 200ms, color 200ms, transform 200ms;
}
.mortgage-broker-cta:hover {
  background: var(--ink);
  color: var(--primary);
  transform: translateY(-1px);
}
.mortgage-broker-cta span { transition: transform 200ms; }
.mortgage-broker-cta:hover span { transform: translateX(4px); }
.mortgage-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(10,10,10,0.25);
  padding-bottom: 2px;
  transition: color 200ms, border-color 200ms;
}
.mortgage-secondary-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.mortgage-secondary-link span { transition: transform 200ms; }
.mortgage-secondary-link:hover span { transform: translateX(3px); }
.mortgage-secondary-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  min-height: 50px;
  padding: 11px 14px;
  border: 1.5px solid var(--hair);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  width: 100%;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.field textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(169, 129, 66, 0.35);
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(193, 154, 78, 0.18);
}

.modal-submit {
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 600;
  background: var(--accent);
  color: var(--ink);
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.modal-submit:hover { background: #bd9148; }
.modal-submit:disabled { opacity: 0.7; cursor: default; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--primary-2);
  border-top: 1px solid var(--hair);
  padding: 56px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--muted);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand img {
  width: 40px;
  height: auto;
}
.foot strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.foot a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.foot a:hover { text-decoration: underline; }
.foot-sep { color: var(--muted); opacity: 0.4; }
.foot-agent {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.4;
}
.foot-agent-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.01em;
}
.foot-agent-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-broker { font-size: 15px; color: var(--ink); font-weight: 600; }
.foot-broker a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.foot-broker-addr { font-size: 13px; color: var(--muted); }
.foot-contact {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.foot-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 640px;
}
.foot-copy {
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   MOBILE (<= 879px)  comprehensive mobile-responsive layer
   ============================================================ */
@media (max-width: 879px) {

  /* ---- HERO  stack: brand, video, intro, services, contact ---- */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    width: 100%;
    overflow: visible;
    background: var(--primary);
  }
  /* Lift hero-panel children into the .hero flex order */
  .hero-panel {
    display: contents;
  }
  .brand {
    order: 1;
    padding: 36px 28px 4px;
  }
  .hero-video {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin-top: 18px;
  }
  .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
  }
  .intro {
    order: 3;
    padding: 32px 28px 0;
  }
  .services {
    order: 4;
    padding: 22px 28px 0;
  }
  .contact-block {
    order: 5;
    padding: 30px 28px 40px;
  }

  .brand-row { gap: 16px; }
  .brand-logo { width: 64px; }
  .brand-name { font-size: 38px; }
  .brand-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin-top: 10px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.5;
    max-width: 32ch;
  }

  /* Three ghost buttons stack full-width, min 72px tap */
  .services {
    gap: 12px;
    width: 100%;
  }
  .svc-btn {
    width: 100%;
    min-height: 72px;
    padding: 16px 20px;
  }
  .svc-btn-name { font-size: 13px; letter-spacing: 0.18em; }
  .svc-btn-sub { font-size: 16px; }

  /* Contact block stacked, big tap targets */
  .contact-block {
    padding-top: 24px;
    width: 100%;
  }
  .contact-label { font-size: 11px; }
  .contact-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    font-size: 18px;
    text-align: center;
  }
  .contact-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    width: auto;
  }
  .contact-sep {
    display: inline-block;
    text-align: center;
  }
  .brokerage {
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
  }

  /* ---- DOG BAND  text first, then video ---- */
  .dog-band {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dog-text {
    order: 1;
    padding: 40px 28px 32px;
    gap: 16px;
  }
  .dog-video {
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .dog-eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  .dog-head { font-size: clamp(20px, 7vw, 32px); line-height: 1.2; }
  .dog-body {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
  }
  .dog-ctas {
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }
  .ghost-btn {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
    padding: 14px 20px;
  }

  /* ---- LISTINGS  smaller cards, same drag-scroll ---- */
  .listings {
    padding: 64px 0 56px;
  }
  .listings-head {
    margin-bottom: 28px;
    padding: 0 28px;
  }
  .listings-title { font-size: 36px; }
  .listings-sub { font-size: 14px; }

  .ticker {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    padding: 8px 0 20px;
  }
  .ticker-track {
    gap: 16px;
    padding: 0 28px;
  }
  .card {
    width: 280px;
    height: 380px;
    border-radius: 14px;
  }
  .card img { height: 200px; }
  .card-body { padding: 16px 18px; gap: 6px; }
  .card-loc { font-size: 12px; }
  .card-price { font-size: 24px; }
  .card-specs { font-size: 14px; }
  .pill { font-size: 10px; padding: 5px 10px; }

  /* ---- MODAL  full-screen sheets sliding from bottom ---- */
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 24px 24px 0 0;
    padding: 20px 18px 16px;
    transform: translateY(100%);
    overflow-y: auto;
    transition: transform 360ms cubic-bezier(.22, 1, .36, 1),
                opacity 280ms cubic-bezier(.22, 1, .36, 1);
  }
  .modal.is-open .modal-card { transform: translateY(0); }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .modal-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin: 0 0 6px;
  }
  .modal-title {
    font-size: 30px;
    margin: 0 0 6px;
    padding-right: 48px;
  }
  .modal-intro {
    font-size: 15px;
    margin: 0 0 12px;
  }
  .modal-compliance { margin: 0 0 14px; }
  .modal-form { gap: 12px; padding-bottom: 4px; }
  .field { gap: 4px; }
  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 10px 14px;
  }
  .field textarea { min-height: 72px; }

  .modal-submit {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
    margin-top: 8px;
  }
  /* Send button stays within thumb reach instead of below the fold.
     Scoped to real submit forms: the mortgage Calculate button must NOT
     stick, because its results render underneath it. */
  form[data-form] .modal-submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -10px 18px -8px rgba(238, 230, 213, 0.95),
                0 6px 18px -8px rgba(16, 11, 8, 0.35);
  }

  /* ---- FOOTER  stacked vertical, generous spacing ---- */
  .foot {
    padding: 48px 20px 28px;
    gap: 22px;
    font-size: 17px;
  }
  .foot-brand { gap: 14px; }
  .foot strong { font-size: 24px; }
  .foot-agent { gap: 7px; }
  .foot-broker { font-size: 15px; }
  .foot-contact {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 17px;
    align-items: center;
    justify-content: center;
  }
  .foot-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 4px;
  }
  .foot-copy {
    font-size: 14px;
    width: 100%;
    border-top: 1px solid var(--hair);
    padding-top: 16px;
  }
}

/* ============================================================
   ULTRA-NARROW (<= 380px) micro tweaks for small phones
   ============================================================ */
@media (max-width: 380px) {
  .hero-panel { padding: 32px 22px; }
  .brand-name { font-size: 34px; }
  .brand-logo { width: 56px; }
  .listings-title { font-size: 32px; }
  .card { width: 260px; height: 360px; }
  .card img { height: 180px; }
  .modal-title { font-size: 28px; padding-right: 48px; }
}

/* ============================================================
   PERSISTENT HEADER (appears on scroll)
   Liquid-glass pill with brand left, services panel right.
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -130%);
  opacity: 0;
  width: min(720px, calc(100vw - 24px));
  z-index: 90;
  transition: transform 460ms cubic-bezier(.22,1,.36,1),
              opacity 320ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.site-header.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(238, 230, 213, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(16, 11, 8, 0.08);
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 32px -8px rgba(16, 11, 8, 0.20),
              0 2px 6px rgba(16, 11, 8, 0.05);
}
.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 40px;
  padding-right: 6px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.site-header-brand img { width: 32px; height: auto; display: block; }
.site-header-brand .site-header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}
.site-header-brand .site-header-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 2px;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 879px) {
  .site-header-brand .site-header-sub { display: none; }
}
.site-header-menu {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  background: var(--ink);
  color: var(--primary);
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: background 200ms ease, transform 200ms ease;
}
.site-header-menu:hover { background: var(--accent); transform: translateY(-1px); }
.site-header-menu:active { transform: translateY(0); }
.menu-btn-caret { transition: transform 280ms cubic-bezier(.22,1,.36,1); }
.site-header-menu[aria-expanded="true"] .menu-btn-caret { transform: rotate(180deg); }
.menu-btn-dots { display: none; transition: transform 280ms cubic-bezier(.22,1,.36,1); }
.site-header-menu[aria-expanded="true"] .menu-btn-dots { transform: rotate(90deg); }

.site-header-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--primary);
  border: 1px solid rgba(16, 11, 8, 0.10);
  border-radius: 18px;
  box-shadow: 0 24px 56px -12px rgba(16, 11, 8, 0.22),
              0 4px 12px rgba(16, 11, 8, 0.08);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.22,1,.36,1),
              transform 280ms cubic-bezier(.22,1,.36,1);
  z-index: 91;
}
.site-header-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: background 180ms ease;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--primary-2); }
.menu-item-name {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}
.menu-item-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.1;
}
.menu-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(16, 11, 8, 0.08);
  margin-top: 6px;
  padding: 12px 8px 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.menu-foot a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 160ms;
}
.menu-foot a:hover { color: var(--accent); }

/* Mobile header */
@media (max-width: 879px) {
  .site-header { top: 10px; width: calc(100vw - 16px); }
  .site-header-inner { padding: 6px 8px 6px 14px; gap: 10px; }
  .site-header-brand span { font-size: 19px; }
  .site-header-brand img { width: 28px; }
  .site-header-menu { padding: 12px 13px; }
  .menu-btn-label, .menu-btn-caret { display: none; }
  .menu-btn-dots { display: block; }
  .site-header-panel { right: 0; left: 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: opacity 0.01ms; transform: translate(-50%, 0); }
  .site-header-panel { transition: opacity 0.01ms; }
}

/* ============================================================
   ABOUT / MEET NENITA  (compact strip)
   ============================================================ */
.about-strip {
  background: var(--primary);
  border-top: 1px solid var(--hair);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.strip-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
  border: 1px solid rgba(169, 129, 66, 0.55);
  outline: 1px solid var(--hair);
  outline-offset: 5px;
  flex-shrink: 0;
}
.strip-text { max-width: 52ch; }
.strip-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.strip-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 500;
}
.strip-title {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 10px;
}
.strip-body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.strip-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.strip-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 12px 22px;
  text-decoration: none;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.strip-btn:hover {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 879px) {
  .about-strip {
    flex-direction: column;
    text-align: center;
    padding: 56px 24px;
    gap: 26px;
  }
  .strip-photo { width: 116px; height: 116px; }
  .strip-text { max-width: 34ch; }
  .strip-name { font-size: 30px; }
  .strip-title { font-size: 11px; letter-spacing: 0.07em; }
  .strip-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .strip-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ============================================================
   HERO CONTACT BLOCK - MOBILE (variant A)
   Left-aligned so the contact rows share one edge with the
   service buttons above; email + phone become labelled tap rows.
   ============================================================ */
@media (max-width: 879px) {
  .intro {
    font-size: 17px;
    line-height: 1.6;
    max-width: 32ch;
    text-wrap: pretty;
    margin: 0 0 26px;
  }
  .services { gap: 10px; }

  .contact-block {
    border-top: 1px solid var(--hair);
    padding-top: 22px;
    margin-top: 26px;
    text-align: left;
  }
  .agent-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0 0 14px;
  }
  .agent-name { font-size: 20px; font-weight: 700; }
  .agent-title {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
  }
  .brokerage-row {
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    flex-wrap: nowrap;
  }
  .hero-broker-plaque img { height: 34px; width: auto; }
  .brokerage-line { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.35; }

  .contact-label { display: none; }
  .contact-sep { display: none; }
  .contact-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0;
    margin: 14px 0 0;
    font-size: 17px;
  }
  .contact-row a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0;
    border-bottom: 0;
    border-top: 1px solid var(--hair);
    font-weight: 600;
    color: var(--ink);
  }
  .contact-row a:last-child { border-bottom: 1px solid var(--hair); }
  .contact-row a::before {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
  }
  .contact-row a:nth-of-type(1)::before { content: "Email"; }
  .contact-row a:nth-of-type(2)::before { content: "Call"; }
}

.modal-card > [hidden] { display: none !important; }

/* ============================================================
   POST-SUBMIT CONFIRMATION PANEL
   Replaces the form inside the sheet after a successful send.
   This is the only branded message the client actually sees,
   since branded emails to the client are a paid Web3Forms tier.
   ============================================================ */
.sent-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 18px 4px 6px;
}
.sent-logo { width: 54px; height: auto; display: block; }
.sent-head {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.sent-body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  line-height: 1.5;
}
.sent-agent {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  width: 100%;
}
.sent-agent span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.sent-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.sent-contact a {
  flex: 1 1 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1.5px solid rgba(16, 11, 8, 0.22);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.sent-close {
  margin-top: 4px;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
}
@media (max-width: 879px) {
  .sent-panel { padding: 28px 2px 8px; gap: 14px; }
  .sent-head { font-size: 28px; }
  .sent-contact { flex-direction: column; }
}

/* ============================================================
   VARIANT A  "say it once"  (2026-07-29)
   Her name, title, brokerage and contact used to repeat 4 to 7
   times down the page. Each fact now has one owner:
     hero    = the pitch + the 4 service buttons
     about   = who she is (name, title, brokerage)
     footer  = contact + legal
     header  = logo + dots menu (contact one tap away)
   These rules absorb the space the removed blocks used to fill.
   ============================================================ */

/* Desktop: three children left in the panel, so distribute rather
   than push the buttons to the floor. */
.hero-panel {
  justify-content: center;
  gap: 34px;
}

@media (max-width: 879px) {
  /* .contact-block used to close the hero stack with 40px of air. */
  .services {
    padding-bottom: 44px;
  }
  /* Band has no buttons now, so it does not need the extra tail. */
  .dog-text {
    padding-bottom: 36px;
  }
}

/* The header pill was 720px wide to hold the title + brokerage subtitle.
   With that line gone it only carries the logo, the name and Services,
   so it shrinks to fit instead of floating half-empty. */
@media (min-width: 880px) {
  .site-header { width: min(440px, calc(100vw - 24px)); }
}


/* ============================================================
   MOBILE HERO  (2026-07-29)
   On a phone the hero is its own screen: the photo runs to the
   very top with the logo floating on it as a glass pill, the
   sentence sits under the photo, and the four services become
   slim glass rows. Everything lands above the fold on every
   phone from a 320x520 SE up to a Pro Max, so nothing has to be
   scrolled to be found. Wording is untouched.
   Desktop (880px and up) is deliberately not touched.
   ============================================================ */
@media (max-width: 879px) {

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    /* min- not fixed, so on a tiny phone the page grows instead of
       clipping a button off the bottom */
    min-height: 100vh;
    min-height: 100svh;
    background: var(--ink);
  }
  .hero-panel { display: contents; }

  /* ---- logo floats on the photo as a glass pill ---- */
  .brand {
    position: absolute;
    z-index: 3;
    top: calc(11px + env(safe-area-inset-top, 0px));
    left: 14px;
    right: 14px;
    padding: 11px 16px 12px;
    border-radius: 20px;
    background: rgba(16, 11, 8, 0.34);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  }
  .brand-row { gap: 10px; }
  .brand-logo { width: 34px; filter: brightness(0) invert(1); }
  .brand-name { color: #fff; font-size: 25px; }
  .brand-tag {
    color: #EBD3A0;
    font-size: 10px;
    letter-spacing: 0.17em;
    font-weight: 600;
    margin-top: 4px;
  }

  /* ---- the photo ----
     grow 3 against the buttons' 1, so spare height on a big phone
     goes into the picture rather than into a black gap */
  .hero-video {
    order: 2;
    flex: 3 1 auto;
    aspect-ratio: 3 / 2;
    max-height: 78vw;
    min-height: 0;
    margin: 0;
    width: 100%;
    position: relative;
  }
  /* 118% tall, anchored to the top and clipped by the parent, so the
     road and most of the driveway fall out of frame and the house is
     rendered bigger. object-position holds the house, not the
     neighbour's lawn, once the sides get trimmed. */
  .hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 118%;
    object-fit: cover;
    object-position: 56% top;
  }
  .hero-video::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background: linear-gradient(180deg,
      rgba(16, 11, 8, 0) 0%,
      rgba(16, 11, 8, 0.55) 70%,
      var(--ink) 100%);
    pointer-events: none;
  }

  /* ---- the sentence ---- */
  .intro {
    order: 3;
    flex: 0 0 auto;
    padding: 16px 20px 0;
    font-size: 16px;
    line-height: 1.45;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.93);
  }
  .intro em { color: #fff; font-style: italic; }

  /* ---- the four services, as slim rows ---- */
  .services {
    order: 4;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    width: 100%;
  }

  .svc-btn,
  .svc-sub-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    width: 100%;
    height: auto;
    min-height: 68px;
    margin: 0;
    padding: 11px 14px;
    border-radius: 14px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  /* the desktop lift and sheen would fight a tap on a phone */
  .svc-btn:hover {
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .svc-btn:hover .svc-btn-arrow,
  .svc-sub-btn:hover .svc-sub-arrow { transform: none; }
  /* mortgage is the secondary service, so it sits last on screen */
  .svc-sub-btn { order: 9; border-style: dashed; }
  .svc-btn:active,
  .svc-sub-btn:active { background: rgba(255, 255, 255, 0.22); }

  .svc-btn-text { flex: 1 1 auto; gap: 2px; }
  .svc-sub-name { flex: 1 1 auto; }

  .svc-btn-name,
  .svc-sub-name {
    font-size: 12px;
    letter-spacing: 0.14em;
    line-height: 1.1;
    color: #fff;
    font-weight: 600;
  }
  .svc-btn-sub {
    font-size: 15.5px;
    line-height: 1.18;
    padding-right: 0;
    color: rgba(255, 255, 255, 0.93);
    opacity: 1;
  }
  /* the mortgage row has no sub-line in the markup, so it gets one here */
  .svc-sub-name::after {
    content: "Estimate your approval";
    display: block;
    margin-top: 2px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 15.5px;
    line-height: 1.18;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.93);
    opacity: 1;
  }

  .svc-btn-arrow,
  .svc-sub-arrow {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 19px;
    line-height: 1;
    color: #F2DDAE;
  }

  /* ---- one line icon per service ---- */
  .services > *::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    margin: 0;
    background: #F2DDAE;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }
  .services > *:nth-child(1)::before {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.6 12 3.2l9 7.4'/><path d='M5.6 9.6V20.4h12.8V9.6'/><path d='M9.9 20.4v-5.6h4.2v5.6'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.6 12 3.2l9 7.4'/><path d='M5.6 9.6V20.4h12.8V9.6'/><path d='M9.9 20.4v-5.6h4.2v5.6'/></svg>");
  }
  .services > *:nth-child(2)::before {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4.6' y='2.8' width='14.8' height='18.4' rx='2.4'/><path d='M8 6.9h8'/><circle cx='9' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='12' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='15' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='9' cy='15.4' r='.95' fill='black' stroke='none'/><circle cx='12' cy='15.4' r='.95' fill='black' stroke='none'/><path d='M15 14.6v2.6'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4.6' y='2.8' width='14.8' height='18.4' rx='2.4'/><path d='M8 6.9h8'/><circle cx='9' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='12' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='15' cy='11.6' r='.95' fill='black' stroke='none'/><circle cx='9' cy='15.4' r='.95' fill='black' stroke='none'/><circle cx='12' cy='15.4' r='.95' fill='black' stroke='none'/><path d='M15 14.6v2.6'/></svg>");
  }
  .services > *:nth-child(3)::before {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2.9 20 6.1v5.4c0 4.6-3.2 8.4-8 9.6-4.8-1.2-8-5-8-9.6V6.1z'/><path d='m8.7 12.1 2.3 2.3 4.3-4.5'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2.9 20 6.1v5.4c0 4.6-3.2 8.4-8 9.6-4.8-1.2-8-5-8-9.6V6.1z'/><path d='m8.7 12.1 2.3 2.3 4.3-4.5'/></svg>");
  }
  .services > *:nth-child(4)::before {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.4 17.6 9 12l3.5 3.5L20.6 7.4'/><path d='M15.4 7.4h5.2v5.2'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.4 17.6 9 12l3.5 3.5L20.6 7.4'/><path d='M15.4 7.4h5.2v5.2'/></svg>");
  }
}

/* ---- short phones (SE, mini, anything under ~700px of height) ----
   the photo gives height back first, the rows second, so every
   button still lands above the fold. ---- */
@media (max-width: 879px) and (max-height: 700px) {

  .hero-video { aspect-ratio: 1.95 / 1; max-height: 54vw; }

  .brand {
    top: calc(8px + env(safe-area-inset-top, 0px));
    padding: 9px 14px 10px;
  }
  .brand-logo { width: 30px; }
  .brand-name { font-size: 21px; }
  .brand-tag { font-size: 9px; }

  .intro { padding: 12px 18px 0; font-size: 14.5px; line-height: 1.34; }

  .services {
    gap: 7px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .svc-btn,
  .svc-sub-btn { min-height: 58px; padding: 9px 12px; }
  .services > *::before { width: 22px; height: 22px; }
  .svc-btn-name,
  .svc-sub-name { font-size: 11px; letter-spacing: 0.12em; }
  .svc-btn-sub,
  .svc-sub-name::after { font-size: 14px; }
  .svc-btn-arrow,
  .svc-sub-arrow { font-size: 17px; }
}

/* ---- the smallest phones still in use (SE 1st gen and up) ----
   the larger type from the readability pass needs one more notch
   of room down here. ---- */
@media (max-width: 879px) and (max-height: 600px) {

  .hero-video { aspect-ratio: 2.15 / 1; max-height: 48vw; }

  .intro { padding: 10px 16px 0; font-size: 14px; line-height: 1.32; }

  .services {
    gap: 6px;
    padding: 8px 16px calc(9px + env(safe-area-inset-bottom, 0px));
  }
  .svc-btn,
  .svc-sub-btn { min-height: 54px; padding: 8px 11px; gap: 11px; }
  .services > *::before { width: 21px; height: 21px; }
  .svc-btn-sub,
  .svc-sub-name::after { font-size: 13.5px; }
}
