@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/BricolageGrotesque-var.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/HankenGrotesk-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { /* taste-skill-ignore: code only */ font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-400.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: light;
  --sky: #bcdcf4;
  --sky-pale: #e4f0fb;
  --sky-deep: #a8d0f0;
  --paper: #fafcfe;
  --paper-2: #edf2f8;
  --sheet: #ffffff;
  --ink: #0f2140;
  --ink-soft: #44587a;
  --navy-2: #1b3157;
  --line: #0b0b0c;
  --on-dark: #eef4fb;
  --on-dark-soft: #b5c5dc;
  --ok: #2457c5;
  --ok-tint: #d6e5fa;
  --amber: #e39a1c;
  --amber-tint: #fbe5bb;
  --amber-ink: #6e4300;
  --red: #c4342b;
  --red-tint: #f7d9d5;
  --red-ink: #9a2018;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace; /* taste-skill-ignore: code blocks only */

  --s-hero: clamp(42px, 6.3vw, 100px);
  --s-h2: clamp(34px, 4.4vw, 68px);
  --s-statement: clamp(20px, 1.8vw, 27px);
  --s-body: 18px;
  --s-small: 15px;

  --gutter: clamp(16px, 2.4vw, 36px);
  --gap: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-body)/1.55 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .84em; }
::selection { background: var(--ink); color: var(--on-dark); }
:focus-visible { outline: 3px solid var(--ok); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 680; letter-spacing: -0.035em; line-height: .96; }
h2 { font-size: var(--s-h2); }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 640; }
.statement { font-family: var(--display); font-weight: 460; font-size: var(--s-statement); line-height: 1.28; letter-spacing: -0.012em; max-width: 34ch; }
.fine { font-size: var(--s-small); color: var(--ink-soft); }
figcaption { font-size: var(--s-small); color: var(--ink-soft); margin-top: 14px; max-width: 60ch; }

