/* ============================================================
   Kestrel — liquidity vault site
   Palette: graphite + brass
   ============================================================ */

:root {
  /* ground */
  --bg:          #14171a;
  --bg-lift:     #171b1f;
  --grid:        #1e2327;
  --grid-strong: #2b3136;

  /* Type. Every neutral shares the ground's blue bias (206-210 degrees);
     --ink and --ink-2 used to sit at 90 and 130, green against a blue ground. */
  --ink:    #e6e8ea;
  --ink-2:  #cbcfd2;
  --ink-3:  #9aa3a8;
  --ink-4:  #79828a;

  /* brass accent */
  --brass:      #c8963e;
  --brass-lift: #e0b366;
  --brass-deep: #a87c2c;

  /* semantic */
  --ok:    #6dbe93;
  --crit:  #e0705a;
  /* Warning sits at 26 degrees, deliberately clear of the brass at 38: the two
     used to be 1 degree apart, so "Audit: not started" — the most important
     caution on the site — was rendered in the brand accent. */
  --amber: #e18a47;

  /* surfaces */
  --panel:        rgba(232, 234, 230, 0.030);
  --panel-quiet:  rgba(232, 234, 230, 0.016);
  --panel-line:   rgba(232, 234, 230, 0.090);
  --hair:         rgba(232, 234, 230, 0.115);
  --hair-soft:    rgba(232, 234, 230, 0.070);

  /* type stacks */
  --f-display: "Instrument Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brass);
  color: #14171a;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  transition: top .16s ease;
}
.skip:focus { top: 12px; }

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

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.mono {
  font-family: var(--f-mono);
  font-variant-ligatures: none;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   Header
   ============================================================ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(20, 23, 26, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 61px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  min-height: 44px;
}
/* the mark matches the wordmark rather than the accent, so the lockup reads
   as one unit; --ink, not #fff, or the mark sits brighter than the word */
.brand svg { display: block; width: 23px; height: 23px; color: var(--ink); }
.brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-left: 2px;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.hdr-nav a {
  font-size: 13.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  transition: color .18s ease;
  white-space: nowrap;
}
.hdr-nav a .n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); }
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.on { color: var(--ink); }
.hdr-nav a.on::before { content: "[ "; color: var(--ink-4); font-family: var(--f-mono); font-size: 12px; }
.hdr-nav a.on::after  { content: " ]"; color: var(--ink-4); font-family: var(--f-mono); font-size: 12px; }

.hdr-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-4);
}
.hdr-sep { color: var(--grid-strong); }
.hdr-tick { color: var(--ink-2); }
.hdr-tick .erc { color: var(--brass); }

.pill-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brass);
  color: #14171a;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}
.pill-net::before { content: "◆"; font-size: 8px; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.icon-link:hover { color: var(--ink); }
.icon-link svg { width: 15px; height: 15px; }

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #14171a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .18s ease, transform .18s ease;
}
.btn-app:hover { background: #fff; }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--brass);
  transition: width .18s linear;
}

.hdr-burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 92px 0 104px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Knock the footage back, and warm it. Measured on the rendered page, the
     ungraded sky sat at 200 degrees and 32% saturation — the loudest area on
     the site, and near-opposite the brass at 38. The sepia pass halves that to
     17% and brings the ground to 30 degrees, so the imagery and the accent
     land in one hue family instead of fighting. */
  filter: sepia(0.55) saturate(1.10) brightness(0.58) contrast(1.06);
}
.hero-scrim,
.hero-fade { position: absolute; pointer-events: none; }
.hero-scrim {
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(20, 23, 26, 0.90) 0%,
      rgba(20, 23, 26, 0.66) 30%,
      rgba(20, 23, 26, 0.30) 58%,
      rgba(20, 23, 26, 0.10) 100%),
    linear-gradient(to bottom,
      rgba(20, 23, 26, 0.86) 0%,
      rgba(20, 23, 26, 0.40) 26%,
      rgba(20, 23, 26, 0.32) 52%,
      rgba(20, 23, 26, 0.58) 78%,
      rgba(20, 23, 26, 0.95) 100%);
}
.hero-fade {
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(20, 23, 26, 0) 0%, var(--bg) 94%);
}

.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 175px 175px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 55%, transparent 100%);
  opacity: .42;
}
.bp-cross {
  position: absolute;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
}
.bp-cross::before, .bp-cross::after {
  content: "";
  position: absolute;
  background: var(--grid-strong);
}
.bp-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.bp-cross::after  { top: 0; bottom: 0; left: 50%; width: 1px; }

