:root {
  --bg: #0A0F1A;
  --bg-deeper: #060912;
  --surface: #111B2B;
  --gold: #D4A547;
  --gold-soft: rgba(212, 165, 71, 0.55);
  --gold-faint: rgba(212, 165, 71, 0.15);
  --ink: rgba(255, 255, 255, 0.92);
  --ink-soft: rgba(255, 255, 255, 0.65);
  --ink-faint: rgba(255, 255, 255, 0.35);
  --ink-ghost: rgba(255, 255, 255, 0.12);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 165, 71, 0.03) 0%, transparent 70%),
    var(--bg);
}

/* ═══ NAV ═══ */
.bar {
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--ink-ghost);
  position: sticky;
  top: 0;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.wordmark {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
}

.bar-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.bar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s ease;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 0.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--gold);
}
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

/* ═══ CONTACT REVEAL PANEL ═══ */
.contact-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 40;
}
.contact-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 92vw);
  background: linear-gradient(180deg, #0C1322 0%, #080E18 100%);
  border-left: 0.5px solid var(--gold-faint);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.contact-panel.open {
  transform: translateX(0);
}

.contact-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: 0.5px solid var(--ink-ghost);
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.contact-inner {
  padding: 100px 56px 56px;
}

.contact-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-head {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 56px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-block-panel {
  padding-top: 24px;
  border-top: 0.5px solid var(--ink-ghost);
  background: none;
  border-radius: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: inherit;
  letter-spacing: normal;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.contact-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-val {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}

.contact-val a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-faint);
  transition: border-color 0.3s ease;
}
.contact-val a:hover {
  border-bottom-color: var(--gold);
}

/* ═══ PAGE LAYOUT ═══ */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--ink-ghost);
}

.intro {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 0.5px solid var(--ink-ghost);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

ul, ol {
  margin: 0 0 20px 22px;
}

li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
  padding-left: 6px;
}

li::marker {
  color: var(--ink-faint);
}

strong {
  color: var(--ink);
  font-weight: 500;
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-faint);
  transition: border-color 0.3s ease;
}

a:hover {
  border-bottom-color: var(--gold);
}

.callout {
  background: rgba(212, 165, 71, 0.04);
  border-left: 2px solid var(--gold);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}

.callout p:last-child { margin-bottom: 0; }

.contact-block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid var(--ink-ghost);
  padding: 24px 28px;
  border-radius: 6px;
  margin: 24px 0;
}

.contact-block a {
  color: var(--gold);
  border-bottom: none;
}

/* ═══ FOOTER ═══ */
.foot {
  border-top: 0.5px solid var(--ink-ghost);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.foot-copy {
  letter-spacing: 0.2em;
}

.foot-links a {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.3s ease;
}
.foot-links a:hover {
  color: var(--gold);
  border-bottom: none;
}

.foot-sep {
  color: var(--ink-ghost);
  padding: 0 8px;
}

/* ═══ TOC (for long legal docs) ═══ */
.toc {
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid var(--ink-ghost);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 28px;
}
.toc li {
  font-size: 13.5px;
  margin-bottom: 6px;
  break-inside: avoid;
}
.toc li a {
  color: var(--ink-soft);
  border-bottom: none;
}
.toc li a:hover { color: var(--gold); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 720px) {
  .bar { padding: 18px 22px; }
  .wordmark { font-size: 11px; letter-spacing: 0.28em; }
  .nav-link { font-size: 10px; letter-spacing: 0.24em; }
  .page { padding: 48px 22px 80px; }
  h1 { font-size: clamp(32px, 7vw, 44px); }
  .intro { font-size: 17px; }
  .toc ol { columns: 1; }
  .foot {
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px 20px;
    text-align: center;
  }
  .contact-panel {
    width: 100vw;
    border-left: none;
  }
  .contact-inner {
    padding: 84px 28px 48px;
  }
  .contact-head {
    margin-bottom: 40px;
  }
}
