:root {
  --sky: #6893d5;
  --sky-deep: #5d89cf;
  --cream: #f1e6cf;
  --cream-2: #e7dabd;
  --ink: #2a2f45;
  --muted: #545b78;
  --orange: #e5623a;
  --green: #98944a;
  --green-deep: #7f7c3c;
  --tree: #4d78c4;
  --line: rgba(42, 47, 69, 0.16);
  --display: "Bricolage Grotesque", "Familjen Grotesk", sans-serif;
  --body: "Familjen Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* paper grain over everything */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 40; opacity: 0.55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.18 0 0 0 0 0.27 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(0, 0); }
}

/* orbit that follows the pointer */
.orbit {
  position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 60; pointer-events: none;
  transform: translate(var(--x, -100px), var(--y, -100px));
  --r: 26px;
  transition: opacity 0.3s;
}
.orbit i {
  position: absolute; left: -5px; top: -7px; width: 10px; height: 14px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--cream);
  animation: orbit 3.4s linear infinite;
  transition: border-color 0.3s, background-color 0.3s;
}
.orbit i:nth-child(2) { animation-delay: -1.133s; }
.orbit i:nth-child(3) { animation-delay: -2.266s; }
.orbit.on-sky i { border-color: var(--cream); background: var(--sky-deep); }
.orbit.wide { --r: 44px; }
.orbit.wide i { animation-duration: 1.6s; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
@media (hover: none) { .orbit { display: none; } }

/* sky */
.sky {
  position: relative; background: var(--sky); color: var(--ink);
  padding: 44px 0 0; overflow: hidden;
}
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; display: block; background: var(--cream);
  border-radius: 50%;
  transform: translate(calc(var(--px, 0) * var(--f, 18px)), calc(var(--py, 0) * var(--f, 18px) * 0.5));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.c1 { width: 170px; height: 48px; left: 66%; top: 46%; --f: 22px; animation: drift 38s linear infinite; }
.c1::before { width: 74px; height: 74px; left: 28px; top: -36px; }
.c1::after { width: 46px; height: 46px; left: 92px; top: -20px; }
.c2 { width: 110px; height: 30px; left: 86%; top: 20%; --f: 12px; animation: drift 52s linear infinite reverse; }
.c2::before { width: 40px; height: 40px; left: 30px; top: -18px; }
.c3 { width: 230px; height: 54px; left: 80%; top: 74%; --f: 30px; animation: drift 46s linear infinite; }
.c3::before { width: 94px; height: 94px; left: 42px; top: -48px; }
.c3::after { width: 62px; height: 62px; left: 134px; top: -28px; }
@keyframes drift { from { margin-left: 0; } 50% { margin-left: 40px; } to { margin-left: 0; } }

.top { position: relative; display: grid; grid-template-columns: 1.15fr 1.4fr; gap: 48px; align-items: start; }
.brand { display: flex; gap: 18px; align-items: flex-start; }
.mark { display: block; flex: none; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mark:hover { transform: rotate(-6deg) scale(1.06); }
.name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.02em; margin: 6px 0 12px; }
.tagline { margin: 0; max-width: 46ch; font-size: 15.5px; line-height: 1.5; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 6px; }
.col h4 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.col a { display: block; font-size: 15px; padding: 3px 0; opacity: 0.85; position: relative; width: fit-content; }
.col a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--cream); transition: right 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.col a:hover { opacity: 1; color: var(--cream); }
.col a:hover::after { right: 0; }

.headline { position: relative; padding: 9vh 32px 6vh; }
.headline h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.96; letter-spacing: -0.03em; color: var(--cream); margin: 0 0 22px; max-width: 14ch;
  text-shadow: 0 1px 0 rgba(42, 47, 69, 0.12);
}
.live { margin: 0; font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(229, 98, 58, 0.6); animation: pulse 2.2s ease-out infinite; }
.dot.idle { background: var(--cream); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 98, 58, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(229, 98, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 98, 58, 0); } }

