/* NULL Ventures — site styles
   Monochrome, single reading column, restrained motion.
   Type matches the original nullventures.co: Work Sans (500) for display
   headings, Helvetica/Arial for everything else. Work Sans is self-hosted (OFL). */

@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #000;
  --text: #f2f2f2;
  --body: #c8c8c8;
  --muted: #a8a8a8;
  --dim: #8c8c8c;
  --paper: #efefef;
  --paper-ink: #161616;
  --paper-body: #3d3d3d;
  --reader: 640px;
  --gutter: 24px;
  --blink: 1060ms;               /* one on/off cycle of the terminal cursor */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  padding: 12px 14px; background: #fff; color: #000; text-decoration: none;
}
.skip-link:focus { top: 10px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.reader { width: min(var(--reader), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.micro { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
/* Arrows are inline SVG: iOS draws the ↗ character as an emoji. */
.arrow { display: inline-block; vertical-align: .05em; transition: transform .25s var(--ease); }
.arrow svg { display: block; width: .82em; height: .82em; }
a:hover .arrow, a:focus-visible .arrow { transform: translate(2px, -2px); }

/* ---------- Header & wordmark ---------- */

.site-header { position: absolute; inset: 0 auto auto 0; z-index: 5; padding: 12px 22px; }
.brand {
  width: 100px; height: 100px;
  display: grid; place-items: center;
  background: #000; text-decoration: none;
  outline-offset: -4px;
}
.wordmark { position: relative; display: block; width: 79px; aspect-ratio: 581 / 304; }
.wordmark img { width: 100%; height: 100%; object-fit: contain; }

/* The underscore is the displaced final L. It is drawn separately so that it,
   and only it, blinks — hard on/off like a Bash cursor, never a fade. */
.cursor {
  position: absolute; left: 63%; top: 51.1%; width: 35.3%; height: 10.2%;
  background: #fff;
  animation: cursor-blink var(--blink) steps(1, end) infinite;
}
@keyframes cursor-blink { 0%, 49.99% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Shared type ---------- */

.section-title {
  margin: 0 0 48px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.005em;
  color: var(--text);
}
.framework-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px; min-height: 46px;
  background: #e6e6e6; color: #0b0b0b; text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  transition: background-color .18s ease;
}
.framework-link:hover, .framework-link:focus-visible { background: #fff; }
.framework-link .arrow { font-weight: 400; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(600px, 52vw, 820px);
  background: #0b0b0b;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 0%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 26%, rgba(0,0,0,.34) 52%,
    rgba(0,0,0,.86) 82%, #000 100%);
}
.hero-body {
  position: absolute; z-index: 1;
  left: 50%; bottom: clamp(56px, 7vw, 104px); transform: translateX(-50%);
  width: min(1040px, calc(100% - 2 * var(--gutter)));
}
.hero h1 {
  margin: 0; max-width: 15.5em;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 4.9vw, 72px); line-height: 1.1; letter-spacing: -.01em;
  color: #fafafa; text-wrap: balance;
}
.tagline {
  margin-top: 22px;
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; color: #dedede;
}

/* ---------- Manifesto ---------- */

.manifesto {
  padding: 96px 0 104px;
  font-family: var(--sans); font-size: clamp(20px, 1.5vw, 22px); line-height: 1.6;
  color: var(--body);
}
.manifesto p + p { margin-top: 1.1em; }
.manifesto strong { color: #fff; font-weight: 500; }
.paper { margin-top: 40px; }
.paper-cite { margin-top: 16px !important; font-size: 17px; line-height: 1.45; color: var(--muted); }
.paper-cite cite { font-style: italic; }
.paper-id { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--dim); letter-spacing: .02em; }

/* ---------- Trust Meter band ---------- */

.meter-band { background: var(--paper); color: var(--paper-ink); padding: 96px 0 44px; }
.meter-band :focus-visible { outline-color: #111; }
.meter-layout {
  width: min(1120px, calc(100% - 2 * var(--gutter))); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.meter-intro h2 {
  margin: 0 0 22px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -.005em; color: var(--paper-ink);
}
.meter-intro p { font-family: var(--sans); font-size: 19px; line-height: 1.58; color: var(--paper-body); }
.meter-finding {
  margin-top: 30px !important; padding-top: 24px; border-top: 1px solid #cfcfcf;
  font-size: 20px !important; line-height: 1.5 !important; color: #1d1d1d !important;
}

.meter {
  background: #0a0a0a; color: #e8e8e8;
  border: 1px solid #2c2c2c;
  padding: 22px 26px 18px;
  font-size: 15px;
}
.meter-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: #a0a0a0;
  padding-bottom: 14px; border-bottom: 1px solid #1f1f1f;
}
.meter-head > span:first-child { color: #ededed; font-weight: 600; }
.meter-edition { text-transform: none; }

.meter-sectors { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.meter-sectors button {
  min-height: 34px; padding: 7px 11px;
  border: 1px solid #333; background: transparent;
  color: #b4b4b4; font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.meter-sectors button:hover { color: #f0f0f0; border-color: #666; }
.meter-sectors button[aria-checked="true"] { color: #0a0a0a; background: #ececec; border-color: #ececec; }
.meter .meter-sectors button:focus-visible { outline: 1px solid #e8e8e8; outline-offset: 2px; }

.meter-reading { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 26px 0 22px; }
.meter-value { display: flex; align-items: baseline; gap: 5px; font-family: var(--mono); font-weight: 300; line-height: 1; }
#meterValue { font-size: 58px; letter-spacing: -.04em; color: #f4f4f4; min-width: 2.2ch; }
.meter-unit { font-size: 14px; color: #8a8a8a; }
.meter:not([data-state="ready"]):not([data-state="cached"]) .meter-unit { visibility: hidden; }
.meter-meta { padding-bottom: 6px; min-width: 0; }
.meter-band-label { font-family: var(--sans); font-size: 24px; line-height: 1.15; color: #f0f0f0; }
.meter-scope { margin-top: 6px !important; font-size: 11px; color: #9a9a9a; letter-spacing: .08em; }
.caret {
  display: inline-block; width: .55em; height: 2px; margin-right: 8px; vertical-align: baseline;
  background: currentColor; animation: cursor-blink var(--blink) steps(1, end) infinite;
}
.meter[data-state="ready"] .caret,
.meter[data-state="cached"] .caret { display: none; }

/* Scale: 0–100, band boundaries from the dataset, sector ticks, CI, marker */
.meter-scale { margin: 0 0 24px; }
.scale-track { position: relative; height: 22px; border-bottom: 1px solid #4a4a4a; overflow-x: clip; }
.scale-zones span {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%);
  border-left: 1px solid #2a2a2a;
  transition: background-color .4s ease;
}
.scale-zones span:first-child { border-left-color: #4a4a4a; }
.scale-zones span.is-current { background: #171717; }
.scale-ticks span {
  position: absolute; bottom: 0; width: 1px; height: 7px;
  left: calc(var(--pos) * 1%); background: #6e6e6e;
}
/* CI and marker span the full track and move by transform, so percentages
   resolve against the track width and nothing triggers layout. */
.scale-ci {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px;
  background: #7a7a7a; opacity: 0; transform-origin: 0 50%;
  transform: translateX(calc(var(--lo, 0) * 1%)) scaleX(calc((var(--hi, 0) - var(--lo, 0)) / 100));
  transition: transform .6s var(--ease), opacity .3s ease;
}
.scale-ci.is-on { opacity: .55; }
.scale-marker {
  position: absolute; left: 0; top: -3px; bottom: -4px; width: 100%; opacity: 0; pointer-events: none;
  transform: translateX(calc(var(--pos, 0) * 1%));
  transition: transform .6s var(--ease), opacity .3s ease;
}
.scale-marker::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #f4f4f4;
}
.meter[data-state="ready"] .scale-marker,
.meter[data-state="cached"] .scale-marker { opacity: 1; }
.scale-labels { position: relative; height: 16px; margin-top: 7px; font-size: 10.5px; color: #8f8f8f; letter-spacing: .04em; }
.scale-labels span { position: absolute; left: calc(var(--pos) * 1%); transform: translateX(-50%); }
.scale-labels span:first-child { transform: none; }
.scale-labels span:last-child { transform: translateX(-100%); }

.meter-pillars { margin: 0; display: grid; grid-template-columns: auto minmax(40px, 1fr) 3ch; gap: 12px 16px; align-items: center; }
.meter-pillars dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #c4c4c4; white-space: nowrap; }
.meter-pillars dt .w { color: #8c8c8c; margin-left: 7px; }
.meter-pillars .bar { position: relative; height: 1px; background: #333; }
.meter-pillars .bar::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: #d6d6d6; transform-origin: 0 50%;
  transform: scaleX(calc(var(--v, 0) / 100));
  transition: transform .6s var(--ease);
}
.meter-pillars dd { margin: 0; font-family: var(--mono); font-size: 16px; text-align: right; color: #f0f0f0; }

.meter-meaning { margin-top: 22px !important; font-family: var(--sans); font-size: 18px; line-height: 1.5; color: #c2c2c2; min-height: 1.5em; }

.meter-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid #1f1f1f;
  display: grid; gap: 6px; font-size: 11px; letter-spacing: .07em; color: #b0b0b0;
}
.meter-foot .k { display: inline-block; min-width: 7.5ch; color: #8c8c8c; }
.status-dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px;
  border: 1px solid #9a9a9a; background: transparent;
}
.meter[data-state="ready"] .status-dot { background: #e8e8e8; border-color: #e8e8e8; }
.meter[data-state="loading"] .status-dot { animation: cursor-blink var(--blink) steps(1, end) infinite; }

.meter-sources { margin-top: 14px; border-top: 1px solid #1f1f1f; }
.meter-sources summary {
  list-style: none; cursor: pointer; padding: 12px 0 2px; min-height: 32px;
  font-size: 11px; color: #c0c0c0; letter-spacing: .08em;
}
.meter-sources summary::-webkit-details-marker { display: none; }
.meter-sources summary::before { content: "+"; display: inline-block; width: 1.6ch; color: #8c8c8c; }
.meter-sources[open] summary::before { content: "\2212"; }
.meter-sources summary:hover { color: #fff; }
.meter-sources-body { padding: 10px 0 4px; font-size: 14.5px; line-height: 1.6; color: #b4b4b4; }
.meter-sources-body p + p { margin-top: 10px; }
.meter-sources-body ol { margin: 14px 0 0; padding-left: 2.8ch; font-size: 13px; color: #a4a4a4; }
.meter-sources-body li + li { margin-top: 5px; }
.meter-sources-body li::marker { font-family: var(--mono); color: #7a7a7a; }

.meter-disclaimer { margin-top: 32px; text-align: center; font-size: 14px; line-height: 1.55; color: #555; }

/* ---------- Portfolio ---------- */

.portfolio { width: min(1120px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 112px 0 40px; }
/* An index of the ventures: the names carry the section, one ruled row each. */
.ventures { margin: 0; padding: 0; list-style: none; border-top: 1px solid #333; }
.venture {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding: 30px 0 28px; border-bottom: 1px solid #333;
}
.venture-title {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.02em; color: #f4f4f4;
}
.venture-title a { color: inherit; text-decoration: none; }
.venture-title a::after { content: ""; position: absolute; inset: 0; }
.venture-title a:focus-visible { outline: none; }
.venture-title a:focus-visible::after { outline: 2px solid #fff; outline-offset: 4px; }
.venture-body { padding-top: 6px; }
.venture-layer { font-family: var(--sans); font-size: 17px; font-weight: 700; color: #fff; }
.venture-desc { margin-top: 6px; max-width: 30em; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--body); }
.venture-domain {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  font-family: var(--sans); font-size: 14px; letter-spacing: .02em; color: #a8a8a8;
}
.venture:hover .venture-title, .venture:focus-within .venture-title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.venture:hover .venture-domain, .venture:focus-within .venture-domain { color: #fff; }
.venture:hover .arrow, .venture:focus-within .arrow { transform: translate(2px, -2px); }
.portfolio-outro {
  max-width: 34em; margin-top: 48px;
  font-family: var(--sans); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.4; color: #dadada;
}

/* ---------- Quote band ---------- */

.quote-band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 420px; margin-top: 96px; padding: 80px var(--gutter);
  display: flex; align-items: center; justify-content: center;
  background: #050505;
}
.quote-media, .quote-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-media img { object-fit: cover; object-position: 50% 55%; opacity: .55; }
.quote-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.4), rgba(0,0,0,.82) 72%);
}
.quote-band blockquote {
  position: relative; z-index: 1; margin: 0; max-width: 980px; text-align: center;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 50px); line-height: 1.2; letter-spacing: -.005em;
  text-shadow: 0 2px 24px #000; text-wrap: balance;
}
.quote-band blockquote::before {
  content: "\201C"; display: block; margin-bottom: 4px;
  font-size: 1.6em; line-height: .8; color: #9a9a9a;
}

/* ---------- Contact ---------- */

.contact { padding: 112px 0 96px; }
.contact form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 400; color: #cfcfcf; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid #5c5c5c; border-radius: 1px; background: transparent;
  color: #f8f8f8; font-size: 17px;
  transition: border-color .2s ease;
}
.field input { height: 52px; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #7a7a7a; }
.field input:focus, .field textarea:focus { border-color: #e6e6e6; outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 1px solid #e6e6e6; outline-offset: 2px; }
.field [aria-invalid="true"] { border-style: dashed; border-color: #e6e6e6; }
.contact button[type="submit"] {
  height: 54px; width: 100%; margin-top: 6px;
  border: 0; background: #fff; color: #0b0b0b;
  font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  transition: background-color .2s ease;
}
.contact button[type="submit"]:hover { background: #d6d6d6; }
.contact button[type="submit"][disabled] { background: #9a9a9a; cursor: progress; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { min-height: 1.4em; font-size: 15px; line-height: 1.5; color: #e6e6e6; }

/* ---------- Footer ---------- */

.footer { padding: 24px 16px 44px; text-align: center; font-size: 14px; line-height: 1.6; color: #8c8c8c; border-top: 1px solid #161616; }

/* ---------- Simple pages (thank-you, 404) ---------- */

.simple {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 90px;
}
.simple h1 {
  margin: 0 0 20px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.005em;
}
.simple p { font-family: var(--sans); font-size: 21px; line-height: 1.55; color: var(--body); }
.simple .framework-link { margin-top: 36px; align-self: flex-start; }

/* ---------- Reveal (only for content still below the fold) ---------- */

.reveal.is-pending { opacity: 0; transform: translateY(12px); }
.reveal.is-in { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .meter-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 640px; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .site-header { padding: 13px 17px; }
  .brand { width: 83px; height: 83px; }
  .wordmark { width: 67px; }
  .hero { height: clamp(600px, 94svh, 760px); }
  .hero-media img { object-position: 50% 0%; }
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(0,0,0,.12) 0%, rgba(0,0,0,.05) 26%, rgba(0,0,0,.5) 52%, rgba(0,0,0,.92) 76%, #000 100%);
  }
  .hero-body { left: var(--gutter); right: var(--gutter); bottom: 56px; width: auto; transform: none; }
  .hero h1 { font-size: clamp(40px, 10.6vw, 52px); line-height: 1.03; }
  .tagline { margin-top: 16px; }
  .manifesto { padding: 64px 0 72px; font-size: 20px; }
  .meter-band { padding: 64px 0 36px; }
  .meter { padding: 18px 16px 14px; }
  #meterValue { font-size: 50px; }
  .portfolio { padding: 80px 0 24px; }
  .section-title { margin-bottom: 40px; }
  .venture { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0 26px; }
  .venture-body { padding-top: 0; }
  .venture-desc { font-size: 16.5px; }
  .quote-band { min-height: 340px; margin-top: 72px; padding: 64px var(--gutter); }
  .contact { padding: 80px 0 72px; }
}

@media (max-width: 380px) {
  .meter-pillars { grid-template-columns: auto minmax(24px, 1fr) 3ch; gap: 12px 10px; }
  .meter-pillars dt .w { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .caret, .meter[data-state="loading"] .status-dot { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (forced-colors: active) {
  .cursor, .scale-marker::before, .meter-pillars .bar::after { background: CanvasText; forced-color-adjust: none; }
}
