@font-face { font-family: 'JBM'; src: url(fonts/JetBrainsMono-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JBM'; src: url(fonts/JetBrainsMono-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JBM'; src: url(fonts/JetBrainsMono-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }

/* Mićko on paper: his plumage printed like riso ink on warm paper, as in the video. */
:root {
  --paper: #efe4cf; --paper2: #e4d5b9; --cream: #fbf8f1; --ink: #1f1a17; --soft: #4a3f36; --dim: #8a7b69;
  /* --red is small-label text on --paper: keep it at 4.5:1 or darker. */
  --red: #ca1b1d; --verm: #e8553b; --yellow: #f2c14e; --ochre: #e3a21a; --olive: #6f8a2a;
  --blue: #3f5bb8; --violet: #6f7fd6; --teal: #2e5e6e;
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* iOS enlarges text on rotation to landscape and the terminals overflow their windows. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 JBM, ui-monospace, monospace; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

/* Paper: faint grid, mottling and grain, fixed behind everything. */
.paper { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--paper); }
.paper::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(63,91,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(63,91,184,.07) 1px, transparent 1px);
  background-size: 48px 48px; }
.paper::after { content: ''; position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.004 .06' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .4  0 0 0 0 .28  0 0 0 .22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>"),
    radial-gradient(ellipse at center, transparent 58%, rgba(120,90,50,.22) 100%); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px); border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.top .brand { font-weight: 800; font-size: 24px; text-decoration: none; letter-spacing: -.03em; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--red); }
.top .gh { background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 6px; }
.top .gh:hover { color: var(--yellow); }
@media (max-width: 720px) { .top nav .opt { display: none; } }

/* Type: kickers are box-drawing rules, titles end in a block cursor. */
.kicker { font: 700 15px JBM, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; overflow: hidden; }
.kicker::before { content: '╭─ '; }
.kicker::after { content: ' ────────────────────'; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(32px, 5vw, 56px); margin: 10px 0 18px; }
h2::after, .cur::after { content: ''; display: inline-block; width: .55em; height: .82em; background: var(--red); vertical-align: -.06em; margin-left: .14em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 60% { opacity: .15; } }
p { color: var(--soft); }
p + p { margin-top: 12px; }
code, kbd { font-family: inherit; }
/* Crimson with a cobalt plate slightly off. */
.grad { color: var(--red); text-shadow: .045em .035em 0 rgba(63,91,184,.55); }

/* Paper cut-outs: ink borders and hard offset shadows. */
.card { background: var(--cream); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); }
.chip { display: inline-block; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
kbd { display: inline-block; min-width: 1.9em; text-align: center; font-weight: 700; font-size: .85em; line-height: 1.5; padding: 0 .4em;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); }
.pill { display: inline-block; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 8px; color: var(--ink);
  background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pill.red { background: var(--red); color: var(--cream); }
.pill.blue { background: var(--blue); color: var(--cream); }
.tape { position: absolute; width: 120px; height: 32px; opacity: .8; z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.15);
  background: var(--yellow) repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 6px, transparent 6px 12px); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.mark { font-size: clamp(88px, 17vw, 200px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.mark .blk { display: inline-block; width: .5em; height: .85em; margin-left: .08em; vertical-align: -.03em;
  background: linear-gradient(180deg, var(--red), var(--verm)); animation: blink 1.1s steps(1) infinite; }
.tagline { font-size: clamp(18px, 2.4vw, 26px); color: var(--ink); margin-top: 18px; }
.phases { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 0; list-style: none; }
.try { display: inline-block; text-align: left; margin-top: 40px; padding: 22px 26px; max-width: 100%; }
.try .ln { display: flex; align-items: center; gap: 12px; font-size: clamp(14px, 2.2vw, 20px); font-weight: 500; white-space: pre; }
.try .ln + .ln { margin-top: 10px; }
.try .ps { color: var(--olive); }
.try .cm { color: var(--dim); font-size: 14px; margin-top: 10px; white-space: normal; }
@media (max-width: 420px) { .try { padding: 16px 12px; } .try .ln { font-size: 12px; gap: 8px; flex-wrap: wrap; } }
.copy { margin-left: auto; font: 700 12px JBM, monospace; padding: 3px 8px; cursor: pointer; background: var(--paper2);
  border: 2px solid var(--ink); border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); }
.copy:active { transform: translate(2px, 2px); box-shadow: none; }

/* Terminal window: a sheet with an ink border and a hard offset shadow. */
.win { position: relative; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 12px 12px 0 var(--ink); overflow: hidden; background: #272822; }
.win .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--paper2); border-bottom: 3px solid var(--ink); }
.win .bar i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); }
.win .bar i:nth-child(1) { background: var(--red); } .win .bar i:nth-child(2) { background: var(--yellow); } .win .bar i:nth-child(3) { background: var(--blue); }
.win .bar b { flex: 1; text-align: center; font-size: 13px; color: var(--soft); margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The video */
.film { margin: 64px auto 0; max-width: 1100px; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--paper); }
.film .ctl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 10px; }
.film .ctl button { cursor: pointer; font-family: inherit; }
.film .ctl button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* Screens drawn from real captures, 124×32 cells, scaled to their box. */
.screen { position: relative; overflow: hidden; }
.screen .term { position: absolute; left: 0; top: 0; width: 1144px; padding: 14px; transform-origin: 0 0;
  font: 400 15px/20px JBM, monospace; font-variant-ligatures: none; white-space: pre; }
