/* ===========================================================
   PQTOKENIZATION.com — Disclosure Dossier design system
   Palette:  --ink (bg) · --paper (panels) · --amber (flag/CTA)
             --cipher (lattice/crypto accent) · --alert (gap stat)
   Type:     Fraunces (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   =========================================================== */

:root {
  --ink: #0b0e14;
  --ink-raised: #12161f;
  --paper: #f3efe4;
  --paper-line: #d9d1bb;
  --paper-ink: #15171c;
  --amber: #e0a04b;
  --amber-deep: #b97c2f;
  --cipher: #4fb8ae;
  --slate: #b7c0cc;
  --slate-dim: #7c8696;
  --alert: #c0524a;

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--cipher);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(183, 192, 204, 0.14);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  margin-right: auto;
}
.brand-mark { width: 26px; height: 26px; color: var(--cipher); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.brand-tld { color: var(--slate-dim); font-weight: 400; }

.site-nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.site-nav a { color: var(--slate-dim); transition: color 0.15s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ecb169; }
.btn-paper { background: var(--paper); color: var(--paper-ink); }
.btn-paper:hover { background: #fffdf7; }
.btn-ghost { border-color: rgba(183,192,204,0.35); color: var(--slate); }
.btn-ghost:hover { border-color: var(--cipher); color: var(--paper); }
.btn-large { padding: 14px 24px; font-size: 14px; }
.header-cta { flex-shrink: 0; }
@media (max-width: 760px) {
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .header-row { gap: 12px; }
  .brand-text { font-size: 12px; }
  .header-cta { padding: 9px 12px; font-size: 12px; }
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 14px;
}
.eyebrow-cipher { color: var(--cipher); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: var(--paper-ink);
  margin: 0 0 18px;
  max-width: 18ch;
}
.section-title-light { color: var(--paper); }

.section-lede {
  font-size: 17px;
  max-width: 62ch;
  color: #4a4d53;
  margin: 0 0 40px;
}
.section-lede-light { color: var(--slate); }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-ink { background: var(--ink); }
.section-paper { background: var(--paper); color: var(--paper-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 0%, #131826 0%, var(--ink) 60%);
}
.lattice-field {
  position: absolute;
  inset: 0;
  color: var(--cipher);
  opacity: 0.16;
  z-index: 0;
  animation: drift 40s linear infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12px, 8px) scale(1.02); }
}
.lattice-field svg { width: 100%; height: 100%; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 18px;
  color: var(--slate);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-sub strong { color: var(--paper); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 22px 28px;
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(183,192,204,0.18);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--paper);
}
.stat-num sup { font-size: 14px; top: -0.6em; }
.stat-num.alert { color: var(--alert); }
.stat-label { font-size: 12.5px; color: var(--slate-dim); line-height: 1.3; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero redaction card ---------- */
.hero-doc { display: flex; justify-content: center; padding-top: 8px; }
.redaction-card {
  background: var(--paper);
  color: var(--paper-ink);
  width: 100%;
  max-width: 340px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  transform: rotate(1.2deg);
  font-family: var(--font-mono);
  font-size: 13px;
}
.redaction-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-dim);
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.redaction-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--paper-line);
}
.redaction-row span:first-child { color: var(--slate-dim); }
.bar {
  display: inline-block;
  letter-spacing: -1px;
  color: #15171c;
  background: #15171c;
  border-radius: 2px;
  padding: 0 2px;
}
.redaction-card-foot {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--alert);
  letter-spacing: 0.04em;
}

