/* ========================================================================
   CloseFlow Hub page (subdomain {slug}.closeflow.ca)
   HUB Deploy 4 design refactor. Compact, harmonious. Apple/Linear feel.
   Palette CSS variables injected at request time from api/_hub_palettes.py.
   Hub palette is intentionally per-agent. Do not consume app tokens.css here.
   ======================================================================== */

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

:root {
  /* Width system (HUB R2): two tiers. The page frame is a wide marketing
     canvas; long-form prose (about paragraphs, FAQ answers) keeps a
     comfortable reading measure INSIDE that frame. */
  --hub-frame-max:      1320px;   /* wide page frame (content ~1208px at 1440) */
  --hub-prose-max:      46rem;    /* 736px long-form reading measure */

  /* Spacing scale */
  --hub-section-py:     2.5rem;   /* 40px, py-10 */
  --hub-card-padding:   1.25rem;  /* 20px, p-5 */
  --hub-card-padding-lg: 1.5rem;  /* 24px, p-6 */
  --hub-card-gap:       1rem;     /* 16px, gap-4 */
  --hub-section-gap:    2.5rem;   /* 40px, mb-10 */
  --hub-radius:         1rem;     /* 16px */
  --hub-radius-sm:      0.5rem;   /* 8px */
  --hub-radius-pill:    999px;

  /* Type scale */
  --hub-text-hero:        2.25rem;   /* 36px, text-4xl */
  --hub-text-section:     1.5rem;    /* 24px, text-2xl */
  --hub-text-card-title:  1.125rem;  /* 18px, text-lg */
  --hub-text-body:        0.9375rem; /* 15px */
  --hub-text-meta:        0.75rem;   /* 12px */
}

/* At desktop the wide frame needs a taller section rhythm and larger section
   display type or the page reads cramped relative to its width. */
@media (min-width: 1024px) {
  :root {
    --hub-section-py:   4rem;      /* 64px */
    --hub-text-section: 1.75rem;   /* 28px */
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--hub-bg);
  color: var(--hub-text);
  font-size: var(--hub-text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}

.hub-container { max-width: var(--hub-frame-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px)  { .hub-container { padding: 0 40px; } }
@media (min-width: 1280px) { .hub-container { padding: 0 56px; } }

/* ── Shared section primitives ─────────────────────────────────────── */
.section-intro { margin-bottom: 1.25rem; max-width: var(--hub-prose-max); }
.section-heading {
  font-size: var(--hub-text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hub-text);
  line-height: 1.2;
}
.section-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--hub-muted);
}

/* Shared card base */
.hub-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--hub-radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border: 1px solid var(--hub-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.92); }
.btn-secondary {
  background: transparent;
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
}
.btn-secondary:hover { border-color: var(--hub-text); }
.btn-submit {
  width: 100%;
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border: none;
  border-radius: var(--hub-radius-sm);
}
.btn-submit:hover { filter: brightness(0.92); }
.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--hub-text);
  border: 1px solid var(--hub-text);
  border-radius: var(--hub-radius-sm);
}
.btn-outline:hover { background: var(--hub-text); color: #fff; }

/* Form fields (shared) */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-text);
  letter-spacing: 0.01em;
}
.field-label .optional { color: var(--hub-muted); font-weight: 400; }
.field-input, .field-textarea, select.field-input {
  width: 100%;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 9px 12px;
  /* 2026-07 audit: 16px prevents iOS Safari from auto-zooming on focus of any public
     lead/valuation/booking/subscribe field (and never un-zooming). */
  font-size: 16px;
  font-family: inherit;
  color: var(--hub-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-textarea { resize: vertical; min-height: 80px; padding: 11px 12px; }
.field-input:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--hub-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-primary) 18%, transparent);
}
.field-input:focus-visible, .field-textarea:focus-visible {
  outline: 2px solid var(--hub-primary);
  outline-offset: 1px;
}
.field-input::placeholder, .field-textarea::placeholder {
  color: var(--hub-muted);
  opacity: 0.6;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 540px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

/* ── Top-of-page flash banner ──────────────────────────────────────── */
.hub-flash {
  background: var(--hub-bg);
  border-top: 3px solid var(--hub-primary);
  padding: 10px 0;
  font-size: 14px;
}
.hub-flash--success { border-top-color: #16a34a; background: #ecfdf5; }
.hub-flash--error   { border-top-color: #dc2626; background: #fef2f2; }
.hub-flash-inner { display: flex; align-items: center; gap: 16px; }
.hub-flash-msg { flex: 1; }
.hub-flash--success .hub-flash-msg { color: #065F46; }
.hub-flash--error   .hub-flash-msg { color: #991B1B; }
.hub-flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 0 4px;
  color: inherit; opacity: 0.6;
}
.hub-flash-close:hover { opacity: 1; }

/* ── Section 1: Hero (Mythos editorial pattern) ────────────────────── */
.hero {
  padding: 80px 0 96px;
}
@media (min-width: 1024px) { .hero { padding: 104px 0 112px; } }

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }
}
.hero-copy { max-width: 560px; }
.hero-name {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--hub-text);
  margin-bottom: 16px;
}
@media (min-width: 1024px) { .hero-name { font-size: 4.25rem; } }
/* HUB R2: at the wide frame the hero earns a bigger display scale. */
@media (min-width: 1280px) {
  .hero-copy    { max-width: 660px; }
  .hero-name    { font-size: 5rem; }
  .hero-tagline { font-size: 1.125rem; max-width: 50ch; }
}
.hero-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--hub-muted);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--hub-text);
  margin-bottom: 32px;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero proof strip (conversion redesign, resolution 1). Real values only:
   live subscriber count + agent-entered figures, or the quiet credential
   fallback. Muted labels, text-strength numbers, hairline top rule. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hub-border);
  font-size: 13.5px;
  color: var(--hub-muted);
}
.hero-proof-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.hero-proof-item strong {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
}
.hero-proof-item--quiet {
  white-space: normal;
  letter-spacing: 0.01em;
}
.hero-proof-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hub-muted);
  margin: 0 8px;
  vertical-align: middle;
}