.bp-square {
  position: absolute;
  width: 99px;
  height: 99px;
  border: 1px solid var(--grid-strong);
}

.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-lines line { stroke: var(--grid-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }

.bp-note {
  position: absolute;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  text-shadow: 0 1px 10px rgba(20, 23, 26, 0.95), 0 0 2px rgba(20, 23, 26, 0.9);
}
.bp-note b {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 5px;
}

.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 664px;
}

h1.hero-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 12ch;
}

.hero-lede {
  margin: 30px 0 0;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-3);
}

.hero-ca {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 0;
  font-family: var(--f-mono);
  font-size: 12px;
}
.hero-ca .lbl { color: var(--ink-4); letter-spacing: .1em; }
.addr {
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
}
.addr:hover { color: var(--brass-lift); }

.mini {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .18s ease;
}
.mini:hover { color: var(--brass-lift); }

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 26px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--brass);
  color: #14171a;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.btn-primary:hover { background: var(--brass-lift); }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair);
  transition: color .18s ease, border-color .18s ease;
}
.btn-quiet:hover { color: var(--brass-lift); border-color: var(--brass); }

.callout {
  position: absolute;
  right: 0;
  bottom: 12px;
  z-index: 2;
  max-width: 292px;
}
.callout-tag {
  display: inline-block;
  background: var(--brass);
  color: #14171a;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px 3px 0 0;
}
.callout-body {
  border: 1px solid var(--brass);
  border-radius: 0 3px 3px 3px;
  padding: 18px 18px 14px;
  background: rgba(200, 150, 62, 0.055);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.callout-body a {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--brass-lift);
  border-bottom: 1px solid rgba(224, 179, 102, .4);
  padding-bottom: 1px;
}

/* ============================================================
   Sections
   ============================================================ */

.sec { padding: 116px 0; border-top: 1px solid var(--hair-soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 26px;
}
.eyebrow .num { color: var(--brass); font-weight: 700; }
.eyebrow .bar { width: 34px; height: 1px; background: var(--grid-strong); }

h2.sec-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.sec-lede {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-3);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 30px;
}
.panel.quiet { background: var(--panel-quiet); border-color: var(--hair-soft); }
.panel.flush { padding: 0; }

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chip.good { color: var(--ok); border-color: rgba(109, 190, 147, .38); background: rgba(109, 190, 147, .08); }
.chip.warn { color: var(--amber); border-color: rgba(225, 138, 71, .42); background: rgba(225, 138, 71, .10); }
.chip.off  { color: var(--ink-4); border-color: var(--hair-soft); }
.chip.on   { color: var(--brass-lift); border-color: rgba(200, 150, 62, .42); background: rgba(200, 150, 62, .08); }

/* --- 01 thesis --- */

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 58px;
}
.thesis-col ul { list-style: none; margin: 22px 0 0; padding: 0; }
.thesis-col li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--hair-soft);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.thesis-col li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 1px;
  background: var(--ink-4);
}
.thesis-col.on li::before { background: var(--brass); }
.thesis-col.off li { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--hair); }
.thesis-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.step .call {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--brass);
  margin-top: 9px;
  word-break: break-word;
}
.step p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.62; color: var(--ink-3); }

.plot-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  margin-top: 88px;
}
.plot-title { font-family: var(--f-display); font-size: 19px; letter-spacing: -.02em; margin: 0; }
.plot-sub { margin: 7px 0 0; font-size: 13px; color: var(--ink-4); }
.plot-legend {
  display: flex;
  gap: 24px;
  margin: 22px 0 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.plot-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-solid { width: 20px; height: 2px; background: var(--brass); }
.lg-dash  { width: 20px; height: 0; border-top: 2px dashed var(--ink-4); }

.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot-hint { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-4); font-family: var(--f-mono); }
.plot-read {
  position: absolute;
  pointer-events: none;
  background: var(--bg-lift);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s ease;
}
.plot-read.on { opacity: 1; }

