/* russellfunding.com v0 — one stylesheet, no build step, no supply chain.
   Brand tokens are locked upstream (REBRAND-BRIEF.md); do not re-derive them.
   Where brass must be EXACT — type, rules, the mark — it comes from here or the
   SVG, never sampled from a photograph. A photographic brass band is atmosphere. */

:root {
  --ink: #0e0e10;
  --ink-raised: #16161a;
  --ink-line: #26262c;
  --brass: #a8863a;
  --brass-light: #c9a95c;
  --bone: #f4f1ea;
  --linen: #cfcbc2;
  --ash: #8d8a84;

  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --gap-section: clamp(4.5rem, 11vw, 8.5rem);

  /* No webfont is loaded — zero external requests by design. Matt's approved
     brand face is an open item; until the file exists this is an honest stack. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--linen);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--bone);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }
p  { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--brass-light); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- skip link: first tab stop on every page --------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink);
  padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - (2 * var(--pad)), 74rem); margin-inline: auto; }
.narrow { max-width: 46rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}

/* --- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-head > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.lockup { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.lockup img { width: 2rem; height: 2rem; }
.lockup .name {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  color: var(--bone); letter-spacing: -0.01em; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.75rem); }
.site-nav a { color: var(--linen); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }
@media (max-width: 33rem) { .site-nav .hide-xs { display: none; } }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 4px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  border: 1px solid var(--brass); background: var(--brass); color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brass-light); }
.btn-ghost:hover { background: transparent; color: var(--bone); border-color: var(--bone); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* --- hero -------------------------------------------------------------- */
.hero { position: relative; border-bottom: 1px solid var(--ink-line); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 55%, transparent) 0%,
    color-mix(in srgb, var(--ink) 72%, transparent) 55%,
    var(--ink) 100%);
}
.hero-body {
  position: relative; z-index: 1;
  padding-block: clamp(5rem, 15vw, 10rem) clamp(4rem, 10vw, 7rem);
}
.hero h1 { max-width: 18ch; }
.hero .lede {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  color: var(--linen); max-width: 52ch; margin-top: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }

/* --- sections ---------------------------------------------------------- */
section { padding-block: var(--gap-section); }
section + section { border-top: 1px solid var(--ink-line); }

.grid-3 {
  display: grid; gap: 1.25rem; margin-top: 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--ink-raised); border: 1px solid var(--ink-line);
  border-radius: 8px; padding: 1.6rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9375rem; color: var(--linen); margin-bottom: 0; }

.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.split figure { margin: 0; }
.split img { border-radius: 8px; border: 1px solid var(--ink-line); }

/* Removed: .rule-brass. It sat above all five sections, and a divider that
   appears everywhere stops reading as emphasis and starts reading as wallpaper.
   Sections separate on the 1px border + generous vertical rhythm; the brass
   kicker is the only accent a section opening needs. */

/* --- form -------------------------------------------------------------- */
form { max-width: 34rem; margin-top: 2rem; }
.field { margin-bottom: 1.15rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--bone); margin-bottom: 0.4rem; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--bone);
  background: var(--ink-raised); border: 1px solid var(--ink-line);
  border-radius: 4px; padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--brass); }
textarea { min-height: 7rem; resize: vertical; }
.hint { font-size: 0.8125rem; color: var(--ash); margin: 0.4rem 0 0; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; }
/* 1.15rem, not the 13px UA default. The <label for> already makes the whole
   consent sentence tappable, so the box was never the only target — but a
   13px box is still a 13px box if that is what the thumb aims at. */