/* ---------- Exhibit / Ledger ---------- */
.ledger {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffdf7;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1.4fr 1.5fr 1.6fr;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: none; border-right: none; border-top: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-head {
  background: #ece4cf;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-dim);
  cursor: default;
}
.ledger-row:not(.ledger-head):hover,
.ledger-row:not(.ledger-head):focus-visible {
  background: #efe9da;
}
.ledger-row > span { font-size: 14px; align-self: center; }
.ledger-row[role="row"]:not(.ledger-head) span[data-label="Institution"] strong { font-size: 14.5px; }

.redact-cell { font-family: var(--font-mono); font-size: 12.5px; }
.redact {
  display: inline-block;
  position: relative;
  color: transparent;
  background: var(--paper-ink);
  border-radius: 2px;
  padding: 2px 6px;
  transition: color 0.25s ease, background 0.25s ease;
}
.ledger-row:hover .redact,
.ledger-row:focus-visible .redact,
.ledger-row.revealed .redact {
  color: var(--alert);
  background: transparent;
}

.ledger-footnote {
  font-size: 13px;
  color: #6b6e74;
  margin-top: 18px;
  max-width: 70ch;
}
.ledger-footnote a { color: var(--amber-deep); text-decoration: underline; }

@media (max-width: 880px) {
  .ledger-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .ledger-head { display: none; }
  .ledger-row:not(.ledger-head) > span::before {
    content: attr(data-label) ": ";
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-dim);
    display: block;
    margin-bottom: 2px;
  }
}

/* ---------- Timeline / Clock ---------- */
.clock { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.clock-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(183,192,204,0.16);
}
.clock-item:first-child { border-top: none; }
.clock-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cipher);
  white-space: nowrap;
}
.clock-event { color: var(--slate); font-size: 15.5px; }
.clock-item-now { background: rgba(224,160,75,0.08); margin: 0 -20px; padding: 22px 20px; border-radius: var(--radius); border-top-color: transparent; }
.clock-item-now .clock-date { color: var(--amber); }
.clock-item-now .clock-event { color: var(--paper); }
@media (max-width: 620px) {
  .clock-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Buyer grid ---------- */
.buyer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.buyer-card {
  background: #fffdf7;
  padding: 26px 24px;
  flex: 1 1 250px;
}
.buyer-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--paper-ink);
}
.buyer-card p { font-size: 14.5px; color: #54575d; margin: 0; }

/* ---------- Positioning two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}
.positioning-copy p { font-size: 16px; margin: 0 0 18px; color: var(--slate); }
.positioning-copy strong { color: var(--paper); }
.positioning-copy em { color: var(--cipher); font-style: normal; }

/* ---------- Valuation ---------- */
.valuation-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .valuation-grid { grid-template-columns: 1fr; }
}
.valuation-range {
  background: #fffdf7;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.vr-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-dim); }
.vr-figure { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--amber-deep); }
.vr-note { font-size: 13px; color: #6b6e74; }

.valuation-method h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 14px; }
.valuation-method ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.valuation-method li { font-size: 15px; color: #44474d; padding-left: 18px; border-left: 2px solid var(--amber); }
.valuation-method strong { color: var(--paper-ink); }

.structures h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 18px; }
.structures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 48px; }
.structure-card { background: #fffdf7; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 20px; }
.sc-tag { font-family: var(--font-mono); font-size: 12px; color: var(--cipher-deep, var(--cipher)); }
.structure-card h4 { font-family: var(--font-display); font-size: 16.5px; margin: 8px 0 6px; }
.structure-card p { font-size: 13.5px; color: #5a5d63; margin: 0; }

.cta-block {
  background: var(--paper-ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 28px;
}
.cta-copy { display: flex; flex-direction: column; gap: 10px; }
.cta-block p { margin: 0; font-size: 14px; color: var(--slate); max-width: 40ch; }
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}
.inquiry-form label:has(textarea),
.inquiry-form button {
  grid-column: 1 / -1;
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(183,192,204,0.35);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--paper-ink);
  font: 15px/1.45 var(--font-body);
  padding: 11px 12px;
}
.inquiry-form textarea { resize: vertical; min-height: 126px; }
.hidden-field { display: none; }
@media (max-width: 820px) {
  .cta-block { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inquiry-form { grid-template-columns: 1fr; }
}

/* ---------- Sources ---------- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.sources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sources-list li {
  font-size: 13.5px;
  color: var(--slate-dim);
  padding-left: 16px;
  border-left: 1px solid rgba(183,192,204,0.3);
}
.disclaimer { font-size: 12.5px; color: var(--slate-dim); max-width: 80ch; border-top: 1px solid rgba(183,192,204,0.18); padding-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid rgba(183,192,204,0.14); padding: 32px 0 48px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-dim); }
.footer-links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 13px; }
.footer-links a { color: var(--slate-dim); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--cipher); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
