:root {
  --ink: #061018;
  --paper: #f4f1ea;
  --gold: #c9a56a;
  --muted: rgba(255,255,255,.78);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: #fff;
  background: #041018;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.stage {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

.bg {
  position: absolute; inset: 0;
  background: #041018 center/cover no-repeat;
  transform: scale(1.04);
  transition: background-image .6s ease;
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,24,.28) 0%, rgba(4,16,24,.55) 55%, rgba(4,16,24,.78) 100%);
}

.brand {
  position: absolute; top: 28px; left: 88px; z-index: 5;
  letter-spacing: .18em;
}
.brand b {
  display: block;
  font-weight: 600;
  font-size: 22px;
}
.brand span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .28em;
  opacity: .8;
}

.rail {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 6;
  width: 46px;
  display: flex; flex-direction: column;
}
.rail a {
  flex: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rail a:last-child { border-bottom: 0; }
.rail a[data-panel="overview"] { background: #1f4f86; }
.rail a[data-panel="investments"] { background: #c9a56a; color: #1b1408; }
.rail a[data-panel="trading"] { background: #2f6b4f; }
.rail a[data-panel="contact"] { background: #5b3d7a; }
.rail a.is-on { filter: brightness(1.15); box-shadow: inset 3px 0 0 #fff; }

.panel {
  position: absolute; inset: 0 0 0 46px;
  z-index: 4;
  display: none;
  padding: 120px 7vw 56px;
  align-items: flex-end;
}
.panel.is-on { display: flex; }
.panel .inner { max-width: 760px; }
.contact-panel { align-items: center; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: start;
  width: min(1000px, 100%);
  max-width: none;
}
.contact-grid form { margin-top: 0; max-width: none; }

.kicker {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  max-width: 16ch;
}
.lead {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.define {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 46ch;
}
.define b { color: #fff; }
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
  max-width: 760px;
}
.columns h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}
.columns p { color: var(--muted); font-size: 15.5px; }
.meta { margin-top: 26px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.contact-panel h1,
.contact-panel .lead,
.contact-panel .meta,
.contact-panel a {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.contact-lines {
  font-size: 20px;
  color: #fff;
}
form {
  display: grid; gap: 12px; margin-top: 0; max-width: 460px;
}
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid #fff;
  color: #081526;
  padding: 12px 12px;
  font: inherit;
  font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #4a5563; }
select { color: #081526; }
textarea { min-height: 110px; }
form button {
  width: fit-content;
  background: #fff;
  color: #061018;
  border: 0;
  padding: 12px 18px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}
.note { margin-top: 10px; font-size: 13px; color: #fff; }
.legal {
  position: absolute; right: 28px; bottom: 18px; z-index: 5;
  font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.45);
}

.burger {
  display: none;
  position: absolute; top: 22px; right: 18px; z-index: 8;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .stage { min-height: 100dvh; height: auto; }
  .rail {
    display: none;
    position: fixed; inset: 0 auto 0 0;
    width: min(72vw, 260px);
    z-index: 20;
  }
  .rail.open { display: flex; }
  .rail a { writing-mode: horizontal-tb; transform: none; }
  .panel { inset: 0; padding: 96px 22px 80px; }
  .brand { left: 20px; top: 22px; }
  .columns, .contact-grid { grid-template-columns: 1fr; }
  .burger { display: block; }
  .legal { left: 20px; right: 20px; }
}
