/* --------------------------------------------------------------
   Lavaca Capital — SPX Box Rates
   Styled to match lavacacapital.com:
   - khaki / night / copper palette
   - serif display (Adobe Typekit zkt5ymy with serif fallbacks)
   - thin copper accent rule under section headings
   - framed sections with copper borders top & bottom
   - dark "night" gradient for CTA/contact, with parchment backer overlay
   -------------------------------------------------------------- */

:root {
  /* KHAKI (warm cream → tan) */
  --khaki-lightest: #f8f4ec;
  --khaki-lighter:  #f1ead9;
  --khaki-light:    #e8dfc7;
  --khaki:          #d9ccaa;
  --khaki-dark:     #c7b68e;
  --khaki-darker:   #96866a;

  /* NIGHT (deep navy / charcoal) */
  --night-lighter:  #2d3a52;
  --night-light:    #1d2940;
  --night:          #151e32;
  --night-dark:     #0d1321;
  --night-darker:   #060b17;

  /* COPPER (accent) */
  --copper-light:   #d4a169;
  --copper:         #b07a3a;
  --copper-dark:    #8a5a24;

  --rule: var(--khaki-dark);

  --font-serif:
    "freight-display-pro", "freight-text-pro", "Source Serif 4",
    Georgia, "Times New Roman", serif;
  --font-sans:
    "freight-sans-pro", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --wrap-sm: 780px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(13, 19, 33, .06);
  --shadow-md: 0 6px 22px rgba(13, 19, 33, .10), 0 2px 6px rgba(13,19,33,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--night);
  background: var(--khaki-lighter);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

.scroll-smooth { scroll-behavior: smooth; }

.pt-20 { padding-top: 80px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------------- typography ---------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--night-dark);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 .6em;
}
h1, .display {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 400;
}
h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--night-dark); }
a { color: var(--copper-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--copper-light); }
em { font-style: italic; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--copper);
  margin: 0 0 1em;
}
.muted { color: var(--khaki-darker); }

/* Copper accent rule under section headings (same pattern as lavacacapital.com) */
.rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--copper);
  margin: 18px 0 26px;
  padding: 0;
}

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 50;
  background: linear-gradient(to bottom, var(--khaki-dark), var(--khaki));
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  height: 18px;
}
.brand .brand-mark { height: 18px; width: auto; }
.brand .brand-text { fill: var(--night-lighter); transition: fill .25s ease; }
.brand .brand-c path { fill: var(--copper-dark); transition: fill .25s ease; }
.brand:hover .brand-text,
.brand:hover .brand-c path { fill: var(--copper-light); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .82rem;
}
.site-nav a {
  color: var(--night-dark);
  font-weight: 500;
  letter-spacing: .01em;
}
.site-nav a:hover { color: var(--copper); }
.site-nav-cta {
  padding-left: 20px;
  border-left: 1px solid var(--khaki-darker);
  color: var(--copper-dark) !important;
  font-weight: 600;
}
.site-nav-switch {
  padding: 5px 12px;
  border: 1px solid var(--khaki-darker);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--copper-dark) !important;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.site-nav-switch:hover {
  background: var(--khaki-light);
  border-color: var(--copper);
  color: var(--copper-dark) !important;
}

