/* ============================================================================
   convexpayoff.com — landing (CONVEX MONO)
   ink on true black. the payoff is binary — floor and moonshot — so the brand is.
   three laws: light is the accent · direction without color · texture over tint.
   self-contained: local fonts only, zero CDN, zero build step.
   ============================================================================ */

/* ---- fonts (local, copied from brand/fonts) ---- */
@font-face { font-family:"Archivo"; font-weight:400; font-style:normal; font-display:swap; src:url("fonts/Archivo-400.ttf") format("truetype"); }
@font-face { font-family:"Archivo"; font-weight:500; font-style:normal; font-display:swap; src:url("fonts/Archivo-500.ttf") format("truetype"); }
@font-face { font-family:"Archivo"; font-weight:600; font-style:normal; font-display:swap; src:url("fonts/Archivo-600.ttf") format("truetype"); }
@font-face { font-family:"Archivo"; font-weight:700; font-style:normal; font-display:swap; src:url("fonts/Archivo-700.ttf") format("truetype"); }
@font-face { font-family:"IBM Plex Mono"; font-weight:400; font-style:normal; font-display:swap; src:url("fonts/IBMPlexMono-400.ttf") format("truetype"); }
@font-face { font-family:"IBM Plex Mono"; font-weight:500; font-style:normal; font-display:swap; src:url("fonts/IBMPlexMono-500.ttf") format("truetype"); }
@font-face { font-family:"IBM Plex Mono"; font-weight:600; font-style:normal; font-display:swap; src:url("fonts/IBMPlexMono-600.ttf") format("truetype"); }
@font-face { font-family:"IBM Plex Mono"; font-weight:700; font-style:normal; font-display:swap; src:url("fonts/IBMPlexMono-700.ttf") format("truetype"); }

