:root {
  --blue: #073763;
  --blue-dark: #07162d;
  --blue-soft: #eaf2fb;
  --gold: #ffb31a;
  --gold-soft: #fff4d8;
  --ink: #0b172a;
  --muted: #607186;
  --line: #d7e0ec;
  --bg: #f5f8fc;
  --white: #fff;
  --green: #147a4a;
  --red: #b64242;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--blue);
}
.brand-logo {
  width: 168px;
  height: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  letter-spacing: .04em;
  font-size: 14px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
}
.nav a:hover { color: var(--blue); }

.hero {
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(7,55,99,.95), rgba(7,22,45,.98)),
    linear-gradient(90deg, rgba(255,179,26,.15), transparent);
  color: white;
}
.market-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4,21,40,.96), rgba(4,21,40,.82), rgba(4,21,40,.72)),
    url("/assets/market-property.jpg") center / cover;
}
.market-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--gold);
}
.market-hero .hero-inner {
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(50px, 7.5vw, 94px);
  line-height: .96;
  letter-spacing: 0;
  margin-bottom: 22px;
}
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  margin-bottom: 14px;
}
h3 {
  font-size: 23px;
  line-height: 1.12;
  margin-bottom: 10px;
}
.lead {
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2vw, 23px);
  max-width: 720px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
}
.btn.primary { background: var(--gold); color: var(--blue); }
.btn.secondary { background: white; color: var(--blue); }
.btn.ghost { border-color: rgba(255,255,255,.35); color: white; }
.btn.outline { border-color: var(--line); color: var(--blue); background: white; }
.actions.light { margin-top: 22px; }

.hero-card, .card, .story, .ticker-panel, .feed-status {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(18,42,72,.08);
}
.hero-card {
  color: var(--ink);
  padding: 28px;
  border-top: 8px solid var(--gold);
}
.hero-card.dark {
  color: white;
  background: rgba(5, 26, 48, .72);
  border-color: rgba(255,255,255,.18);
  border-top-color: var(--gold);
  backdrop-filter: blur(14px);
}
.hero-card.dark .metric {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.hero-card.dark .metric strong { color: white; }
.hero-card.dark .metric span, .hero-card.dark p { color: rgba(255,255,255,.72); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 31px;
  line-height: 1;
}

.section {
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 64px);
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head p {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  padding: 28px;
  text-decoration: none;
  color: inherit;
  border-top: 8px solid var(--blue);
}
.card:hover {
  transform: translateY(-2px);
  transition: transform .15s ease;
}
.card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card p { color: var(--muted); }

.feed-status {
  display: grid;
  gap: 12px;
  padding: 22px;
}
.feed-status span { color: var(--muted); font-weight: 700; }
.feed-status strong { color: var(--blue); font-size: 28px; }

.stories,
.brief-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}
.story {
  overflow: hidden;
}
.story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--blue-soft);
}
.story-body { padding: 22px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.story a { text-decoration: none; color: var(--blue); }
.story p { color: var(--muted); }
.story.small {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.story.small img, .fallback {
  height: 100%;
  aspect-ratio: auto;
}
.fallback {
  display: grid;
  min-height: 150px;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}
.stack { display: grid; gap: 18px; }

.article-list {
  display: grid;
  gap: 14px;
}
.brief-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(18,42,72,.06);
}
.brief-row .fallback {
  min-height: 142px;
  height: 100%;
}

.foreclosure-intel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 50px rgba(18,42,72,.08);
}
.foreclosure-intel p { color: var(--muted); }
.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-magnet {
  background: white;
  border-bottom: 1px solid var(--line);
}
.lead-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.lead-split p { color: var(--muted); }
.signal-stat-grid .pulse-mini {
  min-height: 190px;
}