@media (max-width: 860px) {
  .site-nav { gap: 18px; font-size: .78rem; }
  .site-nav-cta { display: none; }
}
@media (max-width: 600px) {
  .site-header { height: auto; padding: 14px 0; }
  .header-inner { flex-direction: column; gap: 10px; }
  .pt-20 { padding-top: 120px; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
}

/* ---------------- buttons ---------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--copper);
  color: var(--khaki-lightest);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--copper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .08s ease;
}
.button:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--khaki-lightest);
}
.button-ghost {
  background: transparent;
  color: var(--copper-dark);
  border-color: var(--copper);
}
.button-ghost:hover {
  background: var(--copper);
  color: var(--khaki-lightest);
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background: linear-gradient(to bottom, var(--khaki-lighter) 0%, var(--khaki-light) 100%);
  border-bottom: 1px solid var(--khaki);
}
.hero-backer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(176, 122, 58, .08), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(21, 30, 50, .08), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  text-align: center;
}
.hero h1 { margin: 0 auto .5em; max-width: 22ch; }
.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  color: var(--night);
  max-width: 62ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.lede strong { color: var(--night-dark); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 72px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--copper);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  color: var(--night-dark);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.1;
}
.stat-label {
  display: block;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--khaki-darker);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; padding-top: 32px; }
}

.scroll-indicator {
  display: block;
  width: 52px;
  height: 52px;
  margin: 56px auto 0;
}
.scroll-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border: 1px solid var(--copper);
  color: var(--copper);
  background: var(--khaki-light);
  border-radius: 50%;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.scroll-ring svg { width: 22px; height: 22px; }
.scroll-indicator:hover .scroll-ring {
  transform: translateY(6px);
  background: var(--copper);
  color: var(--khaki-darker);
}

/* ---------------- framed sections ---------------- */

.section { padding: 12px 0; }
.framed-inner {
  border-top: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
  padding: 96px 0 104px;
}
.section-alt {
  background: linear-gradient(to bottom, var(--khaki-lightest), var(--khaki-lighter));
}
.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head h2 { margin-bottom: 0; }
.section-head .rule { margin-top: 20px; }

/* ---------------- what is a box loan ---------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: start;
}
.grid-2 > div h2 { margin-bottom: 0; }
.grid-2 > div .rule { margin-top: 18px; }
.grid-2 p { font-size: 1.02rem; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
}

.benefits-card {
  background: var(--khaki-lightest);
  border: 1px solid var(--rule);
  padding: 32px 32px 28px;
  position: relative;
}
.benefits-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 48px; height: 4px;
  background: var(--copper);
}
.benefits-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 18px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--khaki);
  position: relative;
  font-size: .95rem;
  line-height: 1.55;
}
.check-list li:first-child { border-top: none; padding-top: 4px; }
.check-list li:last-child  { padding-bottom: 4px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px; height: 10px;
  border: 1px solid var(--copper);
  background: var(--khaki-lightest);
  transform: rotate(45deg);
}
.check-list li:first-child::before { top: 10px; }

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: var(--khaki-lightest);
  border: 1px solid var(--rule);
  padding: 32px 28px;
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 32px; height: 3px;
  background: var(--copper);
}
.steps h3 {
  margin: 16px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--night-dark);
  font-weight: 500;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--copper);
  color: var(--copper);
  background: var(--khaki-lightest);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
}
.steps p {
  font-size: .92rem;
  color: var(--night-lighter);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- rates ---------------- */

.rates-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--night);
  color: var(--khaki-lightest);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid transparent;
}
.pill-muted {
  background: transparent;
  color: var(--night);
  border: 1px solid var(--rule);
  font-weight: 500;
}
.pill.is-live {
  background: transparent;
  color: var(--copper-dark);
  border-color: var(--copper);
}
.pill.is-live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(176, 122, 58, .25);
  animation: pulse 1.8s infinite ease-in-out;
}
.pill.is-stale {
  background: transparent;
  color: var(--copper-dark);
  border-color: var(--khaki-darker);
}
.pill.is-closed {
  background: transparent;
  color: var(--night);
  border-color: var(--khaki-darker);
}
.market-banner {
  margin: 0 0 24px 0;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(176, 122, 58, .10);
  border: 1px solid var(--copper);
  color: var(--night);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* Owner-only "Refresh now" button rendered inside the market banner.
   Only shown when /api/rates returns is_owner=true (cookie-gated). */
.banner-refresh {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--copper);
  background: var(--khaki-lightest);
  color: var(--copper-dark);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.banner-refresh:hover:not(:disabled) {
  background: var(--copper);
  color: var(--khaki-lightest);
}
.banner-refresh:disabled {
  opacity: .55;
  cursor: progress;
}
.pill.is-error {
  background: #7a2b2b;
  color: var(--khaki-lightest);
  border-color: transparent;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: .55; }
}

