:root {
  --bg: #0b0f0d;
  --bg-2: #121714;
  --paper: #f3eee3;
  --paper-2: #e7e0d2;
  --ink: #161310;
  --ink-soft: #5e584f;
  --ivory: #f6f2ea;
  --copper: #c4a36a;
  --copper-deep: #9a7a45;
  --line: rgba(196, 163, 106, 0.28);
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Unbounded", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ivory);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(196, 163, 106, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(90, 120, 90, 0.18), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: 0.9;
}

a { color: inherit; }
img { max-width: 100%; }

.top, .doc-shell, .home-shell, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand i {
  font-style: normal;
  color: var(--copper);
}
.docs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.docs a {
  text-decoration: none;
  color: rgba(246, 242, 234, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 999px;
}
.docs a:hover,
.docs a[aria-current="page"] {
  color: var(--bg);
  background: var(--copper);
}

.home-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 72px;
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.home-shell h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.06em;
}
.home-shell h1 span { display: block; color: var(--copper); }
.lede {
  max-width: 38rem;
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(246, 242, 234, 0.78);
}
.home-phone {
  margin: 28px 0 0;
}
.home-phone a {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--copper);
  text-decoration: none;
}
.home-phone a:hover { color: var(--ivory); }
.gates {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 14px;
  margin-top: 40px;
}
.gates:not([hidden]) {
  display: grid;
}
.gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,234,0.06), rgba(255,255,234,0.02));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.gate:hover { transform: translateY(-2px); border-color: var(--copper); }
.gate b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.gate span { color: rgba(246, 242, 234, 0.58); font-size: 14px; line-height: 1.4; }
.gate.primary { background: var(--copper); color: var(--bg); border-color: transparent; }
.gate.primary span { color: rgba(11, 15, 13, 0.7); }

.home-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(246, 242, 234, 0.45);
  font-size: 13px;
}
.home-meta strong { color: rgba(246, 242, 234, 0.82); font-weight: 600; }
.home-meta a { color: var(--copper); text-decoration: none; }

.doc-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 28px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.rail {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 6px;
  padding-top: 12px;
}
.rail a {
  text-decoration: none;
  color: rgba(246, 242, 234, 0.58);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
}
.rail a:hover { color: var(--ivory); }
.rail a[aria-current="page"] {
  color: var(--bg);
  background: var(--copper);
}

.paper {
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
}
.kicker {
  margin: 0 0 10px;
  color: var(--copper-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.paper h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.dek {
  margin: 18px 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 8px;
}
.chip {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  background: rgba(176, 137, 79, 0.14);
  border: 1px solid rgba(176, 137, 79, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
}
.chip a { color: inherit; }

.toc {
  margin: 32px 0 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(22, 19, 16, 0.04);
  display: grid;
  gap: 8px;
}
.toc b { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); }
.toc a { color: var(--ink); text-decoration: none; font-size: 14.5px; }
.toc a:hover { color: var(--copper-deep); }

.paper h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.paper h2 .n {
  color: var(--copper-deep);
  margin-right: 10px;
  font-size: 0.82em;
}
.paper p, .paper li {
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a261f;
}
.paper p { margin: 0 0 14px; }
.paper ul, .paper ol { margin: 0 0 16px; padding-left: 1.2em; }
.paper li + li { margin-top: 6px; }
.paper a { color: var(--copper-deep); }
.note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--copper);
  background: rgba(196, 163, 106, 0.12);
  border-radius: 0 16px 16px 0;
}

.operator {
  margin-top: 48px;
  padding: 22px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--ivory);
}
.operator h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 16px;
}
.operator a, .card a { color: var(--copper); }
.dl { display: grid; gap: 8px; }
.row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(246, 242, 234, 0.08);
  font-size: 14px;
}
.row:first-of-type { border-top: 0; }
.row dt { color: rgba(246, 242, 234, 0.5); }
.row dd { margin: 0; overflow-wrap: anywhere; }
.copy {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--copper);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.copy:hover { color: var(--ivory); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.card {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 22px;
  padding: 20px;
}
.card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 15px;
}
.card .row { grid-template-columns: 120px 1fr auto; }

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(246, 242, 234, 0.42);
  font-size: 13px;
}
.foot a { color: rgba(246, 242, 234, 0.72); text-decoration: none; }
.foot a:hover { color: var(--copper); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ivory);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .top { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 18px 8px; }
  .docs { justify-content: flex-start; }
  .home-shell { padding: 28px 18px 56px; }
  .gates { grid-template-columns: 1fr; }
  .doc-shell { grid-template-columns: 1fr; padding: 8px 18px 56px; }
  .rail { position: static; display: flex; overflow: auto; gap: 4px; padding: 0 0 8px; }
  .rail a { white-space: nowrap; }
  .paper { border-radius: 22px; }
  .row, .card .row { grid-template-columns: 1fr; gap: 2px; }
  .copy { justify-self: start; }
  .cards { grid-template-columns: 1fr; }
}

@media print {
  body, body::before { background: #fff; }
  .top, .rail, .foot, .copy, .gates { display: none !important; }
  .doc-shell { display: block; padding: 0; }
  .paper { box-shadow: none; padding: 0; }
}
