@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; src: url(/fonts/serif.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; src: url(/fonts/serif-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url(/fonts/serif-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url(/fonts/serif-italic-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --bg: #0b0b0e;
  --bg-2: #121217;
  --fg: #f2f0ea;
  --muted: #8f8c86;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .035);
  --t1: #ff7a45;
  --t2: #ff3d7f;
  --t3: #7c5cff;
  --t4: #35c8ff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5f0;
    --bg-2: #efece5;
    --fg: #141317;
    --muted: #6d6a64;
    --line: rgba(0, 0, 0, .09);
    --card: rgba(255, 255, 255, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 520px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
@media (min-width: 720px) { .hero { padding: 120px 0 150px; } }
.threads { position: absolute; inset: -40px 0 0; z-index: -1; width: 100%; height: 100%; opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 45%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 95% 75% at 50% 45%, #000 35%, transparent 80%); }
.threads path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 6 14; animation: weave 14s linear infinite; }
.threads path:nth-child(2n) { animation-duration: 19s; animation-direction: reverse; }
.threads path:nth-child(3n) { stroke-dasharray: 2 10; animation-duration: 23s; }
@keyframes weave { to { stroke-dashoffset: -400; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--card); backdrop-filter: blur(8px); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 10.5vw, 128px); line-height: .95; letter-spacing: -.025em; margin: 28px 0 28px; max-width: 11ch; }
h1 em, .grad { font-style: italic; background: linear-gradient(100deg, var(--t1), var(--t2) 40%, var(--t3) 75%, var(--t4)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; margin: 0; }
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.nots li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--card); }
.nots li s { color: var(--muted); text-decoration-color: var(--t2); text-decoration-thickness: 2px; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.5vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 40px; max-width: 16ch; }

/* App cards */
.apps { display: grid; gap: 16px; }
@media (min-width: 860px) { .apps { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card { position: relative; border-radius: 24px; padding: 28px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 69, .35); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0 0 22px; max-width: 30em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.card .meta a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.card .meta a:hover { border-color: var(--fg); }
.card .tag { color: var(--muted); }
.stage { height: 190px; margin: -4px -4px 26px; border-radius: 16px; background: var(--bg-2); position: relative; overflow: hidden; }

/* Buckets mock: buckets sorting themselves */
.chips { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 550;
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  animation: drop .9s cubic-bezier(.34, 1.56, .64, 1) both, bob 6s ease-in-out 1s infinite alternate; }
.chip b { font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.chip:nth-child(2) { animation-delay: .12s, 1.4s; } .chip:nth-child(3) { animation-delay: .24s, .7s; } .chip:nth-child(4) { animation-delay: .36s, 2s; }
.chip:nth-child(5) { animation-delay: .48s, 1.1s; } .chip:nth-child(6) { animation-delay: .6s, 1.7s; }
@keyframes drop { from { opacity: 0; transform: translateY(-28px) scale(.9); } }
@keyframes bob { to { translate: 0 -5px; } }

/* Brulion mock: an image resolving from noise */
.paint { position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 35%, var(--t1), transparent 45%), radial-gradient(circle at 70% 60%, var(--t3), transparent 50%),
              radial-gradient(circle at 55% 20%, var(--t4), transparent 40%), radial-gradient(circle at 20% 80%, var(--t2), transparent 45%), var(--bg-2);
  filter: blur(28px) saturate(1.2); animation: resolve 6s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: denoise 6s ease-in-out infinite alternate; }
.steps { position: absolute; left: 16px; bottom: 14px; font: 12px/1 ui-monospace, "Cascadia Mono", Menlo, monospace; color: #fff; opacity: .85; letter-spacing: .04em; }
@keyframes resolve { from { filter: blur(40px) saturate(.6); transform: scale(1.15); } to { filter: blur(10px) saturate(1.3); transform: scale(1); } }
@keyframes denoise { from { opacity: .95; } to { opacity: .15; } }

/* Principles */
.principles { display: grid; gap: 36px; counter-reset: p; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.principles div { counter-increment: p; }
.principles div::before { content: "0" counter(p); display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; margin-bottom: 14px; color: var(--t1); }
.principles h4 { font-size: 19px; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
.principles p { margin: 0; color: var(--muted); }

/* Contact */
.contact a.big { font-family: var(--serif); font-size: clamp(32px, 6vw, 64px); line-height: 1.05; text-decoration: none; letter-spacing: -.02em; word-break: break-word; }
.contact a.big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }

/* Policy pages */
.prose { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.prose h1 { font-size: clamp(44px, 7vw, 72px); max-width: none; margin: 24px 0 8px; }
.prose .lead { margin-bottom: 36px; }
.prose h2 { font-size: 30px; margin: 44px 0 8px; max-width: none; }
.prose p, .prose li { color: var(--fg); }
.prose a { color: var(--t1); }
.prose .lang { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