/* Hero buttons (Mythos style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--hub-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-ghost {
  background: transparent;
  color: var(--hub-text);
  border-color: var(--hub-border);
}
.btn-ghost:hover {
  border-color: var(--hub-text);
}

.hero-photo-wrap {
  position: relative;
  align-self: center;
}
.hero-photo {
  width: 300px;
  height: 300px;
  border-radius: 24px;
  border: 1px solid var(--hub-border);
  box-shadow: 0 0 0 6px var(--hub-bg), 0 16px 40px rgba(31, 31, 31, 0.10);
  background: linear-gradient(160deg, var(--hub-bg) 0%, color-mix(in srgb, var(--hub-border) 80%, var(--hub-bg)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px)  { .hero-photo { width: 380px; height: 380px; } }
@media (min-width: 1280px) { .hero-photo { width: 420px; height: 420px; } }
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-initials {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hub-muted);
  opacity: 0.55;
}
.hero-city-pill {
  position: absolute;
  bottom: 20px;
  left: -16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hub-text);
  box-shadow: 0 6px 18px rgba(31, 31, 31, 0.08);
}
.hero-city-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hub-primary);
  flex-shrink: 0;
}

/* ── Section 2: About card ─────────────────────────────────────────── */
/* HUB R2: two-tier width in action. The card spans the wide frame; the
   prose keeps its reading measure on the left while credentials move to a
   hairline-separated "At a glance" rail on the right. On bare hubs the
   fallback chips fill the rail, so the card never reads hollow. */
.about-card-section { padding: 0 0 var(--hub-section-py); }
.about-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding-lg);
}
@media (min-width: 720px) {
  .about-card { padding: 32px 36px; }
}
.about-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .about-card { padding: 40px 44px; }
  .about-card-grid { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 48px; }
  .about-card-rail { border-left: 1px solid var(--hub-border); padding-left: 40px; }
}
.about-card-body { max-width: var(--hub-prose-max); }
.about-rail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hub-muted);
  margin-bottom: 12px;
}
.about-card-rail .about-chips { margin-top: 0; }
.about-readmore {
  margin-top: 4px;
}
.about-readmore-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hub-primary);
  border-bottom: 1px solid var(--hub-primary);
  padding-bottom: 1px;
  list-style: none;
  transition: opacity 0.15s;
}
.about-readmore-summary::-webkit-details-marker { display: none; }
.about-readmore-summary:hover { opacity: 0.78; }
.about-readmore-summary::after {
  content: '+';
  margin-left: 2px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.15s;
}
.about-readmore[open] .about-readmore-summary::after { content: '-'; }
.about-readmore-body { padding-top: 12px; }
.about-readmore-body p { margin-bottom: 12px; }
.about-readmore-body p:last-child { margin-bottom: 0; }
.about-card-heading {
  font-size: var(--hub-text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hub-text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.about-card-prose p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hub-text);
  margin-bottom: 12px;
}
.about-card-prose p:last-child { margin-bottom: 0; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hub-text);
  white-space: nowrap;
}
.chip--meta {
  background: transparent;
  color: var(--hub-muted);
}
.about-awards {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--hub-muted);
  line-height: 1.5;
}
.subscriber-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--hub-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--hub-primary) 22%, transparent);
  border-radius: var(--hub-radius-pill);
  font-size: 13px;
}
.subscriber-pill-num { font-weight: 600; color: var(--hub-primary); font-variant-numeric: tabular-nums; }
.subscriber-pill-label { color: var(--hub-text); }

/* ── Subscribe band (conversion redesign r2; full-bleed in HUB R2) ──── */
/* DESIGN INTENT: exactly two primary-tinted moments on the page. This band
   (a quiet 8% primary mix into the page bg, edge to edge) marks the first
   ask; the solid-primary .final-cta-section marks the closing ask. Every
   other section sits on plain card/bg. Tokens only; the 8% mix shifts
   contrast of --hub-text on the surface by well under 0.3:1 on all 8
   palettes, so documented WCAG pairs hold. */