.rates-convention-note {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--khaki-darker);
}

.view-switch {
  display: inline-flex;
  background: var(--khaki-lightest);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.switch-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  color: var(--khaki-darker);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.switch-btn.is-active {
  background: var(--night);
  color: var(--khaki-lightest);
}
.switch-btn:hover:not(.is-active) { color: var(--copper); }

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.rate-card {
  background: var(--khaki-lightest);
  border: 1px solid var(--rule);
  padding: 24px 22px 20px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rate-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 28px; height: 3px;
  background: var(--copper);
}
.rate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rate-card .tenor {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 4px;
}
.rate-card .tenor-days {
  letter-spacing: .08em;
  color: var(--khaki-darker);
  font-weight: 500;
  margin-left: 2px;
}
.rate-card .expiry {
  font-size: .78rem;
  color: var(--khaki-darker);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.rate-card .rate {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--night-dark);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.rate-card .rate .suffix {
  font-size: 1rem;
  color: var(--khaki-darker);
  margin-left: 4px;
  font-weight: 500;
}
.rate-card .rate-tey {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--copper-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.rate-card .rate-tey .suffix {
  font-size: .78rem;
  color: var(--khaki-darker);
  margin-left: 2px;
  font-weight: 500;
}
.rate-card .meta {
  font-size: .78rem;
  color: var(--khaki-darker);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--khaki);
}
.rate-card .delta { font-weight: 600; }
.rate-card .delta.is-better { color: #4a7a55; }
.rate-card .delta.is-worse  { color: #a6532c; }
.rate-card.is-empty { opacity: .45; }

.rate-card .quote-flag {
  margin-top: 8px;
  font-size: .72rem;
  color: var(--khaki-darker);
  font-style: italic;
  letter-spacing: .02em;
}
.rate-card .quote-flag.is-suspect {
  color: #a6532c;
  font-style: normal;
  font-weight: 600;
}
/* Missing-leg / unavailable-quote case — visually distinct from
   "suspect" because the system never got a usable NBBO at all
   (vs. it got one and the cross-tenor detector rejected it). Neutral
   tone since this is almost always a transient gap that the next
   snapshot refresh will fill in. */
.rate-card .quote-flag.is-missing {
  color: var(--khaki-darker);
  font-style: normal;
  font-weight: 600;
}

.rates-table tr.is-suspect-row td { background: rgba(166, 83, 44, .06); }
.quote-flag-inline {
  margin-left: 6px;
  font-size: .72rem;
  color: var(--khaki-darker);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.quote-flag-inline.is-suspect { color: #a6532c; font-weight: 700; }
.quote-flag-inline.is-missing {
  color: var(--khaki-darker);
  font-weight: 700;
  font-style: italic;
}

.details-table {
  border: 1px solid var(--rule);
  background: var(--khaki-lightest);
}
.details-table > summary {
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--night-dark);
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  list-style: none;
}
.details-table > summary::-webkit-details-marker { display: none; }
.details-table[open] > summary { border-bottom: 1px solid var(--rule); }

.table-scroll { overflow-x: auto; }
table.rates-table, table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.rates-table th, .rates-table td,
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--khaki);
  vertical-align: top;
}
.rates-table th {
  background: var(--khaki-light);
  color: var(--night-dark);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rates-table td.num, .rates-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rates-table tbody tr:last-child td { border-bottom: none; }

.compare-table thead th {
  background: var(--night-dark);
  color: var(--khaki-lightest);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  padding: 18px;
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--night-dark);
  width: 26%;
  font-family: var(--font-sans);
  font-size: .92rem;
}
.compare-table tbody tr:nth-child(odd) td,
.compare-table tbody tr:nth-child(odd) th { background: var(--khaki-lightest); }
.compare-table tbody tr:nth-child(even) td,
.compare-table tbody tr:nth-child(even) th { background: var(--khaki-light); }

.disclosure-line {
  margin-top: 22px;
  font-size: .8rem;
  color: var(--khaki-darker);
  max-width: 90ch;
  line-height: 1.6;
}

/* ---------------- payoff illustration ---------------- */

table.payoff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.payoff-table thead th {
  background: var(--night-dark);
  color: var(--khaki-lightest);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 14px 16px;
  text-align: right;
  vertical-align: bottom;
}
.payoff-table thead tr:first-child th {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--copper);
}
.payoff-table thead tr:nth-child(2) th { padding-top: 6px; }
.payoff-table thead th:first-child { text-align: left; }
.payoff-table tbody th {
  font-weight: 600;
  color: var(--night-dark);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--khaki);
  white-space: nowrap;
}
.payoff-table tbody td {
  text-align: right;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--khaki);
  color: var(--night-dark);
}
.payoff-table tbody tr:nth-child(odd) th,
.payoff-table tbody tr:nth-child(odd) td { background: var(--khaki-lightest); }
.payoff-table tbody tr:nth-child(even) th,
.payoff-table tbody tr:nth-child(even) td { background: var(--khaki-light); }
.payoff-table tbody tr.total-row th,
.payoff-table tbody tr.total-row td {
  background: var(--copper);
  color: var(--khaki-lightest);
  font-weight: 700;
  border-bottom: none;
  border-top: 2px solid var(--copper-dark);
}

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--rule);
  background: var(--khaki-lightest);
  padding: 18px 24px;
}
.faq summary {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--night-dark);
  cursor: pointer;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 36px;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--copper);
  border-bottom: 1.5px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq p { margin: 14px 0 0; color: var(--night); font-size: .95rem; }