/* buttons: square, flat, ink */
.btn { display: inline-block; background: var(--ink); color: var(--on-dark); text-decoration: none; font-weight: 650; font-size: 17px; padding: 15px 26px; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-quiet { background: var(--navy-2); }
.link { font-weight: 650; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color .18s; }
.link:hover { color: var(--ok); }

/* ---------- hero: the sky ---------- */
.hero { position: relative; height: clamp(860px, 100svh, 1020px); overflow: hidden; background: #a9d2f3; isolation: isolate; }
.sky-still, .sky-still img, canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-still img { object-fit: cover; object-position: 70% 50%; }
canvas.sky { opacity: 0; transition: opacity .6s; }
.sky-on canvas.sky { opacity: 1; }
.sky-on .sky-still { visibility: hidden; transition: visibility 0s .6s; }
.tags { position: absolute; inset: 0; pointer-events: none; z-index: 1; display: none; }
.sky-on .tags { display: block; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; background: var(--sheet); color: var(--line); border: 2.5px solid var(--line); padding: 4px 10px 4px 6px; font-size: 15px; font-weight: 650; white-space: nowrap; line-height: 1.2; margin-top: -12px; transition: background-color .3s; will-change: transform; }
.tag::after { content: ""; position: absolute; left: calc(50% - 3px); top: calc(100% + 2px); width: 6px; height: 8px; background: var(--line); }
.tag-mark { width: 16px; height: 16px; flex: none; background: var(--paper-2); display: grid; place-items: center; transition: background-color .3s; }
.tag-mark svg { width: 12px; height: 12px; fill: #fff; }
.tag[data-state="ok"] .tag-mark { background: var(--ok); }
.tag[data-state="hold"] { background: var(--amber-tint); }
.tag[data-state="hold"] .tag-mark { background: var(--amber); }
.tag[data-state="no"] { background: var(--red-tint); }
.tag[data-state="no"] .tag-mark { background: var(--red); }
.tag[data-state="log"] { background: var(--line); color: #fff; }
.tag[data-state="log"] .tag-mark { background: var(--on-dark); }
.tag[data-state="log"] .tag-mark svg { fill: var(--line); }
.tag[data-state] { animation: none; }

.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.wordmark { font-family: var(--display); font-size: 26px; font-weight: 720; letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 16px; font-weight: 550; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav nav a:hover { text-decoration-line: underline; }

.hero-copy { position: relative; z-index: 2; padding-top: clamp(20px, 5vh, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--s-hero); max-width: 11em; }
.lede { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.5; margin-top: 24px; max-width: 760px; font-weight: 450; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 30px; }

.flight { margin-top: clamp(24px, 4vh, 40px); max-width: 760px; }
.flight-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.flight-ask { font-size: 16px; font-weight: 600; margin-right: 6px; }
.flight-pick button { font: 650 15px var(--text); color: var(--ink); background: rgba(255, 255, 255, .55); border: 0; padding: 8px 14px; cursor: pointer; transition: background-color .2s, transform .15s; }
.flight-pick button:hover { background: #fff; }
.flight-pick button:active { transform: scale(.96); }
.flight-pick button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.flight-now { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin-top: 12px; font-size: 16px; }
.flight-who { font-weight: 600; }
.flight-call { font-size: 14px; white-space: pre-wrap; }
.flight-result { font-weight: 650; padding: 2px 10px; background: #fff; }
.flight-result[data-state="ok"] { background: var(--ok); color: #fff; }
.flight-result[data-state="hold"] { background: var(--amber); color: var(--ink); }
.flight-result[data-state="no"] { background: var(--red); color: #fff; }
.no-js .flight-pick, .sky-off .flight-pick { display: none; }

.poster .nav, .poster .hero-copy { visibility: hidden; }

/* ---------- one URL ---------- */
.oneurl { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 72px); margin-top: var(--gap); align-items: start; }
.oneurl > h2 { grid-column: 1 / -1; max-width: 18em; }
.oneurl-text p + p { margin-top: 18px; }
.oneurl-text p { max-width: 46ch; }

.config { background: var(--sheet); position: relative; }
.config-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; background: var(--sky-pale); }
.switch { display: inline-flex; background: var(--paper); padding: 4px; }
.switch button { font: 650 15px var(--text); border: 0; background: transparent; color: var(--ink-soft); padding: 9px 16px; cursor: pointer; transition: background-color .25s, color .25s, transform .15s; }
.switch button:hover { color: var(--ink); }
.switch button:active { transform: scale(.97); }
.switch button[aria-pressed="true"][data-show="before"] { background: var(--red); color: #fff; }
.switch button[aria-pressed="true"][data-show="after"] { background: var(--ink); color: var(--on-dark); }
.tally { font-size: 15px; color: var(--ink-soft); }
.tally b { color: var(--ink); }
.js .config[data-state="before"] .t-after, .js .config[data-state="after"] .t-before { display: none; }
.no-js .t-after { display: none; }
.config-file { padding: 18px 0 22px; }
.filename { font-size: var(--s-small); color: var(--ink-soft); padding: 0 22px 10px; }
.code { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.75; white-space: normal; overflow-x: auto; padding: 0 22px; color: var(--ink); }
.code code { font-size: inherit; display: block; min-width: max-content; }
.ln { display: block; white-space: pre; }
.ln.hot { background: var(--red-tint); margin-inline: -8px; padding-inline: 8px; }
.ln.calm { background: var(--ok-tint); margin-inline: -8px; padding-inline: 8px; color: var(--ink); font-weight: 500; }
.flag { display: block; font-family: var(--text); font-size: 13px; font-weight: 650; color: var(--red-ink); padding: 0 0 6px 32px; white-space: nowrap; }
.flag::before { content: "\2191\00a0"; }
.srv, .one { display: block; overflow: hidden; }
.js .srv { max-height: 4.2em; transition: max-height .55s var(--ease), opacity .35s, transform .45s var(--ease); transition-delay: calc(var(--i) * 32ms); }
.js .config[data-state="after"] .srv { max-height: 0; opacity: 0; transform: translateX(-24px); }
.js .one { max-height: 0; opacity: 0; transform: translateY(10px); transition: max-height .5s var(--ease) .45s, opacity .4s .55s, transform .5s var(--ease) .55s; }
.js .config[data-state="after"] .one { max-height: 4em; opacity: 1; transform: none; }
.after-pane { padding: 0 22px 22px; }
.after-pane p { font-size: var(--s-body); max-width: 64ch; margin-bottom: 18px; }
.js .after-pane { display: none; }
.js .config[data-state="after"] .after-pane { display: block; animation: rise .6s var(--ease) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- grants: pale sky field ---------- */
.field-sky { background: var(--sky-pale); margin-top: var(--gap); padding-block: clamp(80px, 10vw, 150px); }
.grants { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px clamp(24px, 3vw, 48px); }
.grants > *, .rules > *, .record > *, .oneurl > *, .connect > *, .leavers-shots > *, .rules-head > *, .record-head > * { min-width: 0; }
.grants-head { grid-column: 1 / 6; }
.grants-head .statement { margin-top: 28px; }
.grants-shot { grid-column: 6 / 13; margin-right: calc(var(--gutter) * -1); align-self: start; background: var(--sheet); padding: clamp(10px, 1.4vw, 20px); }
.kinds { grid-column: 1 / 9; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; align-content: start; }
.kinds dt { font-family: var(--display); font-weight: 640; font-size: var(--s-statement); letter-spacing: -0.02em; margin-bottom: 8px; }
.kinds dd { font-size: var(--s-body); }
.api-shot { grid-column: 9 / 13; }
.api-shot img { background: var(--sheet); padding: clamp(10px, 1.4vw, 20px); }

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px clamp(24px, 3vw, 48px); margin-top: var(--gap); }
.rules-head { grid-column: 1 / 13; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 48px); align-items: end; }
.rules-head h2 { max-width: 10em; }
.guard-shot { grid-column: 1 / 9; background: var(--paper-2); padding: clamp(14px, 2vw, 28px); }
.rules-side { grid-column: 9 / 13; align-self: center; display: grid; gap: 22px; }
.rules-side .big { font-family: var(--display); font-weight: 520; font-size: var(--s-statement); line-height: 1.28; }
.decisions { grid-column: 1 / 13; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; padding-bottom: 18px; }
.decisions th { text-align: left; font-size: var(--s-small); color: var(--ink-soft); font-weight: 600; padding: 0 16px 12px 0; }
.decisions td { padding: 16px 16px 16px 0; border-top: 2px solid var(--paper-2); vertical-align: top; font-size: var(--s-body); }
.decisions td:first-child code { font-size: 14px; white-space: nowrap; }
.d { font-weight: 650; white-space: nowrap; padding: 4px 10px; }
.d.ok { background: var(--ok-tint); color: var(--ok); }
.d.no { background: var(--red); color: #fff; }
.d.hold { background: var(--amber-tint); color: var(--amber-ink); }
.approvals-shot { grid-column: 4 / 13; background: var(--paper-2); padding: clamp(14px, 2vw, 28px); }

/* ---------- leavers ---------- */
.field-paper { background: var(--paper-2); margin-top: var(--gap); padding-block: clamp(80px, 10vw, 150px); }
.leavers h2 { max-width: 14em; }
.leavers .statement { margin-top: 28px; max-width: 40ch; }
.struck { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 48px; font-family: var(--display); font-weight: 560; font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.025em; line-height: 1.15; }
.struck span { position: relative; color: var(--ink-soft); }
.struck span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: .09em; background: var(--red); transform-origin: left; transform: scaleX(var(--strike, 1)); transition: transform .6s var(--ease); }
.js .struck:not(.in) span::after { --strike: 0; }
.struck span:nth-child(2)::after { transition-delay: .15s; }
.struck span:nth-child(3)::after { transition-delay: .3s; }
.struck span:nth-child(4)::after { transition-delay: .45s; }
.leavers-shots { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 3vw, 48px); margin-top: 64px; align-items: end; }
.members-shot { background: var(--sheet); padding: clamp(10px, 1.4vw, 20px); }
.offboard-shot img { background: var(--sheet); padding: clamp(10px, 1.4vw, 20px); width: 100%; }

/* ---------- record: ink field ---------- */
.field-ink { background: var(--ink); color: var(--on-dark); padding-block: clamp(80px, 10vw, 150px); }
.field-ink ::selection { background: var(--on-dark); color: var(--ink); }
.field-ink figcaption { color: var(--on-dark-soft); }
.record { display: grid; grid-template-columns: repeat(12, 1fr); gap: 64px clamp(24px, 3vw, 48px); }
.record-head { grid-column: 1 / 13; display: grid; grid-template-columns: 6fr 6fr; gap: clamp(24px, 3vw, 48px); align-items: end; }
.record-head .statement { max-width: 40ch; }
.audit-shot { grid-column: 2 / 13; margin-right: calc(var(--gutter) * -1); }
.soc { grid-column: 1 / 7; }
.soc h3 { margin-bottom: 24px; max-width: 16em; }
.soc th { text-align: left; font-size: var(--s-small); color: var(--on-dark-soft); font-weight: 600; padding: 0 16px 10px 0; }
.soc td { padding: 16px 16px 16px 0; border-top: 2px solid var(--navy-2); vertical-align: top; font-size: var(--s-body); }
.soc td:first-child { white-space: nowrap; font-weight: 650; }
.review-shot { grid-column: 7 / 13; align-self: start; margin-top: 64px; }

/* ---------- connect ---------- */
.connect { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); margin-top: var(--gap); align-items: center; }
.connect-text h2 { margin-bottom: 28px; }
.connect-text p { max-width: 50ch; }
.code.small { background: var(--ink); color: var(--on-dark); padding: 18px 20px; margin: 28px 0 16px; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.tokens-shot { background: var(--sky-pale); padding: clamp(14px, 2vw, 28px); }

/* ---------- pricing ---------- */
.pricing { margin-top: var(--gap); }
.pricing h2 { margin-bottom: 48px; }
.price-table { overflow-x: auto; }
.price-table table { min-width: 720px; }
.price-table th, .price-table td { text-align: left; padding: 15px 20px 15px 0; vertical-align: top; }
.price-table thead th { padding-bottom: 28px; }
.price-table tbody th { font-weight: 400; color: var(--ink-soft); width: 28%; }
.price-table tbody td, .price-table tbody th { border-top: 2px solid var(--paper-2); }
.price-table tbody td:empty::after { content: "\2014"; color: #9fb0c8; }
.price-table tfoot td { padding-top: 28px; }
.plan { display: block; font-size: var(--s-body); font-weight: 650; margin-top: 4px; }
.amount { display: block; font-family: var(--display); font-size: clamp(40px, 4.2vw, 64px); font-weight: 680; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 6px; }
.per { display: block; font-size: var(--s-small); font-weight: 400; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- close: back into the sky ---------- */
.close { position: relative; margin-top: var(--gap); background: var(--sky); overflow: hidden; min-height: clamp(520px, 62vw, 760px); display: grid; align-items: center; }
.close-sky { position: absolute; inset: 0; }
.px-cloud { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * var(--w)); height: auto; image-rendering: pixelated; transform: translateX(var(--px, 0px)); }
.close-plane { position: absolute; right: 16%; top: 38%; width: clamp(130px, 15vw, 230px); transform: rotate(-8deg) translateX(var(--fly, 0px)); }
.close-plane path { fill: #fff; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; }
.close-plane .shade { fill: var(--paper-2); }
.close-text { position: relative; padding-block: 96px; }
.close-text h2 { font-size: var(--s-hero); max-width: 8.2em; }
.close-text p { margin: 28px 0 36px; font-size: clamp(18px, 1.4vw, 21px); max-width: 40ch; font-weight: 450; }

/* ---------- footer ---------- */
.foot { padding-block: 72px 40px; }
.big-name { font-family: var(--display); font-weight: 720; letter-spacing: -0.055em; line-height: .9; font-size: clamp(60px, 19.5vw, 350px); color: var(--ink); padding-bottom: .16em; margin-left: -.04em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: 32px; font-size: 16px; }
.foot-row .fine { max-width: 44ch; }

/* entrances: content stays visible without script */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .px-cloud { animation: drift 40s linear infinite alternate; }
.js .px-cloud:nth-child(2) { animation-duration: 55s; animation-direction: alternate-reverse; }
.js .close-plane { animation: glide 7s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(80px); } }
@keyframes glide { from { transform: rotate(-8deg) translate(-30px, 8px); } to { transform: rotate(-5deg) translate(30px, -10px); } }

/* ---------- tablet and phone ---------- */
@media (max-width: 1080px) {
  .nav nav { display: none; }
  .oneurl, .connect, .leavers-shots { grid-template-columns: 1fr; }
  .grants > *, .rules > *, .record > * { grid-column: 1 / -1 !important; }
  .grants-shot, .audit-shot { margin-right: 0; }
  .rules-head, .record-head { grid-template-columns: 1fr; }
  .review-shot { margin-top: 0; }
}
@media (max-width: 700px) {
  :root { --s-body: 17px; }
  .hero { height: auto; min-height: min(100svh, 980px); }
  .hero h1 { font-stretch: 88%; }
  .hero-copy { padding-top: 16px; padding-bottom: 430px; }
  .lede { margin-top: 20px; }
  .actions { margin-top: 24px; }
  .flight { margin-top: 28px; }
  .tag { font-size: 13px; padding: 3px 8px 3px 5px; gap: 6px; }
  .tag-mark { width: 13px; height: 13px; }
  .tag-mark svg { width: 10px; height: 10px; }
  .kinds { grid-template-columns: 1fr; }
  .config { margin-inline: calc(var(--gutter) * -1); }
  .code { padding: 0 16px; font-size: 11px; overflow-x: visible; }
  .code code { min-width: 0; }
  .flag { white-space: normal; padding-left: 16px; }
  .ln[data-m] { font-size: 0; }
  .ln[data-m]::before { content: attr(data-m); font-size: 11px; white-space: pre; }
  .struck { font-size: 22px; gap: 4px 18px; }
  .filename, .after-pane { padding-inline: 16px; }
  .config-bar { padding: 12px 16px; }
  .guard-shot, .approvals-shot, .tokens-shot, .grants-shot { margin-inline: calc(var(--gutter) * -1); }
  .decisions table, .soc table { font-size: 15px; }
  .decisions thead { display: none; }
  .decisions tr { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--paper-2); padding: 14px 0; }
  .decisions td { border: 0; padding: 3px 0; }
  .decisions td:first-child code { white-space: normal; word-break: break-all; }
  .soc td:first-child { white-space: normal; }
  .price-table table { min-width: 0; }
  .price-table tr { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 12px; }
  .price-table thead th:first-child, .price-table tfoot td:first-child { display: none; }
  .price-table tbody th { grid-column: 1 / -1; width: auto; padding: 14px 0 2px; }
  .price-table tbody td { border-top: 0; padding: 2px 8px 12px 0; font-size: 15px; }
  .amount { font-size: 30px; }
  .price-table tfoot .btn { padding: 12px 10px; font-size: 14px; display: block; text-align: center; }
  .close { min-height: 0; }
  .close-text { padding-block: 200px 72px; }
  .close-plane { top: 10%; right: 8%; }
  .px-cloud:first-child { --x: 4% !important; --y: 4% !important; }
  .px-cloud { --s: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