.subscribe-band-section {
  margin: 0 0 var(--hub-section-py);
  background: color-mix(in srgb, var(--hub-primary) 8%, var(--hub-bg));
  border-top: 1px solid color-mix(in srgb, var(--hub-primary) 22%, var(--hub-border));
  border-bottom: 1px solid color-mix(in srgb, var(--hub-primary) 22%, var(--hub-border));
}
.subscribe-band {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0;
}
@media (min-width: 900px) {
  .subscribe-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 0;
  }
}
.subscribe-band-copy { max-width: 34rem; }
.subscribe-band-title {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--hub-text);
}
.subscribe-band-sub {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hub-muted);
}
.subscribe-band-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 900px) {
  /* One compact row on desktop: email + consent + submit. */
  .subscribe-band-form {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
}
.subscribe-band-input { min-width: 0; }
@media (min-width: 900px) {
  .subscribe-band-input { width: 260px; }
}
@media (min-width: 1280px) {
  .subscribe-band-input { width: 320px; }
}
.subscribe-band-consent { align-items: center; }
.subscribe-band-consent span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--hub-muted);
}
@media (min-width: 900px) {
  .subscribe-band-consent { max-width: 200px; }
}
@media (min-width: 1280px) {
  .subscribe-band-consent { max-width: 260px; }
}
.subscribe-band-submit { white-space: nowrap; }

/* ── Final capture band (HUB R2, resolution 2) ─────────────────────── */
/* The closing ask before the footer: full-bleed solid primary with
   text_on_primary content. Documented pair (>= 4.5:1 on all 8 palettes),
   and the inverse button simply swaps the same two tokens. Reuses the
   subscribe-band form layout classes; overrides below restyle the fields
   for the solid surface. */
.final-cta-section {
  background: var(--hub-primary);
  padding: 56px 0;
}
@media (min-width: 1024px) { .final-cta-section { padding: 72px 0; } }
.final-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .final-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}
.final-cta-copy { max-width: 38rem; }
.final-cta-title {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--hub-text-on-primary);
}
@media (min-width: 1280px) { .final-cta-title { font-size: 2rem; } }
.final-cta-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hub-text-on-primary);
}
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final-cta-section .subscribe-band-consent span { color: var(--hub-text-on-primary); }
.final-cta-section .consent-row input[type="checkbox"] { accent-color: var(--hub-text-on-primary); }
.final-cta-section .field-input { border-color: transparent; }
.final-cta-section .field-input:focus {
  border-color: var(--hub-text-on-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-text-on-primary) 30%, transparent);
}
.final-cta-section .btn-primary {
  background: var(--hub-text-on-primary);
  color: var(--hub-primary);
  border-color: var(--hub-text-on-primary);
}
.final-cta-section .btn-ghost {
  color: var(--hub-text-on-primary);
  border-color: color-mix(in srgb, var(--hub-text-on-primary) 45%, transparent);
}
.final-cta-section .btn-ghost:hover { border-color: var(--hub-text-on-primary); }

/* ── D31: Service areas (SEO visible content) ──────────────────────── */
.service-areas { padding: 0 0 var(--hub-section-py); }
.area-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 2026-07-11 (K full/empty harmony): auto-fit instead of fixed 2/3 columns, so
   any area count fills the row evenly - 1 area = one wide card, 5 areas = five
   across on desktop - no ragged last row, no lonely card beside empty space. */
@media (min-width: 640px)  { .area-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.area-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 18px 20px;
}
.area-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--hub-text);
  margin: 0 0 6px;
}
.area-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hub-muted);
  margin: 0;
}
.area-focus {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hub-primary);
  margin: 8px 0 0;
}
.area-foot { margin-top: 20px; }

/* ── Section 3: Service approach (compact horizontal) ──────────────── */
.service-approach { padding: 0 0 var(--hub-section-py); }
.approach-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .approach-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.approach-step {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--hub-radius-pill);
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  font-size: 12px; font-weight: 600;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.step-title {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.step-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--hub-muted);
}

/* ── Section 4: Lead capture ───────────────────────────────────────── */
.lead-capture { padding: 0 0 var(--hub-section-py); }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
.lead-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding-lg);
}
.lead-card-header { margin-bottom: 16px; }
.lead-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--hub-muted);
  margin-bottom: 8px;
}
.lead-card-title {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  line-height: 1.3;
}
.lead-card-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hub-muted);
}
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px; height: 15px;
  accent-color: var(--hub-primary);
  flex-shrink: 0;
}
.consent-row span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--hub-muted);
}
.contact-foot {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--hub-muted);
}

/* ── Section 5: Market preview ─────────────────────────────────────── */
.market-preview { padding: 0 0 var(--hub-section-py); }
.market-card {
  display: block;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.market-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--hub-primary) 60%, var(--hub-border));
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
}
.market-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hub-muted);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.market-card-area {
  padding: 2px 8px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.market-card-subject {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.market-card-teaser {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hub-muted);
  margin-bottom: 12px;
}
.market-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hub-primary);
}
.market-card-foot { margin-top: 10px; }
.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-muted);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.archive-link:hover { color: var(--hub-primary); border-bottom-color: var(--hub-primary); }

