/* Elysium — relative-value desk */

:root {
  --bg: #0a1620;
  --bg-2: #0c1b27;
  --panel: #0f2130;
  --paper: #eae6db;
  --muted: #93a5aa;
  --dim: #7d9099;
  --line: rgba(234, 230, 219, 0.14);
  --line-strong: rgba(234, 230, 219, 0.26);
  --accent: #63b7a5;
  --accent-ink: #062019;
  --neg: #d08a72;
  --sans: "Inter Tight", Inter, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 40px);
  --z-nav: 20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--bg);
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--accent); }
.neg { color: var(--neg); }

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: var(--z-nav);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img { width: 26px; height: 26px; }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--line-strong); }
.desk-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
}
.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.sep { color: var(--dim); }
.desk-state .mono { font-size: 11px; }

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

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 28px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  line-height: 0.94;
  margin: 0;
  text-wrap: balance;
}
h1 .indent { display: inline-block; margin-top: 0.12em; }
@media (min-width: 1021px) {
  h1 .indent { margin-left: clamp(24px, 4.5vw, 72px); }
}
.lede {
  max-width: 46ch;
  color: #c3ccc9;
  font-size: 17px;
  line-height: 1.6;
  margin: 30px 0 0;
  text-wrap: pretty;
}

/* access form */

.access { margin: 34px 0 0; max-width: 520px; }
.access-row {
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.access input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}
.access input::placeholder { color: var(--dim); }
.access input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.access button {
  flex: 0 0 auto;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
}
.access button:hover { background: #7cc8b6; }
.form-note {
  min-height: 20px;
  font-size: 12.5px;
  color: var(--dim);
  margin: 10px 0 0;
}
.form-note.error { color: var(--neg); }
.form-note.ok { color: var(--accent); }

.hero-facts {
  display: flex;
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 520px;
}
.hero-facts > div {
  flex: 1 1 0;
  padding-right: 20px;
}
.hero-facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.hero-facts dt {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 4px;
}
.hero-facts dd {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

/* ---------- ticket ---------- */

.ticket {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ticket-head .mono { color: var(--paper); }
.ticket-sector { font-size: 12px; color: var(--dim); }

.legs { margin: 0; }
.leg {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.leg-side {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.leg-side.short { color: var(--neg); }
.leg-name { font-size: 24px; font-weight: 500; line-height: 1.1; }
.leg-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  text-align: right;
}

.spread { margin: 20px 0 0; }
.spread figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 8px;
}
.spread figcaption strong { font-size: 20px; font-weight: 500; color: var(--paper); }
.spread svg { width: 100%; height: auto; overflow: visible; }
.spread .zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.spread-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spread-dot { fill: var(--accent); }
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
}

.ticket-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.ticket-stats > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.ticket-stats > div { padding-right: 8px; }
.ticket-stats dt { font-size: 11px; color: var(--dim); }
.ticket-stats dd { margin: 3px 0 0; font-size: 16px; }

.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.roster button {
  font-family: var(--mono);
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 0;
  color: var(--dim);
}
.roster button:hover { border-color: var(--line-strong); color: var(--paper); }
.roster button.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--bg);
}

/* ---------- tape ---------- */

