/* 3lbow.com — performance readout, variant "received" (v2: "one number, one line").
   A monumental total-return figure over a single edge-to-edge NAV line; the detail
   below is set in the same quiet language: hairlines, negative space, one accent.
   See ../DESIGN-received.md. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-var.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #050607;
  --text: #F3F5F4;
  --muted: rgba(243, 245, 244, 0.62);
  --faint: rgba(243, 245, 244, 0.36);
  --acc: #BFF3D9;          /* the one accent: the line, positives */
  --neg: #FFA593;          /* negative values only (data, never decoration) */
  --warn: #FFD27A;         /* illustrative / stale — a signal, not a decoration */
  --rule: rgba(255, 255, 255, 0.1);
  --g: 20px;
  --calm: cubic-bezier(0.22, 1, 0.36, 1);
  --draw: cubic-bezier(0.65, 0, 0.35, 1);
  --display: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --g: 40px; } }
@media (min-width: 1200px) { :root { --g: 56px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--ui);
  font-size: 15px; line-height: 1.45; overflow-x: hidden;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.tone.pos { color: var(--acc); }
.tone.neg { color: var(--neg); }
[hidden] { display: none !important; }

/* small-caps label voice used everywhere */
.eyebrow, .l-t, .p-t, .sect-meta, .tag, .wm-sub, .feed, .hline-end .lab {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; line-height: 16px;
}
.tag { color: var(--warn); }

/* ---------- motion: few, slow, deliberate ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(28px); letter-spacing: -0.02em; } to { opacity: 1; transform: none; letter-spacing: -0.06em; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawLine { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes flash  { from { color: var(--warn); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

.rise { opacity: 0; animation: rise 1.4s var(--calm) var(--d, 0ms) forwards; }

/* ================= BANNER ================= */
.banner {
  position: relative; z-index: 6; min-height: 34px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 7px var(--g); background: var(--warn); color: #000;
  font-size: 13px; line-height: 17px; font-weight: 500; letter-spacing: 0.01em;
}

/* ================= FIRST SCREEN ================= */
.hero {
  position: relative; overflow: hidden;
  height: calc(100svh - 34px); min-height: 560px;
  display: flex; flex-direction: column; padding: 0 var(--g);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 14px; align-self: flex-start; margin-top: 26px; min-height: 28px; white-space: nowrap; }
.wm-name { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.wm-sub { color: var(--muted); }

.headline { margin-top: clamp(56px, 13vh, 150px); }
.eyebrow { color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.eyebrow .sep { color: var(--faint); }
.headline h1 { font-weight: 400; margin-top: 18px; }
.hero-fig {
  display: block; font-family: var(--display); font-weight: 200; color: var(--text);
  font-size: clamp(84px, 24vw, 380px); line-height: 0.84; letter-spacing: -0.06em;
  margin-left: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; animation: settle 2s var(--calm) 450ms forwards;
}

.feed { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; color: var(--muted); align-self: flex-start; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; animation: breathe 3.2s ease-in-out infinite; }
.stale .feed { color: var(--warn); }
.stale .dot { background: var(--warn); animation: none; }
@media (min-width: 900px) {
  .feed { position: absolute; top: 26px; right: var(--g); margin: 0; min-height: 28px; }
}

/* the one graphic */
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; }
@media (min-width: 900px) { .horizon { height: 38%; } }
.hline { display: block; width: 100%; height: 100%; overflow: visible; }
.hline .ln { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hline .area { fill: url(#hGrad); }
.hline .end { fill: var(--acc); }
.hline .draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawLine 3.4s var(--draw) 1100ms forwards; }
.hline .fade { opacity: 0; animation: fadeIn 1.8s var(--calm) 3000ms forwards; }
.hline .late { opacity: 0; animation: fadeIn 1.2s var(--calm) 4300ms forwards; }
.hline-end {
  position: absolute; right: var(--g); bottom: 50%; text-align: right; white-space: nowrap;
  font-family: var(--display); font-size: 22px; letter-spacing: -0.01em;
  opacity: 0; animation: fadeIn 1.2s var(--calm) 4300ms forwards;
}
.hline-end .lab { font-family: var(--ui); color: var(--acc); margin-right: 8px; }

/* ================= DETAIL ================= */
.detail { padding: 0 var(--g); }
.sect { padding-top: 96px; scroll-margin-top: 12px; }
@media (min-width: 900px) { .sect { padding-top: 140px; } }
.sect-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--rule); margin-bottom: 34px; }
.sect-h h2 { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 14px; }
.sect-h h2 .num { font-family: var(--ui); font-size: 12px; letter-spacing: 0.14em; color: var(--acc); }
.sect-meta { color: var(--muted); margin-left: auto; }
@media (max-width: 639px) { .sect-meta { margin-left: 0; flex-basis: 100%; } .sect-h h2 { font-size: 24px; } }

/* lead ratios: the three that used to sit in the first screen */
.leads { display: grid; grid-template-columns: 1fr; margin-bottom: 56px; }
.lead { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.l-t { color: var(--muted); }
.l-v { font-family: var(--display); font-weight: 200; font-size: 60px; line-height: 0.95; letter-spacing: -0.045em; }
.l-d { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .leads { grid-template-columns: repeat(3, 1fr); margin-bottom: 72px; }
  .lead { border-bottom: 0; border-left: 1px solid var(--rule); padding: 6px 28px 6px 28px; }
  .lead:first-child { border-left: 0; padding-left: 0; }
  .l-v { font-size: clamp(64px, 6.6vw, 104px); }
}

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (min-width: 900px) { .panels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; } }
.panel { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 26px; border-top: 1px solid var(--rule); min-height: 132px; }
.p-t { color: var(--muted); font-size: 11.5px; word-break: break-word; }
.p-v { font-family: var(--display); font-weight: 200; font-size: 34px; line-height: 1; letter-spacing: -0.035em; margin-top: 4px; }
.p-d { font-size: 12px; line-height: 15px; color: var(--muted); margin-top: auto; }
@media (min-width: 900px) { .panel { min-height: 152px; } .p-t { font-size: 12px; } .p-v { font-size: 44px; } .p-d { font-size: 13px; } }
.flash { animation: flash 2s var(--calm); }

/* charts */
.chart { position: relative; height: 400px; }
.chart.short { height: 230px; }
@media (max-width: 639px) { .chart { height: 270px; } .chart.short { height: 190px; } }
.chart .plot { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.plot text { font-family: var(--ui); font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot .axis { stroke: var(--rule); stroke-width: 1; }
.plot .gl { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.plot .base { stroke: rgba(255,255,255,.22); stroke-dasharray: 2 4; }
.plot .ln { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.plot .area { fill: url(#gAcc); }
.plot .dd-ln { fill: none; stroke: var(--neg); stroke-width: 1.25; stroke-linejoin: round; }
.plot .dd-area { fill: rgba(255,165,147,.14); }
.plot .mark { fill: var(--neg); }
.plot .mark-t { fill: var(--neg); font-size: 12px; }
.plot .end { fill: var(--acc); }
.plot .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.plot .draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.plot.go .draw { animation: drawLine 2.6s var(--draw) forwards; }
.plot .fade { opacity: 0; }
.plot.go .fade { animation: fadeIn 1.6s var(--calm) 1.2s forwards; }
.tip {
  position: absolute; top: 6px; left: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(5,6,7,.94); border: 1px solid var(--rule); padding: 6px 10px; font-size: 12px; line-height: 15px; white-space: nowrap;
}
.tip b { font-weight: 300; font-family: var(--display); font-size: 15px; }
.tip.on { opacity: 1; }

/* monthly grid — years × months (desktop), months × years (phone) */
.months { overflow: hidden; }
.mgrid { display: grid; gap: 3px; }
.mgrid .hd { font-size: 12px; line-height: 15px; color: var(--muted); padding: 6px 4px; text-align: center; letter-spacing: 0.08em; text-transform: uppercase; }
.mgrid .rh { font-size: 13px; color: var(--text); padding: 0 8px 0 0; display: flex; align-items: center; }
.mgrid .c {
  position: relative; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; letter-spacing: -0.01em; background: rgba(255,255,255,.025);
}
.mgrid .c.pos { color: var(--acc); }
.mgrid .c.neg { color: var(--neg); }
.mgrid .c.none { color: var(--faint); }
.mgrid .c.best, .mgrid .c.worst { outline: 1px solid currentColor; outline-offset: -1px; }
.m-wide { grid-template-columns: 52px repeat(12, minmax(0, 1fr)); }
.m-tall { grid-template-columns: 44px repeat(var(--years), minmax(0, 1fr)); display: none; }
@media (max-width: 899px) { .m-wide { display: none; } .m-tall { display: grid; } .mgrid .c { height: 40px; } }
.months .mgrid .c { opacity: 0; }
.months.is-in .mgrid .c { animation: scaleIn 1s var(--calm) forwards; animation-delay: calc(var(--i, 0) * 22ms); }
.mkey { margin-top: 14px; font-size: 12px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.mkey .acc { color: var(--acc); }
.mkey .negc { color: var(--neg); }
.mkey i { display: inline-block; width: 10px; height: 10px; outline: 1px solid currentColor; margin-right: 6px; vertical-align: -1px; }

/* method notes */
.notes-body { display: grid; gap: 12px; max-width: 760px; font-size: 14px; line-height: 21px; }
.basis { list-style: none; display: grid; gap: 8px; padding-left: 0; }
.basis li { position: relative; padding-left: 18px; }
.basis li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--acc); }
.source { font-size: 13px; }
.notes-illus { justify-self: start; background: var(--warn); color: #000; font-size: 13px; line-height: 17px; padding: 3px 8px; font-weight: 500; }

/* scroll-in */
.io { opacity: 0; transform: translateY(12px); }
.io.is-in { animation: rise 1.2s var(--calm) forwards; }
.panels .io.is-in, .leads .io.is-in { animation-delay: calc(var(--i, 0) * 80ms); }
.months.io { opacity: 1; transform: none; }
.months.io.is-in { animation: none; }

/* ================= FOOTER ================= */
.foot { margin-top: 120px; padding: 28px var(--g) 44px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.foot-wm { font-family: var(--display); font-size: 22px; }
.foot-p { font-size: 13px; line-height: 19px; max-width: 720px; color: var(--muted); }

/* ================= 404 ================= */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 var(--g); position: relative; }
.nf .wordmark { position: absolute; top: 0; left: var(--g); }
.nf .code { font-family: var(--display); font-weight: 200; font-size: clamp(110px, 28vw, 280px); line-height: .84; letter-spacing: -0.06em; }
.nf .home { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; color: var(--acc); border-bottom: 1px solid var(--acc); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-fig, .hline .draw, .hline .fade, .hline .late, .hline-end, .io, .io.is-in,
  .months .mgrid .c, .months.is-in .mgrid .c, .plot .draw, .plot.go .draw, .plot .fade, .plot.go .fade {
    animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important;
  }
  .hline .draw, .plot .draw { stroke-dasharray: none; }
  .dot, .flash { animation: none; }
}