/* ---- the only palette: the ink ladder (mirrors brand/tokens-mono.css) ---- */
:root {
  --bg:            #000000;
  --surface:       #0A0A0A;
  --surface-raised:#121212;

  --ink:      #FFFFFF;   /* hero ink — reserved for the convex idea (law 1) */
  --ink-soft: #D6D6D6;   /* body-text floor on black */
  --muted:    #8A8A8A;   /* labels / kickers (14px+ only) */
  --faint:    #5A5A5A;   /* dotted leaders, quiet meta */
  --ghost:    #262626;

  --hairline: #1A1A1A;
  --line:     #262626;

  --curve:       #FFFFFF; /* the convex leg: brightest stroke on the page */
  --curve-floor: #8A8A8A; /* the capped floor: mid-gray, paired with hatch */

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(22px, 5.2vw, 96px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;               /* the page body never scrolls sideways */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* the shell keeps every band on the same measure + gutter */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* mono kicker — 12px caps, wide tracking, muted (the terminal register) */
.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}

/* the little payoff glyph (the mark) — reused in nav + footer */
.glyph { width: 30px; height: 18px; flex: none; }
.glyph .floor  { stroke: var(--curve-floor); }
.glyph .convex { stroke: var(--curve); }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  /* sticky brand bar (Harshit 2026-08-10): stays pinned with a blurred black veil */
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 12px;
  background: rgba(0,0,0,0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline, #1A1A1A);
}
/* the real brand avatar (same asset as the favicon and the X pfp) */
.nav .nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: block; }
.nav .brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.nav .wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
}
.nav .to-x {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: lowercase;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav .to-x .arr { color: var(--faint); transition: color .25s var(--ease); }
.nav .to-x:hover { color: var(--ink); }
.nav .to-x:hover .arr { color: var(--ink); }

/* ============================================================================
   HERO  — the etched payoff curve is the full-bleed motif
   ============================================================================ */
.hero {
  position: relative;                 /* contains the absolutely-positioned curve */
  min-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;        /* content sits high; the curve floor clears it below */
  padding-top: clamp(70px, 13vh, 190px);
  padding-bottom: clamp(40px, 7vh, 90px);
  isolation: isolate;
}

/* the curve fills the whole hero, behind the content (law: an etching, not a glow) */
.hero-curve {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-curve svg { width: 100%; height: 100%; }
/* strokes hold a constant hairline weight regardless of the non-uniform stretch */
.hero-curve path, .hero-curve line, .hero-curve circle { vector-effect: non-scaling-stroke; }
.hero-curve .landscape { display: block; }
.hero-curve .portrait  { display: none; }

.hero-inner { position: relative; z-index: 2; max-width: 940px; }
.hero .kicker { margin-bottom: clamp(20px, 3vw, 30px); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(2.35rem, 6.1vw, 5.1rem);
  line-height: 1.015;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}

.hero .sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(12.5px, 1.5vw, 15.5px);
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: var(--muted);
  margin-top: clamp(26px, 4vw, 40px);
  text-transform: lowercase;
}
.hero .sub .sep { color: var(--ghost); padding: 0 0.55em; }
.hero .sub b { color: var(--ink-soft); font-weight: 500; }

/* ============================================================================
   THE FEED  — @theconvexpayoff, latest posts (dotted-leader rows; a row is an <a>)
   ============================================================================ */
.calls { position: relative; z-index: 2; padding-top: clamp(30px, 6vh, 72px); padding-bottom: clamp(48px, 9vh, 104px); }
.calls-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.calls-head .lede {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; color: var(--faint);
  text-transform: lowercase;
}

.calls-list { list-style: none; margin: clamp(26px, 4vw, 42px) 0 0; padding: 0; }
.call { border-top: 1px solid var(--hairline); }
.call:last-child { border-bottom: 1px solid var(--hairline); }
.call:first-child { border-top: none; }   /* the calls-head rule serves as the first row's top rule — never a double hairline */

/* the row body; when a post carries a url it renders as an <a> and the whole row links out to x */
.call-row { display: block; padding: clamp(18px, 2.4vw, 26px) 0; color: inherit; }
a.call-row { cursor: pointer; }
a.call-row .call-ticker, a.call-row .call-num, a.call-row .call-go { transition: color .2s var(--ease); }
a.call-row:hover .call-num, a.call-row:hover .call-go { color: var(--ink); }
.call-go { margin-left: 0.7em; flex: none; align-self: baseline; color: var(--faint);
  font-family: var(--font-mono); font-size: clamp(13px, 1.6vw, 15px); }

/* primary line: ticker ····· the number  (name → number, the promise) */
.call-main { display: flex; align-items: baseline; gap: 0; }
.call-ticker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 23px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
  flex: none;
  white-space: nowrap;
}
.call-ticker .cash { color: var(--faint); font-weight: 500; margin-right: 0.06em; }
.call-leader {
  flex: 1 1 auto;
  min-width: 24px;
  margin: 0 14px;
  height: 1px;
  align-self: center;
  position: relative; top: -2px;
  background-image: repeating-linear-gradient(90deg, var(--faint) 0 2px, transparent 2px 8px);
}
.call-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(14px, 2vw, 19px);
  color: var(--ink-soft);
  text-align: right;
  flex: none;
  max-width: 62%;
}

/* secondary line: date — chokepoint note — source (quiet meta) */
.call-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.35vw, 12.5px);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55em;
}
.call-meta .date { color: var(--ink-soft); }
.call-meta .dot { color: var(--ghost); }
.call-meta .src { color: var(--faint); }

/* ============================================================================
   FOLLOW  — the single call to action; the ONE inversion lives on this button
   ============================================================================ */
.follow {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(46px, 8vh, 92px);
  padding-bottom: clamp(46px, 8vh, 92px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(26px, 5vw, 60px);
  flex-wrap: wrap;
}
.follow-copy { max-width: 560px; }
.follow-copy .handle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: lowercase;
}