/* ── Section 6: Listings widget (slim card) ────────────────────────── */
.listings-widget { padding: 0 0 var(--hub-section-py); }
.listings-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 640px) {
  .listings-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.listings-card:hover {
  border-color: color-mix(in srgb, var(--hub-primary) 60%, var(--hub-border));
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
}
.listings-card-body { display: flex; flex-direction: column; gap: 2px; }
.listings-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--hub-text);
}
.listings-card-meta {
  font-size: 12.5px;
  color: var(--hub-muted);
}
.listings-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border-radius: var(--hub-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

/* ── Realtor.ca fallback card (Deploy 32) ──────────────────────────────
   Shown in listing_mode='realtor_ca_fallback': avatar + personal CTA + optional
   highlight bullets. Atlas tokens + cognac (--hub-primary) accent, mobile-first. */
.rc-fallback {
  display: block;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-left: 3px solid var(--hub-primary);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.rc-fallback:hover {
  border-color: color-mix(in srgb, var(--hub-primary) 60%, var(--hub-border));
  border-left-color: var(--hub-primary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.rc-fallback:focus-visible {
  outline: 2px solid var(--hub-primary);
  outline-offset: 3px;
}
.rc-fallback-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rc-fallback-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--hub-primary) 12%, var(--hub-card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-fallback-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rc-fallback-monogram {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--hub-primary);
}
.rc-fallback-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rc-fallback-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hub-primary);
}
.rc-fallback-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--hub-text);
  line-height: 1.3;
}
.rc-fallback-meta {
  font-size: 12.5px;
  color: var(--hub-muted);
}
.rc-fallback-highlights {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hub-border);
  display: grid;
  gap: 9px;
}
@media (min-width: 640px) {
  .rc-fallback-highlights { grid-template-columns: 1fr 1fr; gap: 9px 22px; }
}
.rc-fallback-highlight {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--hub-text);
}
.rc-fallback-highlight svg {
  flex: none;
  margin-top: 2px;
  color: var(--hub-primary);
}
.rc-fallback-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 9px 16px;
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border-radius: var(--hub-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Section 7: Useful tools ───────────────────────────────────────── */
.useful-tools { padding: 0 0 var(--hub-section-py); }
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tool-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: var(--hub-card-padding);
}
.tool-title {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  margin-bottom: 4px;
}
.tool-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hub-muted);
  margin-bottom: 16px;
}
.tool-form { display: flex; flex-direction: column; gap: 12px; }
.tool-foot {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--hub-muted);
  line-height: 1.5;
}

/* Mortgage calc */
.mortgage-fields { display: flex; flex-direction: column; gap: 14px; }
.mc-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.mc-preset {
  flex: 1 0 calc(20% - 6px);
  min-width: 44px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--hub-card);
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  font-variant-numeric: tabular-nums;
}
.mc-preset:hover { border-color: var(--hub-primary); }
.mc-preset--active {
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border-color: var(--hub-primary);
}
.mc-custom-row {
  display: grid;
  grid-template-columns: auto 90px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.mc-custom-label {
  font-size: 12.5px;
  color: var(--hub-muted);
}
.mc-pct { padding: 7px 10px; font-size: 13.5px; }
.mc-custom-amount {
  font-size: 13px;
  color: var(--hub-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mc-output {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
}
.mc-output-primary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hub-border);
}
.mc-output-label {
  font-size: 13px;
  color: var(--hub-muted);
  font-weight: 500;
}
.mc-output-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hub-primary);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mc-output-secondary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.mc-output-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--hub-muted);
}
.mc-output-row span:last-child {
  color: var(--hub-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Valuation success inline state */
.valuation-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--hub-radius-sm);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.valuation-success-icon {
  width: 28px; height: 28px;
  border-radius: var(--hub-radius-pill);
  background: #16a34a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.valuation-success-title { font-size: 14px; font-weight: 600; color: #065f46; margin-bottom: 4px; }
.valuation-success-body { font-size: 13px; color: #064e3b; line-height: 1.5; }

/* ── Section 8: FAQ ────────────────────────────────────────────────── */
/* HUB R2: intro sits in a left column at desktop, the accordion keeps the
   prose reading measure on the right. Uses the width without stretching
   long-form answers past a comfortable line length. */
.faq { padding: 0 0 var(--hub-section-py); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; }
  .faq-grid .section-intro { margin-bottom: 0; }
}
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: var(--hub-prose-max); }
/* 2026-07-11 (K full/empty harmony): the intro column trailed off into
   whitespace beside the tall accordion - the ask-directly card gives it a
   meaningful bottom anchor and a real next step (#connect is on this page). */
.faq-ask {
  margin-top: 26px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 20px 22px;
}
.faq-ask-lead { font-weight: 600; color: var(--hub-text); margin: 0 0 4px; }
.faq-ask-sub { font-size: 0.9375rem; line-height: 1.55; color: var(--hub-muted); margin: 0 0 14px; }
/* The generic .btn base (defined later in this file) zeroes borders, so restate
   the palette outline here where the cascade can't lose it. */
.faq-ask .btn { border-color: var(--hub-primary); color: var(--hub-primary); }
.faq-ask .btn:hover { background: var(--hub-primary); color: var(--hub-text-on-primary); }
.faq-item {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--hub-primary); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--hub-muted); flex-shrink: 0; transition: transform 0.15s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--hub-primary); }
.faq-answer { padding: 0 16px 16px; }
.faq-answer p { font-size: 14px; line-height: 1.6; color: var(--hub-muted); }

/* ── Footer (minimal, palette-bg-inheriting, D7a follow-up #5) ── */
/* Linear/Cal.com/Substack pattern: footer is the end-of-page anchor, not a
   separate visual zone. Inherits palette bg (no background-color set), uses
   palette tokens for text + links, subtle hairline via --hub-border. The
   mode-conditional brokerage logo filter still applies. "Built with CloseFlow"
   attribution stays literal cognac (platform brand signal, §11.6 + §11.8). */
