/* ==========================================================================
   VERITY LANE — MORTGAGE MARKETING TERMINAL
   Bloomberg × Stripe × Linear × Pangram Pangram
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-void: #050608;
  --bg-deep: #0A0C10;
  --bg-panel: #0E1116;
  --bg-grid: #15191F;
  --bg-row: #0F1217;
  --bg-row-alt: #131720;

  /* Ink */
  --ink: #E8EBF0;
  --ink-dim: #8A93A3;
  --ink-faint: #4B5260;
  --ink-mute: #2A2F37;

  /* Signal */
  --green: #00D67A;
  --green-dim: #00A35E;
  --red: #FF4D5E;
  --red-dim: #CC3D4B;
  --amber: #FFB020;
  --amber-dim: #CC8C1A;
  --cyan: #38E1FF;
  --cyan-dim: #1FA8C4;

  /* Borders */
  --brd: #1A1E26;
  --brd-bright: #2A2F37;

  /* Type */
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html {
  background: var(--bg-void);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

body {
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ==========================================================================
   SCANLINE OVERLAY (subtle CRT texture)
   ========================================================================== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ==========================================================================
   TICKER (rate tape at very top)
   ========================================================================== */
.ticker {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--brd);
  overflow: hidden;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.ticker__rail {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  gap: 2.5rem;
  padding-left: 2.5rem;
}
.ticker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  flex-shrink: 0;
}
.ticker__chip--brand { color: var(--amber); }
.ticker__sym { color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; }
.ticker__px { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__delta { font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__delta.up { color: var(--green); }
.ticker__delta.down { color: var(--red); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   STATUS BAR
   ========================================================================== */
.statusbar {
	position: sticky; top: 36px; z-index: 90;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--brd);
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-dim);
    letter-spacing: 0.04em;
}
.statusbar__left, .statusbar__right { display: flex; align-items: center; gap: 0.6rem; }
.statusbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.statusbar__sep { color: var(--ink-mute); }
.statusbar__txt { white-space: nowrap; }

/* ==========================================================================
   TOPBAR (header)
   ========================================================================== */
.topbar {
  position: sticky; top: 64px; z-index: 90;
  background: var(--bg-void);
  border-bottom: 1px solid var(--brd);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
}
.topbar__brand {
  display: flex; align-items: center; gap: 0.65rem;
}
.topbar__brand-mark {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--amber);
  background: var(--bg-grid);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  letter-spacing: -0.02em;
}
.topbar__brand-name {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.topbar__brand-dot { color: var(--amber); margin: 0 0.15rem; }
.topbar__brand-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding-left: 0.65rem;
  border-left: 1px solid var(--brd-bright);
}

.topbar__nav { display: flex; align-items: center; gap: 0.25rem; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: 4px;
}
.topbar__link:hover { color: var(--ink); background: var(--bg-grid); }
.topbar__link-num { color: var(--amber); font-weight: 600; }
.topbar__link-lbl { letter-spacing: 0.06em; }

.topbar__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--amber);
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-left: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px var(--amber);
}
.topbar__cta-arrow { font-weight: 800; }

/* ==========================================================================
   SECTION INDEX (common)
   ========================================================================== */
.section-index {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--brd-bright);
  border-radius: 4px;
  background: var(--bg-panel);
}
.section-index__num { font-weight: 800; font-size: 0.95rem; }
.section-index__total { color: var(--ink-faint); }
.section-index__lbl { color: var(--ink-dim); margin-left: 0.5rem; letter-spacing: 0.1em; }

.cursor-blink { animation: cursor-blink 1.1s steps(2) infinite; color: var(--amber); }
@keyframes cursor-blink { 50% { opacity: 0; } }

/* ==========================================================================
   REVEAL (content-first, no double-refresh)
   ========================================================================== */
.reveal-section { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js-loading .reveal-section:not(.is-visible) { opacity: 0; transform: translateY(20px); }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 5rem 2rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,176,32,0.06) 0%, transparent 60%),
    var(--bg-void);
  position: relative;
  border-bottom: 1px solid var(--brd);
}
.hero__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}