.btn-follow {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #000000;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 17px 30px;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
  white-space: nowrap;
}
.btn-follow .arr { transition: transform .28s var(--ease); }
/* THE ONE INVERSION on the page: RESTING white fill, black ink (Superpower grammar) — hover/focus holds the same fill, only the arrow moves */
.btn-follow:hover, .btn-follow:focus-visible {
  background: var(--ink);
  color: #000000;
  border-color: var(--ink);
  outline: none;
}
.btn-follow:hover .arr { transform: translate(2px, -2px); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  padding-bottom: clamp(30px, 5vh, 52px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer .brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.footer .wordmark {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase;
}
.footer .fnote {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase;
}
.footer .fnote .dia { color: var(--muted); }

/* ============================================================================
   RESPONSIVE — swap the curve to a portrait cut; keep zero overlap at any width
   ============================================================================ */
@media (max-width: 720px) {
  .hero-curve .landscape { display: none; }
  .hero-curve .portrait  { display: block; }
  .hero { min-height: min(78svh, 620px); padding-top: clamp(44px, 8svh, 80px); padding-bottom: 32px; }
  .hero-inner { max-width: 100%; }
  .call-num { max-width: 58%; }
  .follow { flex-direction: column; align-items: flex-start; }
  .btn-follow { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2.15rem; }
  .call-ticker { font-size: 16px; }
  .call-num { font-size: 13px; max-width: 54%; }
}

/* ============================================================================
   MOTION — one orchestrated load: the curve draws itself, the type lands.
   the brand's own motion language (white line draws on black). reduced-motion off.
   ============================================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* the etched leg + floor draw in. paths carry pathLength="1", so the dash math
     is normalized (1 = whole path) — scale-independent under non-scaling-stroke +
     preserveAspectRatio=none, which otherwise clips the sweep. */
  /* HERO CURVE ANIMATIONS RETIRED (2026-08-10). Two stacked failure modes: the
     dash-draw's pathLength math conflicts with non-scaling-stroke in Chrome, and
     headless/crawler renderers strand animated SVG children at opacity:0 — the
     brand mark simply missing from screenshots and previews. The mark is the
     identity; it renders COMPLETE on load, unconditionally. Text keeps its rise. */

  /* type + rows rise on a stagger */
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
  .d1 { animation-delay: 0.10s; }
  .d2 { animation-delay: 0.24s; }
  .d3 { animation-delay: 0.40s; }
  .calls-list .call { opacity: 0; transform: translateY(12px); animation: rise 0.75s var(--ease) forwards; }
  .calls-list .call:nth-child(1){ animation-delay: 0.06s; }
  .calls-list .call:nth-child(2){ animation-delay: 0.14s; }
  .calls-list .call:nth-child(3){ animation-delay: 0.22s; }
  .calls-list .call:nth-child(4){ animation-delay: 0.30s; }
  .calls-list .call:nth-child(5){ animation-delay: 0.38s; }

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

/* feed rows, zerohedge-style (2026-08-11, legibility pass 2026-08-12): the headline LINE
   links to the X post; the body is plain readable text — never a fully-hyperlinked block.
   ONE visual per row (the motion clip when there is one, else the evidence still) — stacking
   both made every row a wall. Meta reads at 14px in --muted, not 13px --faint: the tracked-out
   faint mono was unreadable on black. */
.call-card { display:block; padding:30px 0; color:inherit; }
.call-title { font-family:var(--font-display); font-size:clamp(19px,2.3vw,25px); line-height:1.3;
  margin:0 0 12px; max-width:58ch; font-weight:650; letter-spacing:-0.01em; }
.call-title a { color:var(--ink); text-decoration:none; }
.call-title a:hover { text-decoration:underline; text-underline-offset:4px; }
.call-title .call-go { color:var(--faint); font-size:0.7em; }
.call-excerpt { font-size:clamp(16px,1.8vw,18px); line-height:1.62;
  color:var(--ink-soft); margin:0 0 16px; max-width:62ch; }
.call-img, .call-vid { display:block; width:100%; max-width:560px; height:auto;
  border:1px solid var(--hairline); border-radius:8px; margin:0 0 16px; }
.call-img { background:#fff; }
.call-vid { background:#000; }
.call-meta { font-family:var(--font-mono); font-size:14px; color:var(--muted); letter-spacing:0.01em;
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; line-height:1.5; }
.call-meta .date { color:var(--ink-soft); }
.call-meta .src { color:var(--muted); text-transform:none; letter-spacing:0; font-size:13.5px; }
.call-meta .dot { color:var(--ghost); }
.call-meta .tag { border:1px solid var(--line); border-radius:999px; padding:2px 11px;
  font-size:13px; color:var(--ink-soft); white-space:nowrap; letter-spacing:0.02em; }
@media (max-width:640px){
  .call-meta { font-size:13px; }
  .call-excerpt { max-width:none; }
}
