.home-page {
  --home-ink: #17231e;
  --home-paper: #f2f3ee;
  --home-card: #fbfcf8;
  --home-green: #0d6740;
  --home-green-dark: #0a3425;
  --home-blue: #225f94;
  --home-orange: #c45324;
  --home-line: rgba(23, 35, 30, 0.16);
  background:
    linear-gradient(rgba(13, 103, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 103, 64, 0.035) 1px, transparent 1px),
    var(--home-paper);
  background-size: 28px 28px;
  color: var(--home-ink);
  font-family: "Barlow", "Franklin Gothic Medium", sans-serif;
}

.home-page .topnav {
  background: rgba(251, 252, 248, 0.96);
  border-bottom: 1px solid var(--home-line);
  backdrop-filter: blur(12px);
}

.home-page .nav-brand {
  color: var(--home-green-dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.home-page .nav-item > a,
.home-page .nav-item > span {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
}

.home-page .container {
  max-width: 1380px;
  padding: 22px 24px 34px;
}

.home-shell {
  width: 100%;
}

.market-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  min-height: 236px;
  overflow: hidden;
  color: #f8f7ef;
  background:
    radial-gradient(circle at 85% 20%, rgba(68, 165, 110, 0.2), transparent 35%),
    linear-gradient(125deg, #0a2d21 0%, #0d432f 60%, #0c3527 100%);
  border-radius: 4px 4px 22px 4px;
  box-shadow: 0 18px 55px rgba(8, 42, 30, 0.18);
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 55%);
}

.market-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: var(--home-orange);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px 42px 22px;
}