/* ---------------- CTA / contact ---------------- */

.cta {
  position: relative;
  padding: 88px 0 80px;
  background: linear-gradient(to bottom, var(--night-light), var(--night-dark));
  color: var(--khaki-darker);
  overflow: hidden;
  text-align: center;
}
.cta-backer {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(176, 122, 58, .16), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.cta-eyebrow {
  color: var(--copper-light);
  margin-bottom: 14px;
}
.cta h2 {
  color: var(--khaki-lightest);
  margin: 0 0 22px;
}
.cta-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--copper);
  margin: 0 auto 22px;
}
.cta-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--khaki-darker);
  max-width: 56ch;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.cta-item {
  flex: 1;
  padding: 8px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.cta-item + .cta-item::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(176, 122, 58, .35);
}
.cta-item-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 700;
  color: var(--copper-light);
}
.cta-item a {
  color: var(--khaki-lightest);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.cta-item a:hover { color: var(--copper-light); }

@media (max-width: 640px) {
  .cta { padding: 64px 0 56px; }
  .cta-contacts {
    flex-direction: column;
    gap: 28px;
    max-width: 320px;
  }
  .cta-item { padding: 0; }
  .cta-item + .cta-item::before {
    top: -14px; bottom: auto;
    left: 20%; right: 20%; width: auto;
    height: 1px;
  }
}

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--night);
  color: var(--khaki-darker);
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  text-align: center;
}

.footer-brand {
  display: inline-block;
  width: 220px;
  max-width: 70%;
  margin-bottom: 32px;
}
.footer-brand svg { width: 100%; height: auto; }
.footer-brand .footer-copper { fill: var(--copper-dark); transition: fill .25s ease; }
.footer-brand .footer-khaki  { fill: var(--khaki-darker); transition: fill .25s ease; }
.footer-brand:hover .footer-copper,
.footer-brand:hover .footer-khaki { fill: var(--copper-light); }

.footer-disclosure {
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(150, 134, 106, .85);
  margin: 0 auto 32px;
  max-width: 62ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(150, 134, 106, .18);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--khaki-darker);
}
.footer-links a {
  color: var(--khaki-darker);
  position: relative;
}
.footer-links a:hover { color: var(--copper-light); }
.footer-links a::before {
  /* thin dot separator between items */
  content: "·";
  position: absolute;
  left: -14px;
  color: rgba(150, 134, 106, .5);
  pointer-events: none;
}
.footer-links a:first-child::before { content: none; }

/* ---------------- misc ---------------- */

::selection { background: var(--copper); color: var(--khaki-lightest); }