.hub-footer {
  padding: 48px 0;
  border-top: 1px solid var(--hub-border);
  color: var(--hub-muted);
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}
.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--hub-muted);
}
.footer-line { line-height: 1.5; color: var(--hub-text); }
.footer-social-inline { display: inline-flex; gap: 6px; }
.footer-social-inline a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--hub-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s, background-color 0.15s;
}
.footer-social-inline a:hover {
  color: var(--hub-text);
  background: color-mix(in srgb, var(--hub-text) 8%, transparent);
}
.footer-center { display: flex; align-items: center; }
.footer-brokerage-logo { height: 24px; width: auto; max-width: 120px; opacity: 0.7; }
/* Mode-conditional logo inversion: light palette -> black logo, dark -> white */
.hub-footer--light .footer-brokerage-logo { filter: brightness(0); }
.hub-footer--dark  .footer-brokerage-logo { filter: brightness(0) invert(1); }
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--hub-muted);
}
.footer-link {
  color: var(--hub-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hub-text) 30%, transparent);
  text-underline-offset: 2px;
}
.footer-link:hover { text-decoration-color: var(--hub-text); }
/* CloseFlow attribution: literal cognac, palette-independent platform brand. */
.footer-link[href*="closeflow.ca"]:last-child {
  color: #8D4F3D;
  text-decoration-color: #8D4F3D;
  font-weight: 600;
}
/* W4-21: on the only dark palette (premium_black, bg #0F0F12) the literal cognac
   #8D4F3D is ~3.0:1 - sub-AA. A lightened cognac keeps the platform-brand signal
   at 6.47:1 on #0F0F12 (WCAG AA pass). This heals dark hub homepages too and lets
   the dark digest page (W4-21) inherit an AA-safe footer credit. Light untouched. */
.hub-footer--dark .footer-link[href*="closeflow.ca"]:last-child {
  color: #C08A6E;
  text-decoration-color: #C08A6E;
}
.footer-sep { color: color-mix(in srgb, var(--hub-text) 30%, transparent); padding: 0 2px; }
.footer-monogram { color: var(--hub-text); opacity: 0.85; }
.footer-office {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--hub-muted);
  font-style: normal; /* <address> element defaults to italic; keep the design */
}

/* ════════════════════════════════════════════════════════════════════
   HUB Deploy 5 additions: eyebrow numbering, pull-quote, scroll-nav,
   my-work grids, market briefings, hero stagger, fade-in, signature.
   ════════════════════════════════════════════════════════════════════ */

/* Eyebrow numbering (editorial-style section label) */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hub-primary);
  margin-bottom: 8px;
}

/* Tabular numerals utility */
.tabular { font-variant-numeric: tabular-nums; }

/* ── Hero reveal stagger (on initial load) ─────────────────────────── */
@keyframes hub-hero-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-reveal-1, .hero-reveal-2, .hero-reveal-3, .hero-reveal-4, .hero-reveal-5 {
  opacity: 0;
  animation: hub-hero-reveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-reveal-1 { animation-delay: 0.04s; }
.hero-reveal-2 { animation-delay: 0.14s; }
.hero-reveal-3 { animation-delay: 0.24s; }
.hero-reveal-4 { animation-delay: 0.34s; }
.hero-reveal-5 { animation-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  .hero-reveal-1, .hero-reveal-2, .hero-reveal-3, .hero-reveal-4, .hero-reveal-5 {
    animation: none; opacity: 1; transform: none;
  }
}

/* ── Section fade-in on scroll (IntersectionObserver toggles .in-view) */
.section-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-fade-in.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .section-fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Sticky scroll-spy nav (D7a follow-up #5; mobile chips added in the
   conversion redesign, resolution 6) ── */
/* Uses palette tokens directly. Background is a translucent overlay of
   palette bg so the nav reads as semi-distinct from sections (sticky element
   signaling "this is navigation") without breaking palette harmony. Active
   state stays cognac via --hub-primary. Desktop (>=768px): centered underline
   tabs, unchanged. Mobile (<768px): the same anchors render as a compact
   horizontal-scroll chip row pinned under the hero (sticky top). */
.scroll-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--hub-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hub-border);
  padding: 10px 0;
}
.scroll-nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.scroll-nav-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.scroll-nav-item:hover { color: var(--hub-text); }
.scroll-nav-item.active {
  color: var(--hub-primary);
  border-bottom-color: var(--hub-primary);
}
@media (max-width: 767px) {
  .scroll-nav { padding: 8px 0; }
  .scroll-nav-list {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Edge-to-edge scroll rail inside the padded container. */
    margin: 0 -20px;
    padding: 0 20px;
  }
  .scroll-nav-list::-webkit-scrollbar { display: none; }
  .scroll-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--hub-card);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-pill);
    white-space: nowrap;
    color: var(--hub-muted);
  }
  .scroll-nav-item:hover { color: var(--hub-text); }
  .scroll-nav-item.active {
    color: var(--hub-primary);
    border-color: color-mix(in srgb, var(--hub-primary) 55%, var(--hub-border));
    background: color-mix(in srgb, var(--hub-primary) 10%, var(--hub-card));
    border-bottom-color: color-mix(in srgb, var(--hub-primary) 55%, var(--hub-border));
  }
}