.hero-kicker,
.section-number {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 247, 239, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68d391;
  box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.14);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 13px 0 9px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 650px;
  color: rgba(248, 247, 239, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.hero-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hero-button-primary {
  border-color: #f1efe4;
  background: #f1efe4;
  color: var(--home-green-dark);
}

.hero-button-primary:hover {
  background: #fff;
}

.hero-button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-freshness {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  color: rgba(248, 247, 239, 0.54);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-freshness span:not(:last-child)::after {
  content: "/";
  position: relative;
  left: 10px;
  color: rgba(248, 247, 239, 0.25);
}

.market-scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: stretch;
  margin: 16px 16px 16px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 3px 3px 16px 3px;
  background: rgba(2, 23, 16, 0.28);
}

.score {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  transition: background 160ms ease;
}

.score:hover {
  background: rgba(255, 255, 255, 0.06);
}

.score-open {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.score-label {
  color: rgba(255, 255, 255, 0.67);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.score strong {
  margin: 3px 0 1px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.score-open strong {
  color: #f2b38f;
}

.score-pipeline strong {
  color: #9ed9b7;
}

.score > span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.score-total {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.market-switchboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 18px;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.market-link {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 18px;
  color: var(--home-ink);
  text-decoration: none;
  border-top: 4px solid transparent;
}

.market-link:not(:last-child) {
  border-right: 1px solid var(--home-line);
}

.market-link:hover {
  background: rgba(255, 255, 255, 0.58);
}

.market-index {
  color: rgba(23, 35, 30, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.market-link strong,
.market-link small {
  display: block;
}

.market-link strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.market-link small {
  margin-top: 3px;
  color: rgba(23, 35, 30, 0.58);
  font-size: 11px;
}

.market-link-construction strong {
  color: var(--home-green);
}

.market-link-construction {
  border-top-color: var(--home-green);
  background: rgba(23, 121, 80, 0.055);
}

.market-link-professional strong {
  color: var(--home-blue);
}

.market-link-professional {
  border-top-color: var(--home-blue);
  background: rgba(35, 102, 153, 0.055);
}

.market-arrow {
  font-size: 18px;
  transition: transform 140ms ease;
}

.market-link:hover .market-arrow {
  transform: translateX(4px);
}

.home-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.bid-brief,
.pipeline-panel {
  min-width: 0;
  border: 1px solid var(--home-line);
  background: var(--home-card);
}

.bid-brief {
  box-shadow: 0 12px 38px rgba(26, 45, 36, 0.08);
}

.section-masthead {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: end;
  gap: 24px;
  padding: 22px 24px 19px;
  border-bottom: 3px solid var(--home-green-dark);
}

.section-number {
  color: rgba(23, 35, 30, 0.5);
}

.section-masthead h2,
.pipeline-head h2,
.corridor-intro h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.section-masthead h2 {
  margin-top: 7px;
  font-size: 38px;
}

.section-masthead p {
  margin-top: 4px;
  color: rgba(23, 35, 30, 0.58);
  font-size: 12px;
}

.masthead-stats {
  display: flex;
  gap: 14px;
  padding-bottom: 3px;
  color: rgba(23, 35, 30, 0.6);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.masthead-stats strong {
  color: var(--home-ink);
  font-size: 12px;
}

.section-link {
  padding-bottom: 2px;
  color: var(--home-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover,
.pipeline-link:hover {
  text-decoration: underline;
}

.brief-date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--home-line);
  background: #e8ece6;
  color: var(--home-green-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.brief-date-heading small {
  color: rgba(23, 35, 30, 0.48);
  font-size: 9px;
  font-weight: 500;
}

.brief-date-urgent {
  border-left: 5px solid var(--home-orange);
  background: #f4e7df;
  color: #8f3613;
}

.brief-date-soon {
  border-left: 5px solid #d8942d;
  background: #f5eddf;
  color: #6c480f;
}

.brief-date-undated {
  border-left: 5px solid #7d8680;
}

.brief-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  min-height: 78px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(23, 35, 30, 0.1);
  transition: background 120ms ease;
}

.brief-row:last-child {
  border-bottom: 0;
}

.brief-row:hover {
  background: #f3f5ef;
}

.brief-type {
  align-self: start;
  margin-top: 2px;
  padding: 7px 8px 6px;
  border-radius: 2px;
  background: var(--home-green);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.brief-row-professional_services .brief-type {
  background: var(--home-blue);
  color: #fff;
}

.brief-row-other .brief-type,
.brief-row-uncategorized .brief-type {
  background: #7d6a3f;
  color: #fff;
}

.brief-body {
  min-width: 0;
}

.brief-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-ink);
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.brief-title:hover {
  color: var(--home-green);
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 6px;
  color: rgba(23, 35, 30, 0.58);
  font-size: 10px;
  line-height: 1.25;
}

.brief-meta > span:not(:last-child)::after {
  content: "/";
  position: relative;
  left: 6px;
  color: rgba(23, 35, 30, 0.24);
}

.brief-contract,
.brief-platform,
.pipeline-window {
  font-family: "IBM Plex Mono", monospace;
}

.brief-platform {
  color: #6c4b18;
}

.brief-map {
  color: var(--home-blue);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brief-arrow {
  color: rgba(23, 35, 30, 0.38);
  font-size: 19px;
  text-decoration: none;
  transition: color 120ms ease, transform 120ms ease;
}

.brief-row:hover .brief-arrow {
  color: var(--home-green);
  transform: translateX(3px);
}

.brief-empty {
  padding: 28px;
  color: rgba(23, 35, 30, 0.6);
}

.pipeline-panel {
  position: sticky;
  top: 68px;
  overflow: hidden;
  border-color: rgba(94, 63, 24, 0.22);
  border-radius: 0 0 18px 0;
  background: #e9e2d5;
}

.pipeline-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(94, 63, 24, 0.22);
  background:
    linear-gradient(rgba(122, 83, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 83, 33, 0.08) 1px, transparent 1px),
    #e5ddce;
  background-size: 20px 20px;
}

.pipeline-head h2 {
  margin: 10px 0 8px;
  color: #49351e;
  font-size: 36px;
}

.pipeline-head p {
  color: rgba(73, 53, 30, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.pipeline-tally {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 12px;
  padding: 15px 22px;
  border-bottom: 3px solid #6e4a23;
  color: #49351e;
}

.pipeline-tally strong {
  grid-row: 1 / 3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 52px;
  line-height: 0.9;
}

.pipeline-tally span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.pipeline-tally small {
  color: rgba(73, 53, 30, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.pipeline-row {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(94, 63, 24, 0.16);
}

.pipeline-window {
  color: var(--home-orange);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.pipeline-type {
  padding: 3px 5px;
  border-radius: 2px;
  background: var(--home-green);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline-type-professional_services {
  background: var(--home-blue);
}

.pipeline-type-other,
.pipeline-type-uncategorized {
  background: #7d6a3f;
}

.pipeline-row > a {
  display: -webkit-box;
  overflow: hidden;
  color: #382817;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pipeline-row > a:hover {
  text-decoration: underline;
}

.pipeline-row > span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(73, 53, 30, 0.6);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-link {
  display: block;
  padding: 16px 18px;
  color: #49351e;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.corridor-board {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  margin-top: 26px;
  padding: 28px;
  color: #f7f5ec;
  background: var(--home-green-dark);
  border-radius: 3px 18px 3px 3px;
}

.corridor-intro h2 {
  margin: 10px 0 7px;
  font-size: 35px;
}

.corridor-intro p {
  color: rgba(247, 245, 236, 0.62);
  font-size: 12px;
}

.corridor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.corridor-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.corridor-grid a:hover {
  border-color: #95d2ae;
  background: rgba(255, 255, 255, 0.06);
}

.corridor-grid strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f2eee2;
  color: var(--home-green-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.home-utility {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 16px;
  background: var(--home-line);
  border: 1px solid var(--home-line);
}

.home-utility a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 17px;
  background: rgba(251, 252, 248, 0.82);
  color: var(--home-ink);
  text-decoration: none;
}

.home-utility a:hover {
  background: #fff;
}

.home-utility strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-utility span {
  color: rgba(23, 35, 30, 0.58);
  font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .market-hero,
  .market-switchboard,
  .home-workspace,
  .corridor-board {
    animation: home-rise 420ms both;
  }

  .market-switchboard { animation-delay: 70ms; }
  .home-workspace { animation-delay: 120ms; }
  .corridor-board { animation-delay: 170ms; }

  @keyframes home-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1060px) {
  .market-hero {
    grid-template-columns: 1fr 390px;
  }

  .hero-copy {
    padding-left: 36px;
    padding-right: 30px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .home-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(285px, 0.75fr);
  }

  .section-masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead-stats {
    display: none;
  }

  .corridor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-page .container {
    padding: 14px 14px 28px;
  }

  .market-hero,
  .home-workspace,
  .corridor-board {
    grid-template-columns: 1fr;
  }

  .market-hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 34px 28px 22px;
  }

  .market-scoreboard {
    min-height: 230px;
    margin: 0 18px 18px;
  }

  .market-switchboard {
    grid-template-columns: 1fr;
  }

  .market-link:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .pipeline-panel {
    position: static;
  }

  .corridor-board {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .hero-copy { padding: 18px 18px 12px; }
  .hero-kicker { font-size: 8px; }
  .hero-copy h1 { margin-top: 8px; }
  .hero-copy > p { display: none; }
  .hero-actions { flex-wrap: nowrap; gap: 6px; margin-top: 10px; }
  .hero-button { padding: 0 10px; font-size: 12px; min-height: 44px; }
  .hero-freshness { margin-top: 10px; font-size: 8px; gap: 4px; }
  .hero-freshness span:nth-child(2) { display: none; }
  .market-scoreboard { min-height: 0; margin: 0 12px 12px; }
  .score-total { display: none; }
  .market-switchboard { grid-template-columns: 1fr 1fr; }
  .market-link { grid-template-columns: 1fr auto; padding: 10px; gap: 5px; min-height: 60px; }
  .market-index, .market-link > .market-arrow { display: none; }
  .market-link:last-child { grid-column: 1 / -1; min-height: 44px; }
  .home-page .nav-brand {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-freshness span::after {
    display: none;
  }

  .market-scoreboard {
    grid-template-columns: 1fr 1fr;
  }

  .score {
    padding: 10px 12px;
  }

  .score strong {
    font-size: 36px;
  }

  .score-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
  }

  .section-masthead h2 {
    font-size: 34px;
  }

  .section-link {
    justify-self: start;
  }

  .brief-row {
    grid-template-columns: 1fr 20px;
    gap: 10px;
    padding: 13px 14px;
  }

  .brief-type {
    grid-column: 1 / -1;
    width: max-content;
    margin: 0 0 -2px;
  }

  .brief-title {
    font-size: 13px;
  }

  .brief-date-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 9px 14px;
  }

  .corridor-board {
    padding: 22px 18px;
  }

  .corridor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-utility {
    grid-template-columns: 1fr;
  }

  .home-utility a {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
.feed-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #ccd4cc;
}
.feed-order select, .feed-order button {
  font: inherit;
  padding: 8px;
  border: 1px solid #496a59;
  background: #fafbf7;
  color: #123c2c;
}
.feed-order small { flex: 1 1 220px; }
.feed-help { font-size: 12px; flex: 1 1 180px; }
.feed-help summary { cursor: pointer; min-height: 28px; }
.feed-help small { display: block; max-width: 65ch; }
.brief-row > .shortlist-save { grid-column: 2; justify-self: start; }
@media (max-width: 560px) {
  .home-page .hero-copy { padding: 12px 14px 8px; }
  .home-page .hero-copy h1 { font-size: 26px; }
  .home-page .hero-actions { display: none; }
  .home-page .market-link:last-child { display: none; }
  .home-page .market-link { min-height: 48px; padding: 6px 10px; }
  .home-page .section-masthead { padding: 10px 14px; }
  .section-masthead p, .section-masthead .section-number { display: none; }
  .home-page .section-masthead h2 { font-size: 28px; }
  .feed-order { padding: 8px 12px; gap: 6px; }
  .feed-order label { display: flex; flex: 1; align-items: center; gap: 8px; font-size: 14px; }
  .feed-order select { font-size: 16px; min-height: 44px; min-width: 0; }
  .feed-order button { min-height: 44px; order: 2; }
  .feed-help { flex-basis: 100%; order: 3; }
  .brief-row > .shortlist-save { grid-column: 1; }
}