/* hero illustration */
.hero {
  position: relative; height: clamp(340px, 50vw, 700px); overflow: hidden; background: var(--sky);
}
.hero-img, .hero-video {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: center bottom;
  transform: translate(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.4s ease;
}
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 4; pointer-events: none; background: linear-gradient(var(--sky), rgba(104, 147, 213, 0)); }
.hero-video { z-index: 2; }
.hero-video.done { opacity: 0; pointer-events: none; }
.hero-video.hidden { display: none; }
.wire {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; fill: none;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transform: translate(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 9px));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: wirefade 2.4s ease 3.4s forwards;
}
.wire-sky { stroke: var(--cream); }
.wire-ground { stroke: var(--ink); }
.wire path, .wire ellipse {
  stroke-dasharray: 5200; stroke-dashoffset: 5200;
  animation: draw 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.wire path:nth-child(1) { animation-delay: 0.1s; }
.wire path:nth-child(2) { animation-delay: 0.35s; }
.wire path:nth-child(3) { animation-delay: 0.6s; }
.wire path:nth-child(4) { animation-delay: 0.9s; }
.wire ellipse { animation-delay: 0.5s; }
.wire path:nth-child(5) { animation-delay: 1.1s; }
.wire path:nth-child(6) { animation-delay: 1.3s; }
.wire path:nth-child(7) { animation-delay: 1.5s; }
.wire path:nth-child(8) { animation-delay: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wirefade { to { opacity: 0.28; } }

/* ground */
.ground { position: relative; z-index: 1; }
.block { padding: 64px 32px; border-top: 1px dashed var(--line); opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.block.in { opacity: 1; transform: none; }
.block:first-child { border-top: 0; }
.block-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.block-head h2 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; margin: 0; }
.sub { margin: 0; color: var(--muted); font-size: 15px; }

.figures { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 0 0 30px; }
.figures p { margin: 0; font-size: 14.5px; color: var(--muted); }
.figures b { display: block; font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.15; margin-top: 2px; }
.figures b.up { color: var(--green-deep); }
.figures b.down { color: var(--orange); }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13.5px; padding: 0 14px 10px 0; border-bottom: 1.5px solid var(--ink); }
.tbl td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .n { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.tbl tr { transition: background-color 0.3s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.35); }
.tbl .empty { color: var(--muted); padding: 18px 0; }
.tbl .why { color: var(--muted); }
.tbl .call-bought { color: var(--orange); font-weight: 600; }
.tbl .call-candidate { color: var(--tree); font-weight: 600; }
.tbl .meta { color: var(--muted); font-size: 13px; margin-left: 8px; }
tr.fresh { animation: rowin 0.8s ease; }
@keyframes rowin { from { background: rgba(229, 98, 58, 0.18); } to { background: transparent; } }

.txns { list-style: none; margin: 0; padding: 0; }
.txns li { display: grid; grid-template-columns: 76px 110px 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.txns li.empty { display: block; color: var(--muted); }
.txns .t { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.txns .k { font-weight: 600; }
.txns .k.buy { color: var(--tree); } .txns .k.sale { color: var(--green-deep); } .txns .k.llm, .txns .k.hosting { color: var(--orange); }
.txns .m { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txns .a { font-family: var(--mono); font-size: 14px; }

.logbox {
  margin: 0; background: var(--cream-2); border-left: 3px solid var(--orange); padding: 16px 18px;
  height: 300px; overflow-y: auto; font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: var(--ink);
}
.logbox .l { display: block; animation: linein 0.5s ease; }
.logbox .l.warn { color: var(--orange); }
.logbox .l.error { color: #b3402a; }
.logbox .t { color: var(--muted); margin-right: 8px; }
@keyframes linein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.prose p { max-width: 72ch; font-size: 16.5px; line-height: 1.62; margin: 0 0 14px; }
.prose p:first-child::first-letter { font-family: var(--display); font-weight: 800; font-size: 2.1em; line-height: 0.8; float: left; margin: 6px 8px 0 0; color: var(--orange); }

/* built on */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 0 34px; }
.pillars article { border-top: 2px solid var(--ink); padding-top: 14px; }
.pillars h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.pillars h3 a { border-bottom: 0; } .pillars h3 a:hover { color: var(--orange); }
.pillars p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.58; }
.pillars .status { color: var(--orange); font-size: 13.5px; }
.pillars .status code { background: var(--cream-2); padding: 0 0.35ch; font-size: 12.5px; }
.tools.also li { grid-template-columns: 200px 1fr; font-size: 14.5px; padding: 9px 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 24px; } }
.tools { list-style: none; margin: 0; padding: 0; }
.tools li { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.tools li a { font-family: var(--display); font-weight: 700; border-bottom: 1.5px solid var(--faint, rgba(42,47,69,.3)); }
.tools li a:hover { color: var(--orange); border-color: var(--orange); }
.tools li span { color: var(--muted); }
.tools li.next span::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1.5px solid var(--orange); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 860px) { .tools li { grid-template-columns: 1fr; gap: 4px; } }

/* fields footer */
.fields { position: relative; background: var(--green); color: var(--cream); padding: 120px 0 36px; overflow: hidden; }
.stripes { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--cream); stroke-width: 3.5; opacity: 0.55; }
.stripes path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 3s ease forwards; }
.stripes path:nth-child(2) { animation-delay: 0.3s; } .stripes path:nth-child(3) { animation-delay: 0.6s; }
.foot { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* load-in */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .top { grid-template-columns: 1fr; gap: 30px; }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .headline { padding: 6vh 20px 5vh; }
  .block { padding: 44px 20px; }
  .figures { gap: 14px 26px; }
  .figures b { font-size: 24px; }
  .txns li { grid-template-columns: 64px 1fr auto; }
  .txns .m { display: none; }
  .tbl { font-size: 14px; }
  .c2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .block { opacity: 1; transform: none; }
  .wire { opacity: 0.28; } .wire path, .wire ellipse { stroke-dashoffset: 0; }
  .hero-video { display: none; }
}