/* ── Pull-quote transition (between About 01 and Process 02) ───────── */
.pull-quote-section {
  padding: 64px 0 56px;
}
.pull-quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.pull-quote-mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--hub-primary);
  opacity: 0.7;
}
.pull-quote-mark--open  { margin-bottom: 8px; }
.pull-quote-mark--close { margin-top: 4px; }
.pull-quote-text {
  font-size: 1.5rem;
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
  color: var(--hub-text);
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 720px) {
  .pull-quote-text { font-size: 1.625rem; }
}
@media (min-width: 1280px) {
  .pull-quote { max-width: 800px; }
  .pull-quote-text { font-size: 1.875rem; }
}
.pull-quote-attr {
  display: block;
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--hub-muted);
}

/* ── Service approach step icon (replaces numeric badge) ──────────── */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hub-primary) 10%, transparent);
  color: var(--hub-primary);
  margin-bottom: 12px;
}
.step-icon svg { display: block; }

/* ── Hover micro-interaction on cards ──────────────────────────────── */
.my-work-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.my-work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
}

/* ── Section 04: Market briefings ──────────────────────────────────── */
.market-briefings { padding: 0 0 var(--hub-section-py); }
.briefing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .briefing-hero { grid-template-columns: 5fr 7fr; align-items: stretch; }
}
.briefing-hero-media {
  position: relative;
  background: var(--hub-bg);
  min-height: 200px;
  aspect-ratio: 16 / 9;   /* reserve a definite box on mobile (kills CLS) */
}
@media (min-width: 720px) {
  /* The old comment claimed the ratio was "ignored on tablet+", but
     aspect-ratio feeds the grid item's min-content size, inflating the 5fr
     media track until the body column clipped under it (visible whenever the
     placeholder SVG rendered). Unset it so the 5fr/7fr split actually holds. */
  .briefing-hero-media { aspect-ratio: auto; }
}
.briefing-hero-media img,
.briefing-hero-media .briefing-placeholder,
.briefing-hero-media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.briefing-hero-body { padding: 24px; }
@media (min-width: 720px) { .briefing-hero-body { padding: 32px; } }
.briefing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--hub-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.briefing-date { color: var(--hub-muted); }
.briefing-area {
  padding: 2px 8px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.briefing-latest-tag {
  padding: 2px 8px;
  background: var(--hub-primary);
  color: var(--hub-text-on-primary);
  border-radius: var(--hub-radius-pill);
  font-size: 10px;
  font-weight: 600;
}
.briefing-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hub-text);
  line-height: 1.25;
  margin-bottom: 10px;
}
@media (min-width: 720px) { .briefing-title { font-size: 1.5rem; } }
.briefing-teaser {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hub-muted);
  margin-bottom: 14px;
}
.briefing-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hub-primary);
}

.briefing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .briefing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .briefing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.briefing-card {
  display: block;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.briefing-card-media {
  height: 130px;
  background: var(--hub-bg);
  border-bottom: 1px solid var(--hub-border);
}
.briefing-card-media img,
.briefing-card-media .briefing-placeholder,
.briefing-card-media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.briefing-card-body { padding: 14px 16px 16px; }
.briefing-card-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  line-height: 1.35;
  margin: 4px 0 10px;
}
.briefing-card-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hub-primary);
}

.briefing-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}
.briefing-placeholder svg { width: 100%; height: 100%; display: block; }

/* ── Section 05: My work (recent sales + featured listings) ────────── */
.my-work { padding: 0 0 var(--hub-section-py); }
.work-subsection { margin-top: 24px; }
.work-subsection:first-of-type { margin-top: 0; }
.work-subheading {
  font-size: var(--hub-text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hub-text);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.active-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

/* Recent sales grid */
.sales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) { .sales-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .sales-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.sale-card {
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  overflow: hidden;
}
.sale-media {
  height: 140px;
  background: var(--hub-bg);
  border-bottom: 1px solid var(--hub-border);
}
.sale-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sale-body { padding: 12px 14px 14px; }
.sale-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hub-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sale-area { color: var(--hub-text); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.sale-year { color: var(--hub-muted); }
.sale-price {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--hub-text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.sale-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--hub-muted);
  gap: 8px;
  flex-wrap: wrap;
}
.sale-type { font-weight: 500; }
.sale-days {
  padding: 3px 8px;
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #15803d;
  border-radius: var(--hub-radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Featured listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px)  { .listings-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
/* HUB R2: denser at the wide frame. */
@media (min-width: 1100px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }
.listing-card {
  display: block;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.listing-media {
  aspect-ratio: 16 / 10;
  background: var(--hub-bg);
  border-bottom: 1px solid var(--hub-border);
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-body { padding: 16px 18px 18px; }
.listing-address {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hub-text);
  margin-bottom: 4px;
}
.listing-price {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hub-primary);
  margin-bottom: 10px;
}
.listing-stats {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--hub-muted);
  margin-bottom: 12px;
}
.listing-stats strong { font-weight: 600; color: var(--hub-text); margin-right: 2px; }
.listing-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hub-primary);
}

.work-foot { margin-top: 16px; text-align: center; }

/* ── Footer monogram ──────────────────────────────────────────────── */
.footer-monogram {
  display: inline-flex;
  align-items: center;
  color: var(--hub-primary);
  margin-right: 4px;
}
.footer-monogram svg { display: block; }

/* ── Wide-frame grid polish (HUB R2) ───────────────────────────────── */
/* Card grids relax their gutters once the frame opens past 1280px so the
   density increase does not read cramped. */
