:root {
  --bg: #07090f;
  --surface: #111625;
  --surface-soft: #151b29;
  --line: #2c344a;
  --text: #f5f7fb;
  --muted: #a5adbf;
  --accent: #ddb76a;
  --accent-ink: #271d0e;
  --accent-2: #f4c86a;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  --radius: 16px;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, #18213a 0%, transparent 44%),
    radial-gradient(circle at 86% -8%, #2a4a6a 0%, transparent 38%),
    linear-gradient(165deg, #06070e 0%, var(--bg) 58%, #020305 100%);
  line-height: 1.5;
  min-height: 100vh;
  letter-spacing: 0.005rem;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #f8ddb8;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 14, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 6px 8px;
  border-radius: 999px;
  transition: 160ms ease;
}
nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.section-progress {
  position: sticky;
  top: 63px;
  z-index: 18;
  margin: 10px auto 0;
  width: min(1160px, calc(100% - 36px));
  display: flex;
  gap: 8px 10px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid #2d3953;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 21, 36, 0.97), rgba(13, 18, 31, 0.97));
  scrollbar-width: none;
  -ms-overflow-style: none;
  backdrop-filter: blur(8px);
}

.section-progress::-webkit-scrollbar {
  display: none;
}

.section-progress a {
  color: #96a1b8;
  border: 1px solid #32405a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  white-space: nowrap;
  background: #171f33;
  transition: 170ms ease;
}

.section-progress a:hover {
  color: #dbe4f5;
  border-color: #4a5977;
}

.section-progress a.is-active {
  color: #231909;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent), #dcb25f);
  box-shadow: 0 8px 18px rgba(220, 178, 95, 0.3);
}

.conversion-actions .btn {
  margin-top: 10px;
}

.conversion-actions .story-card {
  display: grid;
  align-content: start;
}

main {
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto;
  display: grid;
  gap: 18px;
}

.hero,
.section-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101a2c, #0e1524);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-kicker {
  color: #f3ddaa;
  margin: 8px 0 0;
  font-size: 0.93rem;
}

.hero-kicker span {
  color: #ffffff;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(20, 28, 46, 0.9), rgba(15, 18, 32, 0.85)),
    radial-gradient(circle at 16% 20%, rgba(221, 184, 108, 0.11), transparent 45%),
    url('/assets/west-calgary-luxury-hero-v2.png') center/cover no-repeat;
  opacity: 0.98;
  transform: translateY(8px);
  transition: 250ms;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(10, 14, 24, 0.1), rgba(7, 8, 11, 0.7));
  mix-blend-mode: screen;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin-top: 0.18em;
  margin-bottom: 0.2em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.05rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.01em;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-kpi {
  margin-top: 14px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-kpi article {
  border: 1px solid rgba(221, 184, 106, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(8, 13, 25, 0.75);
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-kpi article:hover {
  transform: translateY(-2px);
  border-color: rgba(221, 184, 106, 0.5);
}

.hero-kpi strong {
  display: block;
  color: #ffdfab;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-kpi span {
  color: #c8d0e1;
  font-size: 0.86rem;
}

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  text-align: center;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, filter 150ms ease;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-accent {
  border-color: #f5cc6e;
  background: linear-gradient(180deg, #f4c974, #d0a44a);
  color: #241909;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.site-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: linear-gradient(150deg, rgba(16, 30, 52, 0.94), rgba(11, 17, 30, 0.94));
  color: #f0f4ff;
  border: 1px solid rgba(221, 183, 106, 0.55);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  opacity: 0;
  z-index: 40;
  pointer-events: none;
  font-size: 0.92rem;
  transition: 180ms ease;
}

.site-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.hero-breadcrumb {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  color: #8a94a8;
  font-size: 0.86rem;
}
.hero-breadcrumb li + li::before {
  content: '>';
  color: #6f7891;
  margin-right: 8px;
}

.metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.metric-strip article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(160deg, #0a1020, #11192f);
}
.metric-strip strong {
  display: block;
  font-size: 1.7rem;
}

.section-card {
  position: relative;
  opacity: 0.98;
  transform: translateY(12px);
  transition: 250ms;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}

.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(120deg, rgba(221, 184, 106, 0.12), transparent 45%, transparent);
  opacity: 0;
  transition: opacity 220ms;
}

.section-card:hover::before {
  opacity: 1;
}
.section-card.is-visible,
.hero.is-visible {
  opacity: 1;
  transform: none;
}

.section-subtle {
  margin-top: 8px;
}

#slice-summary {
  margin: 8px 0 0;
}

.section-head {
  margin-bottom: 10px;
  display: grid;
  gap: 6px;
}

.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 12px;
  align-items: end;
}

.filters label {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2d364a;
  background: #0e1423;
}

.filters select,
.filters input {
  border-radius: 8px;
  border: 1px solid #364057;
  background: #090c16;
  color: #f3f4f8;
  padding: 8px;
  min-height: 38px;
}

.filter-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-presets .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.filters input::placeholder {
  color: #9ca5bb;
}

.range-values {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: #d1d7e3;
  font-size: 0.88rem;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #3b4761;
  background: #151d2f;
  color: #e8ebf4;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip-empty {
  border-style: dashed;
  color: #9aa2b4;
}

.chip-btn {
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #2a3350;
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.chip-btn:hover {
  background: #3c4863;
}

.metric-grid,
.insight-grid,
.city-cards,
.builder-grid,
.guide-grid,
.feed-grid,
.timeline-highlights,
.story-grid {
  display: grid;
  gap: 10px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.signal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.matrix-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #101a2b, #0d1321);
  border-left: 3px solid rgba(221, 183, 106, 0.4);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 180ms;
}

.metric:hover::after {
  opacity: 0.7;
}
.metric strong {
  font-size: 1.75rem;
  line-height: 1;
}
.metric small {
  display: block;
  margin-top: 4px;
  color: #c5cbe0;
}

.metric--action {
  cursor: pointer;
  transition: 140ms;
}

.metric--action:hover {
  transform: translateY(-2px);
  border-left-color: var(--accent-2);
  border-color: #4e5877;
}

.metric--action:focus {
  outline: 2px solid #7b88aa;
  outline-offset: 1px;
}

.metric:hover {
  transform: translateY(-2px);
}

.signal-grid .metric strong {
  font-size: 1.42rem;
}

.matrix-card {
  background: linear-gradient(180deg, #121d34, #0f1727);
  border-left: 3px solid #d9b56f;
  padding: 14px;
  min-height: 152px;
}

.matrix-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  color: #f0f4ff;
  font-weight: 700;
  margin-bottom: 6px;
}

.matrix-score {
  color: #f7d08f;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(247, 208, 143, 0.09);
  border: 1px solid rgba(247, 208, 143, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.matrix-card small {
  margin-top: 6px;
  display: block;
  color: #c5ccdf;
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insight-card,
.feed-grid article,
.timeline-highlights article,
.metric-card,
.contact-card,
.guide-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #0d1221;
}

.metric-card,
.story-card,
.matrix-card {
  backdrop-filter: blur(2px);
}

.story-card > h3 {
  margin-top: 0;
}

.matrix-card .matrix-score {
  width: max-content;
}

.insight-card h3,
.timeline-highlights h3 {
  margin-bottom: 6px;
}

.bar-row {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.bar-row .bar-label {
  font-size: 0.93rem;
}

.bar-meta {
  font-size: 0.76rem;
  color: #97a0b2;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid #313a50;
  background: #20283d;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6f8bc0, var(--accent));
}

.city-cards,
.builder-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card {
  cursor: pointer;
  transition: 180ms;
  border-left: 3px solid transparent;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: #5f6890;
  border-left-color: var(--accent-2);
}
.metric-card h4 {
  margin: 0 0 6px;
}

.line-chart {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.95), rgba(10, 14, 22, 0.95));
}
.line-inner {
  min-width: 640px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 230px;
}
.col {
  min-width: 18px;
  flex: 1;
  text-align: center;
}
.stem {
  width: 100%;
  background: linear-gradient(to top, #5973a5, var(--accent));
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  position: relative;
  min-height: 3px;
  margin: 0 auto;
}
.stem small {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  font-size: 0.67rem;
  color: #e0e6f2;
}
.stem span {
  font-size: 0.67rem;
  color: #8d95a7;
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-highlights,
.feed-grid,
.guide-grid,
.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(19, 28, 44, 0.95), rgba(13, 19, 33, 0.9));
}

.story-card p {
  margin: 0;
  color: #bfc6d7;
}

.guide-grid article ul {
  padding-left: 16px;
  margin: 8px 0 0;
  color: #cfd6e5;
}

.guide-grid li + li {
  margin-top: 6px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-card img {
  width: 100%;
  max-width: 156px;
  border-radius: 12px;
  border: 1px solid #38445f;
}

.muted {
  color: #97a0b2;
}

footer {
  width: min(1160px, calc(100% - 36px));
  margin: 8px auto 30px;
  color: #6f7789;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  font-size: 0.86rem;
}

.hidden {
  display: none !important;
}

.floating-actions {
  width: min(1160px, calc(100% - 36px));
  margin: 8px auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  top: 130px;
  z-index: 17;
}

.floating-actions .btn {
  box-shadow: var(--shadow);
}

.floating-actions .btn-accent {
  font-size: 0.92rem;
}

.signal-grid .metric small {
  line-height: 1.2;
}

.hero-actions .btn,
.filter-actions .btn,
.conversion-actions .btn {
  min-height: 42px;
}

  @media (max-width: 860px) {
  .topbar {
    padding: 12px;
  }
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px 14px;
    max-width: calc(100vw - 170px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 6px;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav a {
    white-space: nowrap;
  }
  main,
  footer {
    width: calc(100% - 16px);
  }
  .hero,
  .section-card {
    padding: 18px;
  }

  .hero-kpi,
  .metric-grid,
  .signal-grid,
  .filter-actions {
    grid-template-columns: 1fr 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    width: calc(100% - 16px);
    margin-top: 2px;
    justify-content: space-between;
    top: 104px;
  }

  .floating-actions .btn {
    min-height: 40px;
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .hero-kicker {
    font-size: 0.86rem;
  }
}




.team-feature .eyebrow { margin-bottom: .45rem; }
.team-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.25rem; }
.team-story { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.035); }
.team-story--accent { background: linear-gradient(145deg, rgba(229,169,86,.14), rgba(255,255,255,.035)); }
.team-story p { color: var(--muted); }
.team-mark { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: #17130e; font-weight: 800; margin-bottom: .7rem; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.lead-capture { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lead-form { display: grid; gap: .8rem; }
.lead-form label { display: grid; gap: .35rem; color: var(--muted); font-size: .84rem; }
.lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: .65rem; background: rgba(255,255,255,.05); color: var(--ink); padding: .75rem .8rem; font: inherit; }
.lead-form textarea { resize: vertical; }
.checkline { display: flex !important; grid-template-columns: auto 1fr !important; align-items: start; gap: .55rem !important; }
.checkline input { margin-top: .2rem; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.legal-footnote { max-width: 70rem; margin: .5rem auto 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
@media (max-width: 760px) { .lead-capture { grid-template-columns: 1fr; } }
/* Warm editorial system shared with the portfolio sites. */
body { background: radial-gradient(circle at 12% 0%, #fffaf2 0%, transparent 38%), linear-gradient(165deg, #f4efe7 0%, #eee7dc 58%, #e7ded1 100%); }
.topbar { background: rgba(255,253,249,.92); border-bottom-color: rgba(120,92,67,.18); box-shadow: 0 8px 22px rgba(67,52,36,.09); }
.brand { color: #2a302d; }
nav a { color: #69716c; }
nav a:hover { color: #2a302d; background: rgba(184,111,69,.09); }
.section-progress { border-color: #d8cec0; background: rgba(255,253,249,.94); }
.section-progress a { color: #6c746e; border-color: #d8cec0; background: #f7f2ea; }
.section-progress a.is-active { color: #fffaf3; background: linear-gradient(180deg, #c17a4e, #a9613d); border-color: #a9613d; }
.hero, .section-card { border-color: rgba(120,92,67,.18); background: linear-gradient(180deg, rgba(255,253,249,.97), rgba(248,243,235,.97)); box-shadow: var(--shadow); }
.hero { background: linear-gradient(100deg, rgba(255,250,242,.88), rgba(248,239,228,.78)), url('/assets/west-calgary-luxury-hero-v2.png') center/cover no-repeat; }
.hero::after { background: linear-gradient(160deg, rgba(255,250,242,.04), rgba(91,63,43,.18)); mix-blend-mode: multiply; }
.hero-kicker { color: #9a5c3b; }
.hero-kicker span, h1, h2, h3, h4 { color: #252b28; }
p, .muted { color: #68716d; }
.eyebrow, a { color: #a35f3d; }
.hero-kpi article, .metric-strip article, .metric, .insight-card, .feed-grid article, .timeline-highlights article, .metric-card, .contact-card, .guide-grid article, .story-card { border-color: #d8cec0; background: #fffdf9; }
.hero-kpi strong, .metric strong { color: #a45f3d; }
.btn { border-color: #b86f45; background: #b86f45; color: #fffaf3; }
.btn-accent { background: linear-gradient(180deg, #c58255, #a85e3c); color: #fffaf3; border-color: #a85e3c; }
.btn-ghost { background: transparent; color: #a35f3d; }
.bar-track { border-color: #d8cec0; background: #ece4d8; }
.bar-fill { background: linear-gradient(90deg, #d09a68, #b86f45); }
.legal-footnote, footer { color: #7b817b; }