.term .r { display: block; height: 20px; }
.term span.b { display: inline-block; height: 20px; vertical-align: top; }
.term i { font-style: normal; display: inline-block; width: 1ch; text-align: center; overflow: visible; }
.term i.k { width: calc(1ch + .6px); margin-right: -.6px; height: 20.6px; margin-bottom: -.6px; vertical-align: top; }
.term i.k.s { width: 1ch; margin-right: 0; height: 20px; margin-bottom: 0; }

/* What micko does */
section { padding: 72px 0; }
.center { text-align: center; }
.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.job { padding: 16px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.job:nth-child(1) { transform: rotate(-2deg); } .job:nth-child(2) { transform: rotate(1.5deg); }
.job:nth-child(3) { transform: rotate(-1deg); } .job:nth-child(4) { transform: rotate(2deg); }
.job:hover { transform: translateY(-10px) scale(1.03); }
.job .win { box-shadow: 5px 5px 0 var(--ink); border-width: 2px; }
.job .win .bar { height: 16px; border-bottom-width: 2px; padding: 0 6px; gap: 4px; }
.job .win .bar i { width: 7px; height: 7px; border-width: 1px; }
.job h3 { font-size: 30px; margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.job h3 span { margin-left: auto; display: flex; gap: 5px; font-size: 16px; }
.job .rule { width: 56px; height: 6px; margin: 8px 0 10px; }
.job p { font-size: 14px; line-height: 1.5; }
@media (max-width: 960px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jobs { grid-template-columns: 1fr; } }

/* Feature rows: copy on one side, a screen on the other. */
.feat { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feat.flip { grid-template-columns: 7fr 5fr; }
.feat.flip .copy-side { order: 2; }
.feat .keys { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--soft); }
.feat .shot { position: relative; }
.feat .note { position: absolute; z-index: 3; transform: rotate(-1.5deg); }
@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 32px; }
  .feat.flip .copy-side { order: 0; }
  .feat .note { position: static; display: inline-block; margin-top: 18px; transform: none; }
}

.stack { position: relative; padding-bottom: 18%; }
.stack .win + .win { position: absolute; width: 58%; right: -3%; bottom: 0; transform: rotate(1.5deg); }
@media (max-width: 1240px) { .stack .win + .win { right: 0; } }