@media (min-width: 1280px) {
  .lead-grid, .tools-grid { gap: 24px; }
  .briefing-grid { gap: 20px; }
  .approach-row  { gap: 20px; }
  .sales-grid    { gap: 16px; }
}

/* ── Archive page (/archive) ───────────────────────────────────────── */
.archive-page {
  padding: 48px 0 80px;
  min-height: 100vh;
  background: var(--hub-bg);
  color: var(--hub-text);
}
.archive-header { margin-bottom: 32px; max-width: 720px; }
.archive-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--hub-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.archive-back:hover { color: var(--hub-primary); }
.archive-title {
  font-size: 1.875rem;
  font-weight: 600; letter-spacing: -0.025em;
  color: var(--hub-text); line-height: 1.1; margin-bottom: 10px;
}
@media (min-width: 720px) { .archive-title { font-size: var(--hub-text-hero); } }
.archive-sub {
  font-size: 15px; line-height: 1.55;
  color: var(--hub-muted);
}
/* Archive rows are reading material: keep the prose measure inside the
   wider frame (HUB R2). */
.archive-list { display: flex; flex-direction: column; gap: 10px; max-width: var(--hub-prose-max); }
.archive-item {
  display: block;
  padding: 16px 20px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.archive-item:hover {
  transform: translateY(-1px);
  border-color: var(--hub-primary);
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.archive-item-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
  font-size: 11.5px; font-weight: 500;
  color: var(--hub-muted);
  letter-spacing: 0.3px; text-transform: uppercase;
}
.archive-item-area {
  padding: 2px 8px;
  border: 1px solid var(--hub-border); border-radius: var(--hub-radius-pill);
  text-transform: none; letter-spacing: 0.01em; font-weight: 500;
}
.archive-item-subject {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--hub-text); line-height: 1.35;
}
.archive-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px; color: var(--hub-muted);
  background: var(--hub-card);
  border: 1px dashed var(--hub-border);
  border-radius: var(--hub-radius);
}

/* ── HUB Deploy 7b-3 YouTube intro video modal ─────────────────────── */
/* Lazy iframe loaded only on open. youtube-nocookie.com embed domain so
   no tracking cookies fire until visitor presses play. Dismiss via Esc,
   backdrop click, or close button. Focus returns to triggering CTA. */
.btn-ghost-soft {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  background: transparent;
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ghost-soft:hover {
  background: color-mix(in srgb, var(--hub-text) 6%, transparent);
  border-color: color-mix(in srgb, var(--hub-text) 30%, var(--hub-border));
}
.btn-ghost-soft:focus-visible {
  outline: 2px solid var(--hub-primary);
  outline-offset: 2px;
}

.cf-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cf-video-modal-fade 150ms ease-out;
}
.cf-video-modal--open { display: flex; }
body.cf-modal-open { overflow: hidden; }

.cf-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.cf-video-modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.cf-video-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cf-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;   /* 44x44 tap target */
  height: 44px;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
.cf-video-modal-close:hover { background: rgba(0, 0, 0, 0.75); }
.cf-video-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@keyframes cf-video-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-video-modal { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Agent Hub v2 (Deploy 34). New surfaces: hero eyebrow pill + credentials
   line, the serving strip, the "Latest insights" mixed content feed, and the
   centered subscribe band with social proof. Tokens only (cognac =
   var(--hub-primary)); no raw hex, no Tailwind, no --cf tokens. Middot
   separators only (zero em-dash). Mobile-first with the shared breakpoints.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Hero v2: eyebrow pill + credentials line ──────────────────────────── */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 6px 13px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hub-muted);
}
.hero-eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-primary);
  flex-shrink: 0;
}
.hero-credentials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hub-border);
  font-size: 13.5px;
  color: var(--hub-muted);
  letter-spacing: 0.01em;
}
.hero-credentials-icon {
  flex-shrink: 0;
  color: var(--hub-primary);
  opacity: 0.9;
}

/* ── Serving strip ─────────────────────────────────────────────────────── */
.serving-strip {
  background: color-mix(in srgb, var(--hub-primary) 5%, var(--hub-bg));
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
  font-size: 12.5px;
}
.serving-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.serving-strip-areas {
  color: var(--hub-text);
  font-weight: 500;
}
.serving-strip-label {
  color: var(--hub-primary);
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-right: 8px;
}
.serving-strip-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hub-muted);
}
.serving-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-primary);
  flex-shrink: 0;
}
.serving-strip-sep { color: var(--hub-border); }