.hero__lhs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--brd);
  background: var(--bg-panel);
  padding: 1.25rem;
  border-radius: 6px;
}
.hero__index {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--brd-bright);
}
.hero__index:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__index:first-child { padding-top: 0; }
.hero__index-key { color: var(--ink-faint); letter-spacing: 0.1em; font-size: 0.65rem; }
.hero__index-val { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }

.hero__main { display: flex; flex-direction: column; gap: 1.75rem; }
.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.hero__h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.hero__h1-row { display: block; }
.hero__h1-row--accent {
  color: var(--amber);
  position: relative;
}
.hero__h1-row--accent::after {
  content: '_';
  margin-left: 0.1em;
  animation: cursor-blink 1.1s steps(2) infinite;
  color: var(--amber);
}

.hero__lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 56ch;
}
.hero__lede-prefix { color: var(--amber); font-family: var(--font-mono); font-weight: 700; }

/* Hero console */
.hero__console {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--brd-bright);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-width: 640px;
  transition: border-color 0.2s ease;
}
.hero__console:focus-within { border-color: var(--amber); }
.hero__console-prompt { color: var(--amber); font-weight: 700; flex-shrink: 0; }
.hero__console-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  caret-color: var(--amber);
}
.hero__console-input::placeholder { color: var(--ink-faint); }
.hero__console-cursor { color: var(--amber); font-weight: 700; }
.hero__console-submit {
    background: var(--amber);
    color: var(--bg-void);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
    transition: transform 0.15s ease;
}
.hero__console-submit:hover { transform: translateX(2px); }

.hero__chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.hero__chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  background: var(--bg-panel);
  border: 1px solid var(--brd-bright);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Hero right-side tape */
.hero__rhs { display: flex; flex-direction: column; }
.hero__tape {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.hero__tape-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px dashed var(--brd-bright);
}
.hero__tape-row:last-child { border-bottom: 0; }
.hero__tape-row .up { color: var(--green); font-weight: 700; }
.hero__tape-row .down { color: var(--red); font-weight: 700; }
.hero__tape-row .num { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero__scrollhint {
  display: flex; align-items: center; gap: 0.75rem;
  justify-content: center;
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}
.hero__scrollhint-arrow { animation: float 2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ==========================================================================
   PIPELINE / STATS
   ========================================================================== */
.pipeline {
  padding: 6rem 2rem;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--brd);
}
.pipeline__head { max-width: 1400px; margin: 0 auto 3rem; }
.pipeline__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.pipeline__h2-prefix { color: var(--cyan); }
.pipeline__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 70ch;
}
.pipeline__sub .hl { color: var(--amber); font-weight: 600; }

.pipeline__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

.pipeline__grid1 {
  max-width: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

/* Ledger table */
.ledger {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow: hidden;
}
.ledger__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 1.2fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--brd);
  transition: background 0.15s ease;
}

.ledger__row1 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 2.2fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--brd);
  transition: background 0.15s ease;
}

.ledger__row:hover { background: var(--bg-grid); }
.ledger__row:last-child { border-bottom: 0; }
.ledger__row:nth-child(even) { background: var(--bg-row-alt); }
.ledger__row:nth-child(even):hover { background: var(--bg-grid); }
.ledger__row--head {
  background: var(--bg-grid) !important;
  color: var(--ink-faint);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}