.never dt {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.never dd { margin: 5px 0 0; font-size: 13px; color: var(--ink-4); }
.never > div { padding: 17px 0; border-bottom: 1px solid var(--hair-soft); }
.never > div:last-child { border-bottom: 0; }
.never-head { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 18px 0 8px; }

/* --- 03 dual use --- */

.dual {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  margin-top: 58px;
}
.slider-row { margin-bottom: 32px; }
.slider-row:last-child { margin-bottom: 0; }
.slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.slider-top .k { letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.slider-top .v { color: var(--ink); font-size: 14px; }
.slider-top .v .u { color: var(--ink-4); font-size: 11.5px; margin-left: 3px; }
.slider-hint { margin: 7px 0 0; font-size: 11.5px; color: var(--ink-4); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--hair);
}
input[type="range"]::-moz-range-track { height: 1px; background: var(--hair); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-3);
  transition: border-color .15s ease, background .15s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-3);
}
input[type="range"]:hover::-webkit-slider-thumb { border-color: var(--brass); background: var(--brass); }
input[type="range"]:hover::-moz-range-thumb { border-color: var(--brass); background: var(--brass); }

.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.job-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.job-head .t {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.job-big {
  font-family: var(--f-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.job-cap { margin: 6px 0 20px; font-size: 12.5px; color: var(--ink-4); }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--hair-soft);
  font-size: 13px;
  color: var(--ink-3);
}
.kv .val { font-family: var(--f-mono); color: var(--ink-2); text-align: right; }

.bars { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hair-soft); }
.bar-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.bar-line .val { font-family: var(--f-mono); color: var(--ink-2); }
.bar-track { height: 6px; border-radius: 999px; background: rgba(232, 234, 230, 0.075); margin-bottom: 20px; }
.bar-track > i { display: block; height: 6px; border-radius: 999px; background: var(--ink-4); }
.bar-track.hi > i { background: var(--brass); }

.honest { margin-top: 30px; font-size: 13px; line-height: 1.65; color: var(--ink-4); }
.honest b { color: var(--ink-2); font-weight: 500; }

/* --- 04 comparison table --- */

.tbl-scroll { overflow-x: auto; margin-top: 58px; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; }
table.cmp th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: left;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--hair);
  vertical-align: bottom;
}
table.cmp td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--hair-soft);
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-4);
}
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp td.design { color: var(--ink); font-size: 14.5px; }
table.cmp tr.us td { background: rgba(200, 150, 62, 0.055); }
table.cmp tr.us td.design { color: var(--brass-lift); }
.us-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 6px;
}
.tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.tick.yes { color: var(--brass-lift); }
.tick.no { color: var(--ink-4); }
.tick.part { color: var(--ink-3); }
.tbl-note { margin: 26px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-4); max-width: 72ch; }
.tbl-note b { color: var(--ink-2); font-weight: 500; }

/* --- 05 integrate --- */

.integrate { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; margin-top: 58px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); padding: 0 26px; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex-shrink: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-4);
  font-family: inherit;
  font-size: 13px;
  padding: 16px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px 12px;
  border-bottom: 1px solid var(--hair-soft);
}
.code-head .lang {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
pre.code {
  margin: 0;
  padding: 22px 26px 26px;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.75;
}
pre.code::-webkit-scrollbar { height: 6px; }
pre.code::-webkit-scrollbar-thumb { background: var(--grid-strong); border-radius: 3px; }
pre.code .cm { color: var(--ink-4); }
pre.code .ln { color: var(--ink-2); }

.check li { list-style: none; border-top: 1px solid var(--hair-soft); padding-top: 20px; margin-top: 20px; }
.check { margin: 24px 0 0; padding: 0; }
.check li:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.check .k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.check .v { margin-top: 6px; font-size: 13px; line-height: 1.62; color: var(--ink-4); }

/* --- 06 risk --- */

.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 58px; }
.risk-col h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -.018em;
  margin: 0 0 20px;
}
.risk-col .item { padding: 16px 0; border-top: 1px solid var(--hair-soft); }
.risk-col .item .k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.risk-col .item .v { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-4); }

/* --- 07 status --- */

.status-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--hair-soft);
}
.status-row:last-child { border-bottom: 0; }
.status-row .k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.status-row p { margin: 13px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-4); max-width: 68ch; }

.ask { margin-top: 48px; }
.ask p { margin: 16px 0 0; font-size: 15px; line-height: 1.68; color: var(--ink-2); max-width: 74ch; }

/* --- 08 faq --- */

