/* Midas Private Capital — ledger-dark
   ink #08090A · panel #0E1012 · rule #1D2024 · paper #E7E4DE · muted #8A8880 · brass #C6A253 */

:root {
  --ink: #08090a;
  --ink-2: #0e1012;
  --rule: #1d2024;
  --rule-soft: #16181b;
  --paper: #e7e4de;
  --muted: #8a8880;
  --muted-2: #6b6963;
  --brass: #c6a253;
  --brass-soft: rgba(198, 162, 83, 0.16);
  --brass-line: rgba(198, 162, 83, 0.32);
  --danger: #d98a72;

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1080px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* display:grid on .form would otherwise beat the [hidden] attribute. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Ruled-ledger hairlines, barely there, under a single brass glow at the top. */
  background-image:
    radial-gradient(80ch 40ch at 50% -6ch, rgba(198, 162, 83, 0.09), transparent 70%),
    repeating-linear-gradient(to bottom, rgba(231, 228, 222, 0.022) 0 1px, transparent 1px 34px);
  background-attachment: fixed;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--brass); color: var(--ink); padding: 0.7rem 1.1rem;
  font: 500 0.9rem var(--sans); border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

a { color: inherit; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Masthead ─────────────────────────────────────────────── */

.masthead { border-bottom: 1px solid var(--rule-soft); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.masthead__note {
  font: 500 0.68rem var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
}

.wordmark { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; }
.wordmark__name {
  font: 400 1.32rem/1 var(--display);
  letter-spacing: 0.01em;
}
.wordmark__rule { width: 18px; height: 1px; background: var(--brass-line); transform: translateY(-4px); }
.wordmark__sub {
  font: 500 0.62rem var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.wordmark--small .wordmark__name { font-size: 1.1rem; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding-block: clamp(3.5rem, 11vh, 7rem) clamp(3rem, 8vh, 5.5rem); }
.hero__inner { max-width: 820px; margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border: 1px solid var(--brass-line);
  border-radius: 999px;
  background: var(--brass-soft);
  font: 500 0.7rem var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; color: #dcc286;
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 0 3px rgba(198, 162, 83, 0.18);
}

.hero__title {
  margin: 0 0 1.35rem;
  font: 300 clamp(2.2rem, 5.6vw, 3.55rem)/1.08 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: #f3efe6;
}

.hero__lede {
  margin: 0 auto 2.6rem;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ── Card + form ──────────────────────────────────────────── */

.card {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  text-align: left;
  background: linear-gradient(180deg, #101215, #0b0d0f);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.card::before {
  content: ""; position: absolute; inset-inline: clamp(1.5rem, 4vw, 2.1rem); top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-line), transparent);
}

.form { display: grid; gap: 1.05rem; margin: 0; }

.field { display: grid; gap: 0.42rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field label {
  font: 500 0.7rem var(--sans);
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
}

.field input,
.select select {
  width: 100%;
  background: #08090a;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  color: var(--paper);
  font: 400 0.98rem var(--sans);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field input::placeholder { color: #4c4a46; }
.field input:hover,
.select select:hover { border-color: #2a2e33; }
.field input:focus,
.select select:focus { outline: none; border-color: var(--brass-line); background: #0a0c0e; }
.field input:focus-visible,
.select select:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.field[data-invalid] input,
.field[data-invalid] .select select { border-color: rgba(217, 138, 114, 0.55); }

.select { position: relative; }
.select select { appearance: none; padding-right: 2.4rem; cursor: pointer; }
.select select:invalid { color: #4c4a46; }
.select select option { background: #0e1012; color: var(--paper); }
.select__chevron {
  position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.field__error, .form__error {
  margin: 0; min-height: 0;
  color: var(--danger); font-size: 0.82rem;
}
.field__error:empty, .form__error:empty { display: none; }
.form__error { margin-top: -0.3rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 0.35rem;
  padding: 0.92rem 1.2rem;
  border: 1px solid #d8b768;
  border-radius: 8px;
  background: linear-gradient(180deg, #d5b164, #bd9743);
  color: #14100a;
  font: 600 0.95rem var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -14px rgba(198, 162, 83, 0.8); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn--ghost {
  width: auto;
  background: transparent;
  border-color: var(--brass-line);
  color: #dcc286;
}
.btn--ghost:hover { background: var(--brass-soft); box-shadow: none; }

.form__note {
  margin: 0.2rem 0 0;
  color: var(--muted-2);
  font-size: 0.8rem; line-height: 1.55;
}

.done { text-align: center; padding: 0.6rem 0 0.3rem; }
.done__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 1rem;
  border: 1px solid var(--brass-line); border-radius: 50%;
  background: var(--brass-soft); color: var(--brass);
}
.done__mark svg { width: 20px; height: 20px; }
.done__title { margin: 0 0 0.6rem; font: 300 1.6rem/1.2 var(--display); }
.done__body { margin: 0 auto; max-width: 40ch; color: var(--muted); font-size: 0.94rem; }

.proof { margin: 1.5rem 0 0; color: var(--muted-2); font-size: 0.85rem; }
.proof__count { color: var(--paper); font-family: var(--mono); font-size: 0.85rem; }

/* ── Section heads ────────────────────────────────────────── */

.section-head { margin-bottom: 2rem; }
.section-head__tag {
  display: block; margin-bottom: 0.7rem;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
}
.section-head__title {
  margin: 0;
  font: 300 clamp(1.6rem, 3.6vw, 2.15rem)/1.15 var(--display);
  letter-spacing: -0.01em;
}

/* ── Ledger (the signature) ───────────────────────────────── */

.ledger { padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--rule-soft); }

.ledger__panel {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--ink-2);
  overflow: hidden;
}

.ledger__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: #0b0d0f;
}
.ledger__bar-label {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.ledger__lock {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--brass-line); border-radius: 999px;
  color: #dcc286;
  font: 500 0.66rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.ledger__lock svg { width: 12px; height: 12px; }

/* A five-column table has a floor width; let it scroll rather than push the page. */
.ledger__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger__table { width: 100%; min-width: 480px; border-collapse: collapse; }
.ledger__table th {
  padding: 0.8rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font: 500 0.68rem var(--sans);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2);
  white-space: nowrap;
}
.ledger__table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger__table tr:last-child td { border-bottom: 0; }
.ledger__table .num { text-align: right; }

/* Redaction bar: the withheld value, sized to the text it replaces. */
.redact {
  display: inline-block;
  width: var(--w, 8ch);
  max-width: 100%;
  height: 0.95em;
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, #24272c 0 6px, #1b1e22 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(198, 162, 83, 0.16);
  vertical-align: -0.1em;
}

.ledger__caption {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--rule);
  background: #0b0d0f;
  color: var(--muted-2);
  font-size: 0.78rem;
}

/* ── Steps ────────────────────────────────────────────────── */

.steps { padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--rule-soft); }
.steps__list {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
.step { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.step__n {
  display: block; margin-bottom: 0.8rem;
  font: 500 0.72rem var(--mono); letter-spacing: 0.14em; color: var(--brass);
}
.step__title { margin: 0 0 0.5rem; font: 400 1.15rem/1.2 var(--display); }
.step__body { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── Closer ───────────────────────────────────────────────── */

.closer { padding-block: clamp(3rem, 8vh, 4.5rem); border-top: 1px solid var(--rule-soft); }
.closer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem;
}
.closer__line {
  margin: 0;
  font: 300 clamp(1.35rem, 3.4vw, 1.9rem)/1.25 var(--display);
  letter-spacing: -0.01em;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer { padding-block: 2.4rem 3rem; border-top: 1px solid var(--rule); background: #060708; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem;
}
.footer__mail { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.footer__mail:hover { color: var(--paper); }
.footer__legal {
  margin: 0 0 1.4rem;
  max-width: 78ch;
  color: var(--muted-2);
  font-size: 0.74rem; line-height: 1.7;
}
.footer__todo { color: var(--brass); }
.footer__copy { margin: 0; color: var(--muted-2); font-size: 0.74rem; }

/* ── Entrance ─────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal[data-reveal="1"] { animation-delay: 0.05s; }
.reveal[data-reveal="2"] { animation-delay: 0.14s; }
.reveal[data-reveal="3"] { animation-delay: 0.24s; }
.reveal[data-reveal="4"] { animation-delay: 0.34s; }
.reveal[data-reveal="5"] { animation-delay: 0.46s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 620px) {
  .masthead__note { display: none; }
  .ledger__table { min-width: 380px; }
  .ledger__table th:nth-child(4), .ledger__table td:nth-child(4) { display: none; }
  .closer__inner { flex-direction: column; align-items: flex-start; }
  .btn--ghost { width: 100%; }
}