.consent input { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; flex: none; accent-color: var(--brass); }
.consent label { font-weight: 400; font-size: 0.8125rem; color: var(--ash); line-height: 1.5; }
[aria-invalid="true"] { border-color: #c2554a; }
.err { color: #e08b80; font-size: 0.8125rem; margin: 0.35rem 0 0; min-height: 1px; }

/* --- footer ------------------------------------------------------------ */
.site-foot {
  border-top: 1px solid var(--ink-line);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.875rem; color: var(--ash);
}
.foot-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-foot a { color: var(--linen); text-decoration: none; }
.site-foot a:hover { color: var(--bone); text-decoration: underline; }
.foot-bar {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
}
/* Footer links measured 38x19 on mobile — inline text with nothing reserving a
   target. WCAG 2.2 SC 2.5.8 (Level AA) wants 24x24 CSS px; padding buys the
   height without changing how the lines read. The 44x44 figure people quote is
   SC 2.5.5, which is Level AAA. */
.site-foot a { display: inline-block; padding-block: 0.35rem; }
.foot-bar a { padding-inline: 0.35rem; margin-inline: -0.35rem; }

/* --- FACT CARDS -------------------------------------------------------
   The three cards under "What we fund, and how fast". Each states one figure
   Matt Russell released in writing on 2026-07-28, and the figure is the loudest
   thing in the card because the figure is the point — a litigation funder with
   no published proof is a look with no offer.

   Colour is --brass-light (#c9a95c), not --brass (#a8863a). On --ink-raised the
   brass pair computes ~5.2:1 and the light pair ~8.2:1; both clear AA for this
   size, but these headings carry the only hard numbers on the site and are the
   last place to spend contrast narrowly.

   The former .ph / .ph-block placeholder styles were deleted here rather than
   left unused. Dormant "make it look unfinished" CSS is an invitation to mark
   the next unverified claim as a placeholder and ship it live; the standard is
   that an unverified claim does not go on the page at all. */
.facts .card h3 {
  color: var(--brass-light);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Removed: the scroll-reveal fade-up. It was the only motion on the page that
   wasn't feedback, and for a litigation funder selling gravitas, stillness
   reads more expensive than movement. Cutting it also deletes a whole failure
   mode — content that depends on an observer firing is content that can fail
   to appear. Nothing now hides itself. */

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

/* ======================================================================
   THE CARD  (/card)
   ----------------------------------------------------------------------
   A handout Matt texts to a firm or a provider. It is opened on a phone,
   one-handed, and it gets about twenty seconds. Everything here is scoped
   under body.card-page so it cannot leak into the three real pages.

   Two decisions worth keeping:

   1. It is a single narrow column at EVERY width, not a mobile page that
      stretches. On a desktop it reads as a deliberate card rather than a
      site with a broken max-width, and it means what Matt previews on his
      laptop is what the recipient sees on their phone.
   2. No scroll-reveal, no counters, no motion that isn't feedback. Same
      call as the main site: for a litigation funder selling gravitas,
      stillness reads more expensive than movement. It also means nothing
      on the page can fail to appear.
   ====================================================================== */

body.card-page {
  /* Clears the fixed action bar plus the iOS home indicator. Without this the
     last line of the footer sits under the bar and looks clipped. */
  padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
}
body.card-page .wrap { width: min(100% - 2.5rem, 33rem); }
body.card-page section { padding-block: clamp(3rem, 9vw, 4.25rem); }

.card-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.card-head > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.5rem;
}
.card-head .lockup img { width: 1.75rem; height: 1.75rem; }
.card-head .lockup .name { font-size: 0.9375rem; }
.card-head .site-nav a { font-size: 0.8125rem; }

/* --- hero -------------------------------------------------------------- */
.card-hero { position: relative; border-bottom: 1px solid var(--ink-line); }
.card-hero-media { position: absolute; inset: 0; overflow: hidden; }
.card-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
/* Brass warmth behind the mark, then the ink floor. A radial in the palette
   rather than a second photograph: one image, no extra request. */
.card-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 55% at 50% 8%,
      color-mix(in srgb, var(--brass) 18%, transparent) 0%,
      transparent 62%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--ink) 58%, transparent) 0%,
      color-mix(in srgb, var(--ink) 78%, transparent) 55%,
      var(--ink) 100%);
}
.card-hero-body {
  position: relative; z-index: 1;
  padding-block: clamp(2.75rem, 9vw, 4rem) clamp(2.75rem, 9vw, 4rem);
  text-align: center;
}
/* 76x46 keeps the locked 1.6495:1 aspect of the bull. Never stretch it. */
.card-mark { width: 4.75rem; height: auto; margin: 0 auto 1.4rem; }
.card-hero-body h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 2.75rem); }
.card-hero-body .lede {
  font-size: 1.0625rem; color: var(--linen);
  margin: 1.1rem auto 0; max-width: 34ch;
}