.tape {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tape::-webkit-scrollbar { display: none; }
.tape-in {
  display: flex;
  gap: 0;
  min-width: max-content;
}
.tape-in span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 11px 22px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.tape-in span:first-child { border-left: 0; padding-left: 0; }
.tape-in b { font-weight: 500; margin-left: 6px; }

/* ---------- board ---------- */

.board { padding: clamp(56px, 8vw, 104px) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
}

.table { border-top: 1px solid var(--line-strong); }
.trow, summary {
  display: grid;
  grid-template-columns: 118px 1.1fr 1.1fr 84px 56px 78px 76px;
  gap: 12px;
  align-items: center;
}
.thead {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.thead .r, .r { text-align: right; }

details.pair-row {
  border-bottom: 1px solid var(--line);
}
details.pair-row summary {
  list-style: none;
  padding: 16px 0;
  cursor: pointer;
}
details.pair-row summary::-webkit-details-marker { display: none; }
details.pair-row summary:hover { background: rgba(234, 230, 219, 0.03); }
details.pair-row summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.pair-cell { display: flex; align-items: baseline; gap: 8px; }
.pair-n { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.pair-sector { font-size: 14px; }
.c-long, .c-short { font-size: 15px; }
.c-long { font-weight: 500; }
.c-short { color: #c3ccc9; }
.c-spread, .c-z, .c-carry { font-size: 14px; text-align: right; }
.c-spark { display: flex; justify-content: flex-end; }
.c-spark svg { width: 64px; height: 22px; }
.pair-detail {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  padding: 4px 0 26px 130px;
}
.pair-detail p {
  margin: 0;
  max-width: 62ch;
  color: #c3ccc9;
  font-size: 14px;
  text-wrap: pretty;
}
.detail-facts {
  display: flex;
  gap: 28px;
  margin: 0;
}
.detail-facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-bottom: 3px;
}
.detail-facts dd { margin: 0; font-size: 14px; }
.board-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- mechanic ---------- */

.mechanic {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 104px) 0;
}
.mechanic-in {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
}
.mechanic-head p {
  max-width: 36ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step-n {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 5px;
}
.steps h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- claim ---------- */

.claim { padding: clamp(64px, 9vw, 120px) 0; }
.claim-in {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}
blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  text-wrap: balance;
}
blockquote em { color: var(--accent); font-style: italic; }
.claim-side p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.claim-stats {
  margin: 0;
  border-top: 1px solid var(--line);
}
.claim-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.claim-stats dt { font-size: 12.5px; color: var(--muted); }
.claim-stats dd { margin: 0; font-size: 17px; font-weight: 500; }

/* ---------- questions ---------- */

.questions { padding: 0 0 clamp(64px, 9vw, 112px); }
.questions-in {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--dim);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p {
  margin: 0;
  padding: 0 44px 20px 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- close ---------- */

.close {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--bg-2);
}
.close-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.close h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.close p { color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 42ch; text-wrap: pretty; }
.access-close { margin: 0; max-width: none; }

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

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-in {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.footer-in p { margin: 0; font-size: 12.5px; color: var(--dim); }
.footer-in p:last-child { margin-left: auto; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .ticket { max-width: 560px; }
  .leg-name { font-size: 22px; }
  .mechanic-in, .claim-in, .questions-in, .close-in { grid-template-columns: 1fr; gap: 36px; }
  .claim-in { align-items: start; }
  .close-in { align-items: start; }
  .pair-detail { padding-left: 0; grid-template-columns: 1fr; gap: 20px; }
  .nav { display: none; }
  .desk-state { margin-left: auto; }
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .lede { font-size: 16px; }
  .access-row { flex-direction: column; }
  .access button { padding: 14px 16px; }
  .hero-facts dd { font-size: 20px; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .trow, summary {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px 12px;
  }
  .thead { display: none; }
  .pair-cell { grid-column: 1 / 3; }
  .c-long { grid-column: 1; grid-row: 2; }
  .c-short { grid-column: 2; grid-row: 2; }
  .c-spread { grid-column: 3; grid-row: 1; }
  .c-z, .c-carry, .c-spark { display: none; }
  .pair-detail { padding-top: 0; }
  .detail-facts { flex-wrap: wrap; gap: 20px; }
  .desk-state .sep, .desk-state .mono { display: none; }
  .footer-in { flex-wrap: wrap; gap: 10px 20px; }
  .footer-in p:last-child { margin-left: 0; }
  .claim-stats { max-width: 420px; }
}

@media (max-width: 420px) {
  .brand { font-size: 16px; }
  .footer-in p { font-size: 12px; }
  .steps li { grid-template-columns: 38px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .spread-line, .spread-dot { transition: none; }
}

/* ---------- ca band ---------- */

.caband {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.caband-in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.ca-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  flex: 0 0 auto;
}
.ca-address {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ca-copy {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
}
.ca-copy:hover { color: var(--paper); border-color: var(--line-strong); }
.ca-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
