/*
 * Legism site. One stylesheet for all three pages.
 *
 * Black and white: the logo is a grey cobblestone block, so the page is cut from the
 * same material - near-black stone with a faint pixel grain, greys for everything
 * secondary, and plain white for whatever can be clicked or matters most. No colour.
 */
:root {
  --stone-0: #0a0a0a;
  --stone-1: #121212;
  --stone-2: #1a1a1a;
  --stone-3: #242424;
  --stone-4: #333333;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f2f2;
  --text-2: #a6a6a6;
  --text-3: #707070;
  --accent: #f2f2f2;
  --accent-edge: #9a9a9a;
  --accent-ink: #0a0a0a;
  --mid: #5a5a5a;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--stone-0);
  /* the pixel grain: two offset 4px checkers at very low contrast read as stone, not as
     a pattern, and cost nothing to draw */
  background-image:
    radial-gradient(1200px 600px at 75% -10%, rgba(255, 255, 255, .045), transparent 60%),
    linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.012) 75%),
    linear-gradient(45deg, rgba(255,255,255,.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.012) 75%);
  background-size: auto, 8px 8px, 8px 8px;
  background-position: 0 0, 0 0, 4px 4px;
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(13, 14, 16, .72);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 18px/1 var(--display);
  letter-spacing: -.01em;
}

.brand img { width: 30px; height: 30px; image-rendering: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color .15s, background .15s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--stone-2); }

.top .btn { padding: 9px 16px; font-size: 14px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--stone-2);
  color: var(--text);
  font: 700 15px/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}

.btn:hover { background: var(--stone-3); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* the primary button: white, with a grey bottom edge like the shaded side of a block */
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: inset 0 -4px 0 var(--accent-edge), 0 10px 30px -12px rgba(255, 255, 255, .25);
}

.btn-primary:hover { background: #ffffff; border-color: transparent; box-shadow: inset 0 -4px 0 var(--accent-edge), 0 14px 36px -12px rgba(255, 255, 255, .35); }

.btn-primary small { font-weight: 600; opacity: .7; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 72px 0 40px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--stone-1);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}

.hero h1 {
  margin: 0;
  font: 800 clamp(40px, 6.4vw, 76px)/1.02 var(--display);
  letter-spacing: -.035em;
}

.hero h1 .mark {
  /* grey rather than coloured: the second line stands out by contrast alone */
  color: var(--text-3);
}

.hero .lead {
  margin: 24px 0 32px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 18px;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 14px;
}

.meta span { display: inline-flex; align-items: center; gap: 7px; }

.meta svg { width: 15px; height: 15px; color: var(--accent); }

.meta a { color: var(--text-2); }

/* the logo, standing in for itself: the real image, floating and tilting a little
   towards the pointer */

.logo-stage {
  position: relative;
  height: 420px;
  perspective: 900px;
  display: grid;
  place-items: center;
}

.logo-stage::after {
  /* its shadow on the ground */
  content: "";
  position: absolute;
  bottom: 26px;
  width: 250px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent);
  filter: blur(4px);
  animation: shadow 6s ease-in-out infinite;
}

.logo-float { animation: float 6s ease-in-out infinite; }

.logo-3d {
  width: 340px;
  height: auto;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
  will-change: transform;
}

@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.86); opacity: .7; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .logo-stage { height: 290px; order: -1; }
  .logo-3d { width: 220px; }
  .logo-stage::after { width: 170px; bottom: 16px; }
}

/* ---------------------------------------------------------------- library band */

.band {
  margin: 28px 0 0;
  border-block: 1px solid var(--line);
  background: var(--stone-1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.band-track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 20px 0;
  animation: slide 38s linear infinite;
}

.band-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font: 700 18px/1 var(--display);
  letter-spacing: -.01em;
  white-space: nowrap;
}

.band-track span::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 9px 9px 0 var(--mid);
  margin-right: 8px;
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

section { padding: 96px 0 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 13px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; }

h2 {
  margin: 0;
  max-width: 18em;
  font: 800 clamp(30px, 4vw, 46px)/1.08 var(--display);
  letter-spacing: -.03em;
}

.sub { margin: 16px 0 0; max-width: 40em; color: var(--text-2); font-size: 17px; }

.head { margin-bottom: 40px; }

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat { padding: 26px 24px; background: var(--stone-1); }

.stat b { display: block; font: 800 34px/1 var(--display); letter-spacing: -.03em; }

.stat span { display: block; margin-top: 10px; color: var(--text-3); font-size: 14px; }

@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  grid-column: span 2;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--stone-2), var(--stone-1));
  overflow: hidden;
  transition: border-color .25s, transform .2s ease-out, box-shadow .3s;
}

.tile:hover {
  border-color: var(--line-strong);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}

.tile.wide { grid-column: span 3; }
.tile.big { grid-column: span 4; }

.tile .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--stone-3);
  color: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
}

.tile .ico svg { width: 22px; height: 22px; }

.tile h3 { margin: 0 0 8px; font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }

.tile p { margin: 0; color: var(--text-2); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.chips span {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--stone-0);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.big { grid-column: span 1; }
  .tile.big { grid-column: span 2; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile.big { grid-column: span 1; }
}

/* comparison */

.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
  overflow-x: auto;
}

.compare table { width: 100%; min-width: 600px; border-collapse: collapse; }

.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }

.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

.compare thead th { color: var(--text-2); font-size: 14px; font-weight: 700; background: var(--stone-2); }

.compare thead th.us { color: var(--accent-ink); background: var(--accent); }

.compare tbody th { text-align: left; font-weight: 600; color: var(--text); }

.compare td.us { background: rgba(255, 255, 255, .04); }

.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }

.yes { background: var(--accent); color: var(--accent-ink); }

.no { background: var(--stone-3); color: var(--text-3); }

.yes svg, .no svg { width: 15px; height: 15px; }

.note { margin: 14px 0 0; color: var(--text-3); font-size: 13px; }

/* download tiles */

.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.os {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
  text-decoration: none;
  transition: border-color .25s, transform .2s ease-out, background .25s, box-shadow .3s;
}

.os:hover {
  border-color: var(--line-strong);
  background: var(--stone-2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}

.os.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -24px rgba(255, 255, 255, .25); }

.os svg { width: 30px; height: 30px; margin-bottom: 10px; }

.os b { font: 700 20px/1.2 var(--display); }

.os span { color: var(--text-2); font-size: 14px; }

.os .tag {
  align-self: flex-start;
  margin-top: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  visibility: hidden;
}

.os.mine .tag { visibility: visible; }

@media (max-width: 760px) { .os-grid { grid-template-columns: 1fr; } }

/* faq */

.faq { display: grid; gap: 10px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--stone-1);
  transition: border-color .2s;
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

.faq a, .prose a { color: var(--text); text-decoration-color: var(--text-3); text-underline-offset: 3px; }

/* community and people */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
}

.panel h3 { margin: 0 0 8px; font: 700 21px/1.2 var(--display); }

.panel p { margin: 0 0 20px; color: var(--text-2); }

.links { display: flex; flex-wrap: wrap; gap: 10px; }

.people { display: grid; gap: 10px; }

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--stone-0);
  text-decoration: none;
  transition: border-color .2s;
}

.person:hover { border-color: var(--line-strong); }

.person img { width: 44px; height: 44px; border-radius: 10px; background: var(--stone-3); }

.person b { display: block; }

.person span { color: var(--text-3); font-size: 14px; }

/* final call */

.final {
  position: relative;
  margin-top: 96px;
  padding: 56px 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 70%),
    var(--stone-1);
  text-align: center;
  overflow: hidden;
}

.final::before {
  /* a pixel strip along the top edge, like the edge of a block */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background:
    linear-gradient(90deg, var(--accent) 50%, var(--accent-edge) 50%) 0 0 / 20px 6px repeat-x,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat;
}

.final h2 { margin: 0 auto; }

.final .sub { margin-inline: auto; }

.final .cta { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------------- footer */

footer {
  margin-top: 96px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

footer .wrap { display: grid; gap: 22px; }

.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.foot-links a { color: var(--text-2); text-decoration: none; }

.foot-links a:hover { color: var(--text); }

.contact { margin: 0; color: var(--text-2); font-size: 15px; }

.contact a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s;
}

.contact a:hover { border-color: var(--text); }

.panel .contact { margin: -8px 0 20px; }

footer small { display: block; max-width: 62em; line-height: 1.6; }

/* ---------------------------------------------------------------- inner pages */

.page-head { padding: 64px 0 36px; }

.page-head h1 { margin: 0; font: 800 clamp(34px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.035em; }

.recommend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .05), transparent 55%),
    var(--stone-1);
}

.recommend p { margin: 0; color: var(--text-2); }

.recommend .btn { padding: 16px 24px; font-size: 16px; }

.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }

@media (max-width: 860px) { .files { grid-template-columns: 1fr; } }

.files .col {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
}

.files h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font: 700 18px/1.2 var(--display); }

.files h3 svg { width: 20px; height: 20px; }

.files .arch { margin: 0 0 16px; color: var(--text-3); font-size: 13px; }

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--stone-0);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.file:hover { border-color: var(--accent); background: var(--stone-2); }

.file svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.file b { font-size: 15px; }

.file small { margin-left: auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 26px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.release-meta b { color: var(--text); }

.prose { color: var(--text-2); }

.prose code, .file code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--stone-3);
  color: var(--text);
  font: 13px var(--mono);
}

/* changelog timeline */

.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--line) 30%);
}

.release {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
}

.release::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 30px;
  width: 14px;
  height: 14px;
  background: var(--stone-4);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
}

.release.latest::before { background: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-edge); }

.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }

.rel-tag { font: 800 24px/1 var(--display); letter-spacing: -.02em; }

.rel-latest {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}

.rel-date, .rel-stats { color: var(--text-3); font-size: 14px; }

.rel-stats { margin-left: auto; }

.notes { margin-top: 16px; color: var(--text-2); }

.notes h4 { margin: 20px 0 8px; color: var(--text); font: 700 16px/1.3 var(--display); }