.faq { margin-top: 58px; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.faq-q svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--ink-4); transition: transform .22s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--brass); }
.faq-a { display: none; padding: 0 0 26px; max-width: 74ch; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.faq-a.open { display: block; }

/* ============================================================
   Footer
   ============================================================ */

.ftr { border-top: 1px solid var(--hair); padding: 76px 0 44px; }
.ftr-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 48px; }
.ftr-brand .brand { margin-bottom: 20px; }
.ftr-brand p { margin: 0 0 30px; max-width: 40ch; font-size: 13.5px; line-height: 1.65; color: var(--ink-4); }
.ftr-addr { margin-bottom: 20px; }
.ftr-addr .label { display: block; margin-bottom: 6px; }
.ftr-addr .line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.ftr-mail {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--brass-lift);
  border-bottom: 1px solid rgba(224, 179, 102, .35);
  padding-bottom: 1px;
  min-height: 32px;
}
.ftr-col h4 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 18px;
}
.ftr-col a {
  display: block;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.ftr-col a:hover { color: var(--brass-lift); }
.ftr-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-soft);
  font-size: 12.5px;
  color: var(--ink-4);
}

/* ============================================================
   Reveal
   ============================================================ */

.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .plot-read, .faq-q svg { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .shell { padding: 0 28px; }
  .hdr-nav { gap: 18px; }
  .hdr-right { gap: 11px; }
  .callout { position: static; max-width: 420px; margin-top: 52px; }
}

@media (max-width: 900px) {
  .hdr-nav, .hdr-tick, .hdr-sep, .hdr-count { display: none; }
  .hdr-in { justify-content: space-between; }
  .hdr-right { margin-left: auto; }
  .sec { padding: 84px 0; }
  .hero { padding: 64px 0 84px; }
  .bp-note { display: none; }
  .bp-square { display: none; }
  .thesis-grid, .plot-wrap, .dual, .integrate, .risk-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .jobs { grid-template-columns: 1fr; gap: 34px; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .status-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .shell { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .hero-ca { margin-top: 52px; }
  .status-row { padding: 22px; }
  table.cmp th, table.cmp td { padding: 16px; }
  .brand-tag { display: none; }
  .hdr .pill-net, .hdr .icon-link { display: none; }
  .hdr-right { gap: 6px; }
  .btn-app { padding: 0 14px; font-size: 11.5px; }
  .brand-name { font-size: 18px; }
  .app-main .hdr-right .btn-connect { padding: 0 12px; }
}

/* ============================================================
   App page
   ============================================================ */

.app-main { padding: 56px 0 96px; }
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.app-back:hover { color: var(--brass-lift); }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.app-col { display: grid; gap: 26px; align-content: start; }

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hair-soft);
}
.app-head .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.app-big {
  font-family: var(--f-mono);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 4px 0 22px;
}
.app-big .unit { font-size: .5em; color: var(--ink-4); margin-left: 6px; }

.seg { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin-bottom: 26px; }
.seg button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-4);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 18px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.seg button:hover { color: var(--ink-2); }

.amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.amount-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 0 16px;
}
.amount-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 22px;
  padding: 16px 0;
}
.amount-field .sym { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  background: var(--brass);
  color: #14171a;
  border: 0;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.btn-block:hover { background: var(--brass-lift); }

.btn-connect {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: none;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.btn-connect:hover { border-color: var(--brass); color: var(--brass-lift); }

.app-note { margin: 22px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-4); }
.app-explorer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-lift);
}

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
}

.max-btn {
  background: none;
  border: 0;
  padding: 6px 0 6px 12px;
  min-height: 32px;
  color: var(--ink-4);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease;
}
.max-btn:hover { color: var(--brass-lift); }

.btn-block:disabled {
  background: var(--surface, rgba(232, 234, 230, 0.07));
  background: rgba(232, 234, 230, 0.07);
  color: var(--ink-4);
  cursor: not-allowed;
}

/* A deposit is three signatures. Without the trail the button says only
   "Deposit" at step three, the wallet says "Transaction confirmed" after
   step two, and the two together read as a finished deposit. */
.steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  color: var(--ink-4);
  padding: 9px 0;
  border-top: 2px solid var(--grid-strong);
  transition: color 0.2s, border-color 0.2s;
}
.steps li + li { margin-left: 10px; }
.steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}
.steps li.done { color: var(--ok); border-top-color: var(--ok); }
.steps li.done .n { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.steps li.now  { color: var(--brass); border-top-color: var(--brass); }
.steps li.now .n { border-width: 2px; }

.tx-status {
  margin: 14px 0 0;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-word;
}
.tx-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
}
.tx-status.pending::before { background: var(--brass); animation: pulse 1.4s ease-in-out infinite; }
.tx-status.ok::before   { background: var(--ok); }
.tx-status.warn::before { background: var(--amber); }
.tx-status.bad::before  { background: var(--crit); }
.tx-status.ok   { color: var(--ink-2); }
.tx-status.bad  { color: var(--crit); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .tx-status.pending::before { animation: none; }
}
