:root {
  --ink: #17211d;
  --muted: #65736c;
  --line: #dfe7e2;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --mist: #eef5f1;
  --sage: #708c7d;
  --teal: #1d8179;
  --copper: #bd7247;
  --blue: #587dbe;
  --shadow: 0 20px 60px rgba(35, 51, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(112, 140, 125, 0.2), transparent 34rem),
    linear-gradient(135deg, #fbfaf6 0%, #f4f8f5 42%, #fff9f1 100%);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 24px 0;
}

.brand,
.topbar nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 700;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 44px;
}

.topbar nav {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.topbar nav a {
  border-radius: 999px;
  padding: 10px 12px;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero,
.filters-band,
.signals,
.submit-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  min-height: calc(100vh - 64px);
  padding-bottom: 64px;
  padding-top: 72px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.85;
  margin-bottom: 28px;
  max-width: 760px;
}

h2 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.96;
  margin-bottom: 18px;
  max-width: 820px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lede {
  color: #3e4c45;
  font-size: 20px;
  line-height: 1.55;
  max-width: 650px;
}

.selection-note {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #4f6258;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  margin-bottom: 0;
  margin-top: 18px;
  max-width: 670px;
  padding: 14px 16px;
}

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

.primary-action,
.secondary-action,
.submit-form button {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-action,
.submit-form button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
}

.signal-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 241, 0.8)),
    repeating-linear-gradient(90deg, rgba(23, 33, 29, 0.05) 0 1px, transparent 1px 42px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: var(--shadow);
  min-height: 560px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.panel-header,
.result-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
}

.panel-header strong,
.result-meta span:first-child {
  color: var(--ink);
}

.orbit-map {
  aspect-ratio: 1;
  border: 1px solid rgba(112, 140, 125, 0.22);
  border-radius: 50%;
  margin: 28px auto;
  max-width: 390px;
  position: relative;
}

.orbit-map::before,
.orbit-map::after {
  border: 1px solid rgba(112, 140, 125, 0.18);
  border-radius: 50%;
  content: "";
  inset: 16%;
  position: absolute;
}

.orbit-map::after {
  inset: 31%;
}

.node {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.12);
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
  position: absolute;
  white-space: nowrap;
}

.node-large {
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  inset: 50% auto auto 50%;
  min-height: 68px;
  padding: 0 24px;
  transform: translate(-50%, -50%);
}

.node-a {
  left: 6%;
  top: 23%;
}

.node-b {
  right: 2%;
  top: 16%;
}

.node-c {
  bottom: 11%;
  left: 13%;
}

.node-d {
  bottom: 22%;
  right: 4%;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.metric-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}

.filters-band {
  padding-top: 32px;
}

.section-heading {
  margin-bottom: 30px;
}

.directory-controls {
  align-items: end;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto) 210px;
  padding: 16px;
}

.search-field,
.select-field,
.submit-form label {
  display: grid;
  gap: 8px;
}

.search-field span,
.select-field span,
.submit-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input,
.select-field select,
.submit-form input,
.submit-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.submit-form textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.search-field input:focus,
.select-field select:focus,
.submit-form input:focus,
.submit-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(29, 129, 121, 0.12);
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 14px;
}

.chip.active {
  background: #dcefe9;
  border-color: rgba(29, 129, 121, 0.28);
  color: #0e635d;
}

.result-meta {
  margin: 18px 2px;
}

.firm-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.firm-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(35, 51, 45, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 18px;
}

.firm-top {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.firm-logo {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 14px;
  color: #13211c;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.firm-logo img {
  display: block;
  max-height: 34px;
  max-width: 40px;
  object-fit: contain;
}

.firm-logo.fallback {
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.88));
}

.score {
  background: #f2f6f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.firm-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.firm-card h3 a {
  text-decoration-color: rgba(29, 129, 121, 0.25);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.firm-card h3 a:hover {
  color: var(--teal);
}

.firm-card p {
  color: var(--muted);
  line-height: 1.55;
}

.firm-summary {
  min-height: 98px;
}

.firm-proof {
  border-left: 3px solid var(--accent);
  color: #405149;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 18px;
  padding-left: 12px;
}

.built-for-line {
  background: rgba(238, 245, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #405149;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.built-for-line strong {
  color: var(--ink);
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row {
  margin-bottom: 16px;
}

.meta-row span,
.tag-row span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.meta-row span {
  background: #f4f1e9;
  color: #75543b;
}

.tag-row {
  margin-top: auto;
  padding-top: 18px;
}

.tag-row span {
  background: #eef5f1;
  color: #416255;
}

.signals {
  padding-top: 54px;
}

.signal-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.signal-list article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.signal-list article > span {
  color: var(--copper);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 28px;
}

.signal-list p,
.submit-band p {
  color: var(--muted);
  line-height: 1.6;
}

.submit-band {
  align-items: center;
  background: #17211d;
  border-radius: 24px 24px 0 0;
  color: #fff;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1fr;
  margin-top: 28px;
}

.submit-band .eyebrow {
  color: #96d9cf;
}

.submit-band p {
  color: #c7d4cf;
  max-width: 560px;
}

.submit-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.submit-form input,
.submit-form textarea {
  background: rgba(255, 255, 255, 0.95);
}

.submit-form button {
  background: #96d9cf;
  border-color: #96d9cf;
  color: #10231f;
  cursor: pointer;
}

.submit-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  color: #c7d4cf;
  font-size: 13px;
  line-height: 1.45;
  margin: 2px 0 0;
}

.form-status.success {
  color: #96d9cf;
}

.form-status.error {
  color: #ffc1ae;
}

.hidden-field {
  display: none;
}

.empty-state {
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .submit-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .signal-panel {
    min-height: auto;
  }

  .directory-controls {
    grid-template-columns: 1fr;
  }

  .firm-grid,
  .signal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .hero,
  .filters-band,
  .signals,
  .submit-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 36px;
    padding-top: 54px;
  }

  h1 {
    font-size: 64px;
  }

  .lede {
    font-size: 18px;
  }

  .metric-grid,
  .firm-grid,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .orbit-map {
    margin-left: -4px;
    margin-right: -4px;
  }

  .node {
    font-size: 11px;
    min-height: 36px;
    padding: 0 10px;
  }

  .node-large {
    font-size: 13px;
    min-height: 58px;
  }
}