/* ── Latest insights feed ──────────────────────────────────────────────── */
.insights { padding: var(--hub-section-py) 0; }
.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.insights-seeall {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.insights-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .insights-feed-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.insights-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Count-adaptive feed states (2026-07-11, K: the feed must stay balanced at any
   post count). --solo: a single item spans the row as a horizontal feature.
   --dense (4+ items): side cards compress to thumb-left rows so the column
   tracks the feature's height instead of stacking full-image cards. */
.insights-links { display: flex; align-items: baseline; gap: 18px; flex-shrink: 0; }
@media (min-width: 900px) {
  .insights-feed-grid--solo { grid-template-columns: 1fr; }
  .insights-feed-grid--solo .insight-card--feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
  .insights-feed-grid--solo .insight-card--feature .insight-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
  }
  .insights-feed-grid--solo .insight-card--feature .insight-body { justify-content: center; }
  .insights-feed-grid--dense .insights-side { gap: 12px; }
  .insights-feed-grid--dense .insights-side .insight-card--compact {
    display: grid;
    grid-template-columns: 108px 1fr;
    align-items: stretch;
  }
  .insights-feed-grid--dense .insights-side .insight-media--compact {
    aspect-ratio: auto;
    height: 100%;
    min-height: 96px;
  }
  .insights-feed-grid--dense .insights-side .insight-body {
    padding: 14px 16px;
    gap: 5px;
    justify-content: center;
  }
  .insights-feed-grid--dense .insights-side .insight-excerpt,
  .insights-feed-grid--dense .insights-side .insight-cta { display: none; }
  .insights-feed-grid--dense .insights-side .insight-title--sm { font-size: 0.9375rem; }
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.insight-media {
  position: relative;
  aspect-ratio: 3 / 2;   /* Wave 6.3 (D3): match the blog featured 3:2 crop + 1200x800 recommended size, so the card frames the agent's chosen crop with no extra object-fit trim. */
  background: var(--hub-bg);
  overflow: hidden;
}
.insight-media--compact { aspect-ratio: 16 / 9; }   /* leaner thumb so side cards stay balanced next to the tall feature */
.insight-media img,
.insight-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.insight-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--hub-card-padding-lg);
}
.insight-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hub-primary);
}
.insight-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--hub-text);
}
.insight-title--sm { font-size: 1.0625rem; }
.insight-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hub-muted);
}
.insight-excerpt--sm { font-size: 13px; }
.insight-meta,
.insight-compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hub-muted);
}
.insight-compact-meta { justify-content: flex-start; }
.insight-meta-sep { color: var(--hub-border); }
.insight-compact-date { margin-left: auto; }
/* Read-more CTA as a proper palette pill (2026-07-11, K: the bare text link read
   as awkward). Outline in the agent's primary, fills on card hover; the
   primary/text_on_primary pair is a documented contrast-checked pairing. Shared
   by the hub feed + /blog surfaces on purpose - one CTA everywhere. */
.insight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 15px;
  border: 1.5px solid var(--hub-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-primary);
  align-self: flex-start;
  transition: background .15s ease, color .15s ease;
}
.insight-card:hover .insight-cta { background: var(--hub-primary); color: var(--hub-text-on-primary); }
.insight-card:hover .insight-title { color: var(--hub-primary); }
@media (min-width: 900px) {
  .insight-card--feature .insight-title { font-size: 1.5rem; }
}

/* ── Subscribe band v2: centered + social proof ────────────────────────── */
.subscribe-band.subscribe-band--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 0;
}
.subscribe-band--center .subscribe-band-copy { max-width: 40rem; }
.subscribe-band--center .subscribe-band-title {
  font-size: var(--hub-text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.subscribe-band--center .subscribe-band-sub { font-size: 14px; margin-top: 6px; }
.subscribe-band.subscribe-band--center .subscribe-band-form {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 30rem;
}
.subscribe-band-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
@media (min-width: 560px) {
  .subscribe-band-row { flex-direction: row; align-items: center; }
  .subscribe-band-row .subscribe-band-input { flex: 1 1 auto; width: auto; }
}
.subscribe-band--center .subscribe-band-consent {
  max-width: none;
  justify-content: center;
  gap: 8px;
}
.subscribe-band--center .subscribe-band-consent span { text-align: left; }
.subscribe-band-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hub-muted);
}
.subscribe-band-proof strong { color: var(--hub-text); font-weight: 600; }
.subscribe-band-avatars {
  display: inline-flex;
}
.subscribe-band-avatars span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hub-primary);
  border: 2px solid var(--hub-bg);
  opacity: 0.85;
}
.subscribe-band-avatars span:not(:first-child) { margin-left: -7px; }
.subscribe-band-avatars span:nth-child(2) { opacity: 0.65; }
.subscribe-band-avatars span:nth-child(3) { opacity: 0.45; }
.subscribe-band-network {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hub-text);
}
.subscribe-band-fine {
  font-size: 12px;
  color: var(--hub-muted);
}

/* ── Hero "Read more" -> jumps to the full About section (hero teaser affordance) ── */
.hero-readmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hub-primary);
  text-decoration: none;
}
.hero-readmore:hover { text-decoration: underline; }

/* ── Back-to-top floating button (hub-interactions.js toggles .show past 700px) ── */
.hub-to-top {
  /* bottom-LEFT to clear the reCAPTCHA badge, which sits bottom-right on hub pages */
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--hub-primary);
  color: var(--hub-text-on-primary, #fff);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.hub-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.hub-to-top:hover { filter: brightness(1.06); }
.hub-to-top:focus-visible { outline: 2px solid var(--hub-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hub-to-top { transition: none; } }

/* 2026-07 (K): inline read-more continuing the hero bio teaser */
/* 2026-07-11 (K): var(--accent) was the CloseFlow APP token (fixed cognac from
   tokens.css) - the hub must follow the agent's selected palette. --hub-primary
   is the palette token every other hub CTA uses. */
.hero-readmore-inline{ color:var(--hub-primary); font-weight:600; white-space:nowrap; }
.hero-readmore-inline:hover{ text-decoration:underline; }