/* Filter: the query typed live. */
.query { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin: 6px 0 22px; white-space: pre; min-height: 1.3em; }
.query .sl { color: var(--dim); }
.query .k { color: var(--blue); } .query .op { color: var(--red); } .query .v { color: var(--ochre); }
.query .c { display: inline-block; width: .5em; height: .9em; background: var(--blue); vertical-align: -.08em; animation: blink 1.1s steps(1) infinite; }
table.q { border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.q td { padding: 4px 14px 4px 0; vertical-align: top; color: var(--soft); }
table.q td:first-child { white-space: nowrap; color: var(--ink); font-weight: 700; }

/* Actions: four outcomes. */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.outcomes div { padding: 10px 14px; font-size: 13px; color: var(--soft); background: var(--cream); border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.outcomes b { display: block; font-size: 16px; letter-spacing: .06em; }

/* Connect */
.yaml { padding: 22px 24px; font-size: 14px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.yaml .k { color: var(--blue); font-weight: 700; } .yaml .c { color: var(--dim); } .yaml .s { color: var(--olive); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.facts div { padding: 10px 14px; font-size: 13px; color: var(--soft); background: var(--cream); border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.facts b { display: block; color: var(--ink); font-size: 15px; }
#argo-ui p, #argo-ui .facts { max-width: 760px; margin-inline: auto; }
#argo-ui .facts { text-align: left; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Skins */
.skins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 36px; }
.skins button { font: 700 14px JBM, monospace; cursor: pointer; padding: 6px 12px 6px 30px; position: relative; border-radius: 8px;
  background: var(--cream); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.skins button::before { content: ''; position: absolute; left: 9px; top: 50%; width: 13px; height: 13px; margin-top: -7px; border-radius: 3px;
  background: var(--sw); border: 2px solid var(--ink); }
.skins button[aria-pressed=true] { background: var(--ink); color: var(--cream); }
.skins button:active { transform: translate(3px, 3px); box-shadow: none; }
.skinwin { max-width: 1000px; margin: 0 auto; }

/* Mićko */
.bird { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: center; }
.photo { position: relative; background: var(--cream); padding: 14px 14px 46px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-3deg); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 14px; color: var(--soft); }
.photo .tape { top: -16px; left: 50%; margin-left: -60px; transform: rotate(-4deg); }
/* The monitor photo overlaps the first one, taped on top. */
.photos { position: relative; padding-bottom: 30%; }
.photos .photo:first-child { width: 66%; }
.photos .photo:first-child figcaption { text-align: left; left: 18px; }
.photo.front { position: absolute; right: 0; bottom: 0; width: 56%; padding-bottom: 40px; transform: rotate(4deg); }
.photo.front img { aspect-ratio: 3 / 4; }
.photo.front .tape { background-color: var(--violet); transform: rotate(5deg); }
@media (max-width: 900px) { .bird { grid-template-columns: 1fr; } .photos { max-width: 460px; width: 100%; margin: 0 auto; } }

/* Install */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
.way { padding: 20px 22px; }
.way h3 { font-size: 20px; margin-bottom: 10px; }
.way pre { font: 500 15px/1.6 JBM, monospace; white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.way pre .ps { color: var(--olive); }
.way p { font-size: 14px; margin-top: 8px; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* Feature ticker */
.ticker { overflow: hidden; border-block: 3px solid var(--ink); background: var(--cream); padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker div { display: inline-block; white-space: nowrap; font-weight: 700; font-size: 22px; color: var(--soft); animation: tick 60s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

footer { background: var(--ink); color: var(--paper); padding: 48px 0; margin-top: 72px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: baseline; }
footer .brand { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a:hover { color: var(--yellow); }
footer p { color: var(--dim); margin-left: auto; }

/* Things scroll into place. */
.in { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .7s cubic-bezier(.2,1.3,.4,1); }
.in.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .in { opacity: 1; transform: none; transition: none; }
  h2::after, .cur::after, .mark .blk, .query .c { animation: none; }
  .ticker div { animation: none; }
  html { scroll-behavior: auto; }
}

p code, td code { background: var(--paper2); color: var(--ink); padding: 0 .3em; border-radius: 4px; font-size: .92em; }
.job { text-align: left; }
h2 { text-wrap: balance; }
.feat > *, .bird > * { min-width: 0; }
@media (max-width: 600px) {
  .film .ctl { right: 8px; bottom: 8px; gap: 6px; }
  .film .ctl .pill { font-size: 12px; padding: 3px 8px; box-shadow: 2px 2px 0 var(--ink); }
  .query { font-size: 22px; }
}
