:root {
  --bg: #000;
  --ink: #ededee;
  --silver: #b7bbc1;
  --grey: #6d7178;
  --line: rgba(255, 255, 255, 0.09);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 500; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.0; }
.dim { color: var(--grey); }
.kicker { font: 500 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin: 0 0 22px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); mix-blend-mode: difference; }
.mark { font: 500 13px var(--mono); letter-spacing: 0.4em; }
.nav-link { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(56px, 12vh, 120px);
  background: radial-gradient(70% 55% at 70% 30%, rgba(255,255,255,0.06), transparent 70%); }
.hero h1 { font-size: clamp(40px, 6.4vw, 104px); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 .ln { display: block; opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 .ln + .ln { color: var(--grey); animation-delay: .35s; }
.hero .sub { margin: 28px 0 0; max-width: 520px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; color: var(--silver); opacity: 0; animation: fade 1.2s ease 1.1s forwards; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: clamp(56px, 12vh, 120px); opacity: 0; animation: fade 1s ease 1.8s forwards; }
.scroll-hint span { display: block; width: 1px; height: 56px; background: linear-gradient(var(--silver), transparent); animation: hint 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* blocks */
.block { padding: clamp(110px, 16vw, 220px) 0; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.two.flip { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .two, .two.flip { grid-template-columns: 1fr; } .two.flip > figure { order: 2; } }
figure { margin: 0; }
figcaption { margin-top: 18px; font: 400 11px var(--mono); letter-spacing: 0.06em; color: var(--grey); }
.chart { width: 100%; }
.chart.small { margin: 28px 0 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis text { fill: var(--grey); font: 10.5px var(--mono); }
.axis line, .axis path { stroke: rgba(255,255,255,0.12); }
#library-canvas { width: 100%; aspect-ratio: 1; display: block; }

.control { margin: 48px 0 30px; max-width: 420px; }
.control label { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.control b { color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: rgba(255,255,255,0.3); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); cursor: grab; box-shadow: 0 0 0 6px rgba(255,255,255,0.08); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
.figures { display: flex; gap: clamp(28px, 4vw, 56px); margin-top: 36px; }
.figures span { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.figures b { font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.text-btn { background: none; border: 0; padding: 0; color: var(--grey); font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.text-btn:hover { color: var(--ink); }

/* contact */
.contact { padding-bottom: clamp(120px, 18vw, 240px); }
.contact h2 { margin-bottom: 56px; }
form { display: flex; gap: 0; max-width: 720px; border-bottom: 1px solid rgba(255,255,255,0.3); }
form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 300 clamp(18px, 2vw, 24px) var(--sans); padding: 18px 0; outline: none; }
form input::placeholder { color: var(--grey); }
form button { background: none; border: 0; color: var(--ink); font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; padding: 0 0 0 20px; white-space: nowrap; }
form button:hover { color: #fff; }
form:focus-within { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 18px 0 0; font: 400 12px var(--mono); letter-spacing: 0.06em; color: var(--silver); }
@media (max-width: 560px) { form { flex-direction: column; border: 0; gap: 18px; } form input { border-bottom: 1px solid rgba(255,255,255,0.3); } form button { padding: 0; text-align: left; } }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); font: 400 11px var(--mono); letter-spacing: 0.08em; color: var(--grey); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-hint span { animation: none; } .hero h1 .ln, .hero .sub, .scroll-hint { animation: none; opacity: 1; transform: none; filter: none; } .reveal { opacity: 1; transform: none; transition: none; } }
.lead .body { margin: 28px 0 32px; max-width: 460px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; font-weight: 300; color: var(--silver); }