/* --- who we work with -------------------------------------------------- */
.who-list { margin-top: 2rem; display: grid; gap: 1rem; }
.who {
  position: relative;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-left: 2px solid var(--brass);
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.4rem 1.5rem;
}
.who-tag {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.2em;
  color: var(--brass); margin: 0 0 0.5rem;
}
.who h3 { margin-bottom: 0.6rem; }
.who p { font-size: 0.9375rem; margin-bottom: 0; }

/* The audience boundary. Deliberately the highest-contrast block on the page
   after the headline -- it is a compliance line, not fine print, and this page
   can be forwarded to anyone. */
.fence {
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--brass) 38%, var(--ink-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brass) 7%, var(--ink-raised));
  font-size: 0.875rem; color: var(--linen); max-width: none;
}
.fence strong { color: var(--bone); }

/* --- the three figures ------------------------------------------------- */
/* A <dl>: each figure is a term and its qualifying condition, and the
   condition is not decoration -- "funded the next day" is only true once the
   contract is signed, so the two must stay bound together. */
.stats { margin: 2rem 0 0; display: grid; gap: 0; }
.stat {
  padding: 1.15rem 0;
  border-top: 1px solid var(--ink-line);
  display: grid; gap: 0.3rem;
}
.stat:last-child { border-bottom: 1px solid var(--ink-line); }
.stats dt {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--brass-light);
}
.stats dd { margin: 0; font-size: 0.9375rem; color: var(--linen); }
.note { margin-top: 1.6rem; font-size: 0.875rem; color: var(--ash); }

/* --- steps ------------------------------------------------------------- */
/* Counter on the <ol> rather than hard-coded numerals, so a step cannot be
   reordered into "1, 3, 2" by a later edit. */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3rem;
  border-left: 1px solid var(--ink-line);
  margin-left: 0.9rem;
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -0.9rem; top: -0.15rem;
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--brass);
  color: var(--brass); font-family: var(--mono); font-size: 0.75rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.9375rem; margin-bottom: 0; }

/* --- action bar -------------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ink-line);
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
}
/* Wraps rather than crushes. With the share button visible (a real iPhone, not
   a headless browser) three flex:1 buttons at 360pt leave ~100px each, which is
   under the "Save contact" label -- so the basis is 8rem and a third button
   drops to its own row instead of clipping. body padding-bottom below clears
   two rows. */
.actionbar .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.actionbar .btn {
  flex: 1 1 8rem; text-align: center; padding: 0.85rem 0.5rem;
  font-size: 0.9375rem; white-space: nowrap;
}
.actionbar .btn-ghost { border-color: var(--ink-line); }
.actionbar .btn-share { font: inherit; font-weight: 600; cursor: pointer; }
.actionbar .hint { text-align: center; }
.actionbar .hint:empty { display: none; }

/* Bio block. Two role lines rather than one run-on: the title and the company
   are different facts and an attorney scans for the title. */
.role { color: var(--bone); font-weight: 600; margin: 1rem 0 0.15rem; }
.role-sub { color: var(--brass-light); font-size: 0.9375rem; margin-bottom: 1.4rem; }

/* Named-firm list. Ships unused on purpose — the markup is in card.html behind a
   comment so switching it on is an edit, not a build. Kept here so the styling
   is already correct the day the names clear, rather than being improvised. */
.logos {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.logos li {
  font-family: var(--serif); font-size: 0.9375rem; color: var(--bone);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--ink-raised);
}

/* .btn sets display:inline-block, which is a class selector and therefore beats
   the user-agent [hidden]{display:none} rule. Without this the share button --
   which ships hidden and is only revealed where navigator.share exists --
   renders as an empty 110px box on every desktop browser. */
.btn[hidden] { display: none; }