.ledger__key { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.ledger__val {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.ledger__delta { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.ledger__delta.up { color: var(--green); }
.ledger__delta.down { color: var(--red); }
.ledger__src { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.05em; }

/* Side panels */
.pipeline__side { display: flex; flex-direction: column; gap: 1.5rem; }
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  background: var(--bg-grid);
  border-bottom: 1px solid var(--brd);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.panel__head-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.panel__head-dot--amber { background: var(--amber); }
.panel__head-dot--cyan { background: var(--cyan); }
.panel__head-lbl { flex: 1; }
.panel__head-ts { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.panel__body { padding: 0.5rem 0; }
.panel__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-bottom: 1px dashed var(--brd-bright);
}
.panel__row:last-child { border-bottom: 0; }
.panel__row > span:first-child { color: var(--ink-faint); letter-spacing: 0.05em; }
.panel__row > span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.panel__row .up { color: var(--green); }
.panel__row .down { color: var(--red); }
.panel__row .num { color: var(--ink); font-variant-numeric: tabular-nums; }

.panel--cyan { border-color: rgba(56,225,255,0.3); }
.panel__row--lg { padding: 0.7rem 0.95rem; font-size: 0.82rem; }
.panel__row--lg a { color: var(--cyan); }

.panel__big {
  padding: 0.95rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.panel__sub {
  padding: 0 0.95rem 0.95rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

.panel__body--notes { padding: 0.95rem; }
.panel__body--notes p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.55;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--brd-bright);
}
.panel__body--notes p:last-child { border-bottom: 0; }

/* ==========================================================================
   INSTRUMENTS / SERVICES (ticker cards)
   ========================================================================== */
.instruments {
  padding: 6rem 2rem;
  background: var(--bg-void);
  border-bottom: 1px solid var(--brd);
}
.instruments__head { max-width: 1400px; margin: 0 auto 3rem; }
.instruments__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.instruments__h2-prefix { color: var(--cyan); }
.instruments__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 70ch;
}

.instruments__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.tick {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}
.tick::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tick:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.tick:hover::before { transform: scaleX(1); }

.tick__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--brd-bright);
}
.tick__sym {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.tick__name {
  font-size: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.tick__impact {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}
.tick__impact.up { color: var(--green); background: rgba(0,214,122,0.08); }

.tick__price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.tick__price-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tick__price-lbl {
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.tick__spark {
  height: 36px;
  width: 100%;
}
.tick__spark svg { width: 100%; height: 100%; }
.spark { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spark--up { stroke: var(--green); }
.spark--down { stroke: var(--red); }
.spark--flat { stroke: var(--ink-faint); stroke-dasharray: 2 2; }
.spark--cycle { stroke: var(--cyan); }

.tick__legs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.tick__legs li {
  position: relative;
}
.tick__legs li::before {
  content: '›';
  position: absolute;
  left: -1rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

.tick__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--brd-bright);
}
.tick__foot span:nth-child(odd) {
  background: var(--bg-grid);
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  color: var(--ink-dim);
}

/* ==========================================================================
   MOAT (why mortgage only)
   ========================================================================== */
.moat {
  padding: 6rem 2rem;
  background:
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--brd);
}
.moat__head { max-width: 1400px; margin: 0 auto 3rem; }
.moat__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.moat__h2-prefix { color: var(--cyan); }
.moat__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 78ch;
}

.moat__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.moat__cell {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.moat__cell:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
}
.moat__cell-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.moat__cell-h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.moat__cell-p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

/* ==========================================================================
   FILINGS / CASE STUDIES
   ========================================================================== */
.filings {
  padding: 6rem 2rem;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--brd);
}
.filings__head { max-width: 1400px; margin: 0 auto 3rem; }
.filings__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.filings__h2-prefix { color: var(--cyan); }
.filings__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 70ch;
}
.filings__sub .hl { color: var(--amber); font-weight: 600; }

.filings__list {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filing {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.filing:hover { border-color: var(--amber-dim); }

.filing__id {
  padding: 0.55rem 1.25rem;
  background: var(--bg-grid);
  border-bottom: 1px solid var(--brd);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.filing__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px dashed var(--brd-bright);
}
.filing__type {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bg-void);
  background: var(--amber);
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.filing__h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.filing__status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.status--closed { color: var(--green); background: rgba(0,214,122,0.08); border: 1px solid rgba(0,214,122,0.3); }

.filing__body {
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.65;
}
.filing__body p { margin-bottom: 0.6rem; }
.filing__body strong { color: var(--ink); font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.02em; }

.filing__foot {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-grid);
  border-top: 1px solid var(--brd);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.table-container {
  width: 100%;
  overflow-x: auto; /* Adds the responsive horizontal scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS devices */
}

table {
	color: aqua;
  width: 100%;
  border-collapse: collapse;
  min-width: 400px; /* Optional: Guarantees your columns do not squish */
}

/* ==========================================================================
   DESK / PROCESS
   ========================================================================== */
.desk {
  padding: 6rem 2rem;
  background: var(--bg-void);
  border-bottom: 1px solid var(--brd);
}

.desk1 {
  padding: 1rem 2rem;
  background: var(--bg-void);
  border-bottom: 1px solid var(--brd);
}

.desk__head { max-width: 1400px; margin: 0 auto 3rem; }
.desk__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.desk__h2-prefix { color: var(--cyan); }
.desk__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 70ch;
}

.desk__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.desk__grid1 {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.order {
    background: var(--bg-panel);
    border: 1px solid var(--brd);
    border-radius: 6px;
    padding-top: 1.25rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.order:hover { border-color: var(--cyan-dim); transform: translateY(-2px); }

.order__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.order__phase { color: var(--amber); font-weight: 700; }
.order__window { color: var(--ink-faint); }
.order__h3 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.order__bar {
  height: 4px;
  background: var(--bg-grid);
  border-radius: 2px;
  overflow: hidden;
}
.order__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}
.order__p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
.order__deliverables {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--brd-bright);
}
.order__deliverables li {
  color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem;
}
.order__deliverables .ok {
  color: var(--green);
  font-weight: 800;
}

/* ==========================================================================
   CONNECT / CTA + FORM
   ========================================================================== */
.connect {
  padding: 6rem 2rem;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--brd);
}
.connect__head { max-width: 1400px; margin: 0 auto 3rem; }
.connect__h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.connect__h2-prefix { color: var(--cyan); }
.connect__sub {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 70ch;
}