.notes h4:first-child { margin-top: 4px; }

.notes p { margin: 8px 0; }

.notes ul { margin: 8px 0; padding-left: 20px; }

.notes li { margin: 4px 0; }

.notes li::marker { color: var(--accent); }

.notes strong { color: var(--text); }

.notes a, .rel-links a { color: var(--text); text-underline-offset: 3px; }

.rel-links { margin: 18px 0 0; font-size: 14px; font-weight: 700; }

.state { color: var(--text-3); }

/* ---------------------------------------------------------------- works with */

.partners { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }

@media (max-width: 1100px) { .partners { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 760px) { .partners { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }

.partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone-1);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .25s, transform .2s ease-out, background .25s, color .25s, box-shadow .3s;
}

.partner:hover {
  border-color: var(--line-strong);
  background: var(--stone-2);
  color: var(--text);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}

.partner-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 10px;
  color: var(--text-2);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), filter .45s, color .45s;
}

/* the page is black and white, so the services' logos wait in grey - and bloom into
   their own colours when pointed at. Raster logos fade their colour back in; the
   one-colour marks take their brand colour from --brand. */
.partner-logo.raster { filter: grayscale(1) brightness(.85) contrast(1.1); }

.partner:hover .partner-logo { color: var(--brand, var(--text)); filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--brand, #fff) 45%, transparent)); }

.partner:hover .partner-logo { transform: scale(1.1) rotate(-4deg); }

.partner:hover .partner-logo.raster { filter: grayscale(0) brightness(1) contrast(1) drop-shadow(0 6px 18px rgba(255, 255, 255, .12)); }

.partner b { color: var(--text); font: 700 17px/1.2 var(--display); }

.partner span { font-size: 14px; }

.partner em {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 12px;
  font-style: normal;
  transition: color .25s;
}

.partner em::after { content: " ↗"; }

.partner:hover em { color: var(--text-2); }

/* ---------------------------------------------------------------- living background */

/* drawn by site.js: drifting grey pixels, and a fading pixel trail behind the pointer */
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------------------------------------------------------------- hover light */

/*
 * Every card answers the pointer: a soft light follows it across the inside, and the
 * border catches it like an edge in a beam. Position comes from --mx / --my, which
 * site.js keeps up to date while the pointer is over the card.
 */
.glow { position: relative; isolation: isolate; }

.glow > * { position: relative; z-index: 1; }

.glow::before,
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}

.glow::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 45%);
}

.glow::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.glow:hover::before,
.glow:hover::after { opacity: 1; }

/* the feature icon turns over to white, with a small pop */
.tile .ico { transition: background .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }

.tile:hover .ico { background: var(--accent); color: var(--accent-ink); transform: scale(1.08) rotate(-6deg); }

/* chips rise one after another */
.chips span { transition: transform .25s ease, border-color .25s, background .25s; }

.tile:hover .chips span { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); background: var(--stone-2); }

.tile:hover .chips span:nth-child(2) { transition-delay: .03s; }
.tile:hover .chips span:nth-child(3) { transition-delay: .06s; }
.tile:hover .chips span:nth-child(4) { transition-delay: .09s; }
.tile:hover .chips span:nth-child(5) { transition-delay: .12s; }

/* system cards: the logo grows and an arrow slides in */
.os svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

.os:hover svg { transform: scale(1.15) translateY(-2px); }

.os b::after {
  content: " →";
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s, transform .25s;
}

.os:hover b::after { opacity: 1; transform: none; }

/* stats: the number lifts */
.stat { transition: background .25s; }

.stat b { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }

.stat:hover { background: var(--stone-2); }

.stat:hover b { transform: translateY(-3px) scale(1.06); transform-origin: left bottom; }

/* the comparison row under the pointer lights up across all its columns */
.compare tbody tr { transition: background .2s; }

.compare tbody tr:hover { background: rgba(255, 255, 255, .045); }

.compare tbody tr:hover td.us { background: rgba(255, 255, 255, .09); }

.compare tbody tr:hover .yes { transform: scale(1.12); }

.yes, .no { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }

/* questions */
.faq details { transition: border-color .25s, background .25s; }

.faq details:hover { border-color: var(--line-strong); background: var(--stone-2); }

.faq details:hover summary::after { border-color: var(--text); }

/* people and files */
.person { transition: border-color .25s, transform .25s, background .25s; }

.person:hover { transform: translateX(4px); background: var(--stone-2); }

.person img { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

.person:hover img { transform: rotate(-6deg) scale(1.06); }

.file { transition: border-color .15s, background .15s, transform .2s; }

.file:hover { transform: translateX(3px); }

.file svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }

.file:hover svg { transform: translateY(2px); }

/* buttons: a light sweep across */
.btn { position: relative; overflow: hidden; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}

.btn-primary::after { background: linear-gradient(105deg, transparent 35%, rgba(0, 0, 0, .12) 50%, transparent 65%); }

.btn:hover::after { transform: translateX(120%); }

/* ---------------------------------------------------------------- reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }

.js .reveal.in { opacity: 1; transform: none; }

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