.ticker-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
  background: var(--blue-dark);
  color: white;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-chip {
  min-width: 168px;
  padding: 16px 22px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.ticker-chip b {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
}
.ticker-chip em {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.68);
  font-style: normal;
  font-size: 12px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.market-tape-shell {
  overflow: hidden;
  border: 1px solid #bfcfe0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 55px rgba(18,42,72,.12);
}
.market-tape-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #061827;
  color: white;
  font-weight: 900;
}
.market-tape {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}
.market-tile {
  min-height: 190px;
  padding: 22px 18px;
  border-right: 1px solid #ccd8e6;
  border-bottom: 1px solid #ccd8e6;
  background: white;
}
.market-tile span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.market-tile strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1;
}
.market-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.market-tile svg {
  width: 100%;
  height: 58px;
  margin-top: 16px;
}
.market-tile polyline {
  fill: none;
  stroke: #0053a6;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-tile em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}
.market-tile.up em { color: var(--green); }
.market-tile.down em { color: var(--red); }

.pulse-board {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 14px;
}
.pulse-main {
  grid-row: span 2;
  min-height: 340px;
  padding: 28px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(150deg, rgba(7,55,99,.98), rgba(0,83,166,.78)),
    url("https://trerc.tamu.edu/wp-content/uploads/2026/09/Home-Equity-The-338-featured-image-400x300.jpg") center / cover;
  box-shadow: 0 24px 50px rgba(18,42,72,.16);
}
.pulse-main strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 112px;
  line-height: .85;
  margin: 18px 0 6px;
}
.pulse-main span {
  display: block;
  color: rgba(255,255,255,.82);
  font-weight: 900;
}
.pulse-mini {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 35px rgba(18,42,72,.08);
}
.pulse-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pulse-mini strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 36px;
}
.pulse-mini small {
  display: block;
  color: var(--green);
  font-weight: 900;
}

.watchlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.watch-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(18,42,72,.08);
}
.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
}
.watch-top strong {
  font-size: 28px;
}
.watch-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.watch-meter {
  height: 12px;
  margin: 20px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}
.watch-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
}
.watch-stats {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.funnel-band {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.funnel-bridge {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 22px 50px rgba(18,42,72,.08);
}
.funnel-bridge.compact {
  grid-template-columns: 1fr 360px;
}
.funnel-bridge p {
  color: var(--muted);
  max-width: 640px;
}
.funnel-bridge .btn {
  margin-top: 10px;
}
.funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.funnel-steps article,
.worksheet-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(18,42,72,.07);
}
.funnel-steps span,
.worksheet-card span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--blue);
  font-weight: 900;
}
.funnel-steps strong,
.worksheet-card strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.15;
}
.funnel-steps small,
.worksheet-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 700;
}
.worksheet-card .btn {
  width: 100%;
  margin-top: 18px;
}

.visual-band {
  background: #eaf2fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-panel {
  padding: 24px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdff;
}
.tile span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tile strong {
  display: block;
  color: var(--blue);
  font-size: 29px;
  margin-top: 8px;
}
.tile small { color: var(--muted); font-weight: 700; }
.up strong, .up small { color: var(--green); }
.down strong, .down small { color: var(--red); }

.deal-board {
  display: grid;
  gap: 18px;
}
.deal-visual {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}
.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 55px rgba(18,42,72,.14);
}
.property-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.property-card-body {
  padding: 24px;
}
.property-card-body h3 {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--blue-dark);
  font-size: 34px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.mini-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}
.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-stats strong {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 24px;
}
.deal-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(120px, .55fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.deal-row > div {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.deal-row > div:last-child { border-right: 0; }
.deal-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.deal-row strong {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.12;
}
.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--blue);
  font-weight: 900;
}

.cta-band {
  background: var(--blue);
  color: white;
}
.cta-band .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.cta-band p { color: rgba(255,255,255,.78); max-width: 620px; }

footer {
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero-inner, .grid-2, .stories, .brief-layout, .cta-band .section-inner, .foreclosure-intel, .lead-split, .funnel-bridge, .funnel-bridge.compact { grid-template-columns: 1fr; display: grid; }
  .section-head { display: block; }
  .grid-3, .tile-grid, .market-tape, .pulse-board, .deal-visual, .intel-grid, .watchlist, .funnel-steps { grid-template-columns: 1fr; }
  .deal-row { grid-template-columns: 1fr; }
  .deal-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .deal-row > div:last-child { border-bottom: 0; }
  .story.small { grid-template-columns: 1fr; }
  .brief-row { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .pulse-main strong { font-size: 82px; }
}