/* subpages */
.sky.small { padding: 18px 0 16px; }
.sky.small .clouds .c1 { top: 12%; left: 47%; width: 120px; height: 34px; }
.sky.small .clouds .c1::before { width: 52px; height: 52px; left: 20px; top: -26px; } .sky.small .clouds .c1::after { width: 34px; height: 34px; left: 66px; top: -14px; }
.sky.small .clouds .c3 { display: none; }
.sky.small .clouds .c3::before { width: 62px; height: 62px; left: 28px; top: -32px; } .sky.small .clouds .c3::after { width: 42px; height: 42px; left: 88px; top: -18px; }
.bar { position: relative; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand-sm { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.pagenav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.pagenav a { opacity: 0.85; padding: 2px 0; border-bottom: 1.5px solid transparent; }
.pagenav a:hover { opacity: 1; color: var(--cream); }
.pagenav a.here { color: var(--cream); border-bottom-color: var(--cream); opacity: 1; }
.bar .live { margin-left: auto; font-size: 12.5px; }
.subpage .block-head h1 { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; margin: 0; }
.subpage .block h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 8px; }
.subpage .block h2 .count { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 8px; }
.subpage .block h2 + .sub { margin-bottom: 14px; }
.fields.small { padding: 70px 0 28px; }
.up { color: var(--green-deep); } .down { color: var(--orange); }
.tbl.wide { font-size: 13.5px; } .tbl.wide td, .tbl.wide th { padding-right: 10px; }
.tbl .meta { display: block; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.tbl .meta a { border-bottom: 1px solid var(--line); }
.tbl tr.sum td { border-top: 1.5px solid var(--ink); font-weight: 600; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; } dl.kv .meta { color: var(--muted); font-size: 13px; margin-left: 8px; }
.funnel { display: grid; gap: 6px; max-width: 720px; }
.frow { display: grid; grid-template-columns: 96px 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.fk { color: var(--muted); } .fn { text-align: right; }
.fbar { height: 14px; background: var(--cream-2); border-left: 1.5px solid var(--ink); }
.fbar i { display: block; height: 100%; background: var(--orange); transform-origin: left; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes grow { from { transform: scaleX(0); } }
.reasons { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 40px; font-size: 14.5px; }
.reasons li { padding: 4px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }
.reasons li .mono { display: inline-block; min-width: 48px; color: var(--orange); }
.filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; }
.filters button, .filters select { font: inherit; background: transparent; color: var(--ink); border: 0; border-bottom: 1.5px solid transparent; padding: 2px 0; cursor: pointer; }
.filters button:hover { color: var(--orange); }
.filters button.on { border-bottom-color: var(--orange); color: var(--orange); }
.filters select { border-bottom-color: var(--line); }
.journal { list-style: none; margin: 0; padding: 0; }
.journal li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.jhead { display: grid; grid-template-columns: 90px 90px 1fr auto; gap: 14px; align-items: baseline; font-size: 14px; }
.jhead .t { color: var(--muted); font-size: 12.5px; } .jhead .k { font-weight: 600; } .jhead .m { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jhead .ref { color: var(--faint, #b6a586); font-size: 12px; }
.jhead .k.buy { color: var(--tree); } .jhead .k.sale { color: var(--green-deep); } .jhead .k.llm, .jhead .k.hosting { color: var(--orange); }
.jentries { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; font-size: 13px; }
.jentries .acct { color: var(--muted); margin-right: 8px; } .jentries .dr { color: var(--ink); } .jentries .cr { color: var(--orange); }
.logbox.tall { height: 62vh; }
.logbox .step { color: var(--tree); margin-right: 8px; }
.logbox .rep { color: var(--orange); margin-left: 8px; }
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.pages a { border-top: 2px solid var(--ink); padding-top: 12px; display: block; transition: border-color 0.3s; }
.pages a:hover { border-top-color: var(--orange); }
.pages b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.pages span { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 860px) {
  .pages { grid-template-columns: 1fr 1fr; }
  .reasons { columns: 1; }
  .jhead { grid-template-columns: 80px 1fr; } .jhead .m, .jhead .ref { display: none; }
  .bar .live { margin-left: 0; }
  .subpage .block-head h1 { font-size: 32px; }
}