.connect__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.ticket {
  background: var(--bg-panel);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ticket__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--brd-bright);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.ticket__head-lbl { color: var(--amber); font-weight: 700; }
.ticket__head-id { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.ticket__head-ts { margin-left: auto; font-variant-numeric: tabular-nums; }

.ticket__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ticket__field { display: flex; flex-direction: column; gap: 0.4rem; }
.ticket__label {
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.ticket input, .ticket select, .ticket textarea {
  background: var(--bg-deep);
  border: 1px solid var(--brd-bright);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: 0;
  transition: border-color 0.15s ease;
}
.ticket input:focus, .ticket select:focus, .ticket textarea:focus {
  border-color: var(--amber);
}
.ticket select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.ticket textarea { resize: vertical; font-family: var(--font-body); line-height: 1.5; }

.ticket__foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--brd-bright);
}
.ticket__disclaimer {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-faint);
  max-width: 50ch;
}
.ticket__submit {
  background: var(--amber);
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ticket__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px var(--amber);
}
.ticket__submit-arrow { font-size: 1.1rem; }

.ticket__success {
  display: none;
  padding: 1rem;
  background: rgba(0,214,122,0.08);
  border: 1px solid var(--green-dim);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.05em;
  align-items: center;
  gap: 0.5rem;
}
.ticket__success.is-visible { display: flex; }
.ticket__success .ok { font-size: 1.1rem; font-weight: 800; }

.connect__side { display: flex; flex-direction: column; gap: 1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  background: var(--bg-void);
  border-top: 1px solid var(--brd);
  padding: 2.5rem 2rem 1.25rem;
}
.foot__top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--brd-bright);
}
.foot__brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono);
}
.foot__brand-mark {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber);
  background: var(--bg-grid);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}
.foot__brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.foot__nav {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.foot__nav a:hover { color: var(--amber); }

.foot__bot {
  max-width: 1400px;
  margin: 1.25rem auto 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lhs, .hero__rhs { max-width: 100%; }
  .pipeline__grid { grid-template-columns: 1fr; }
  .connect__grid { grid-template-columns: 1fr; }
  .desk__grid { grid-template-columns: repeat(2, 1fr); }
  .moat__grid { grid-template-columns: repeat(2, 1fr); }
  .ledger__row { grid-template-columns: 1fr 1fr; row-gap: 0.3rem; }
  .ledger__row--head { display: none; }
}

@media (max-width: 768px) {
  .topbar { padding: 0.75rem 1rem; }
  .topbar__brand-meta { display: none; }
  .topbar__nav { display: none; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .pipeline, .instruments, .moat, .filings, .desk, .connect { padding: 4rem 1.25rem; }
  .instruments__grid { grid-template-columns: 1fr; }
  .desk__grid { grid-template-columns: 1fr; }
  .moat__grid { grid-template-columns: 1fr; }
  .ticket__row { grid-template-columns: 1fr; }
  .statusbar__left, .statusbar__right { font-size: 0.62rem; gap: 0.35rem; }
  .filing__head { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__rail { animation: none; }
}
