/* ------------------------------------------------------------------ */
/*  Aperture - the website                                            */
/*                                                                    */
/*  Black, with spiral tubes of grain behind everything and the       */
/*  client's Pearl white on top (HolBite, after the Zenith site they  */
/*  liked: abstract art, mixed light and bold-italic type, the        */
/*  client's own screenshots, a recent-updates block). Flat dark      */
/*  cards with fine borders; no frost.                                */
/*                                                                    */
/*  No inline styles anywhere: the content policy forbids them, so    */
/*  everything a page needs is a class here.                          */
/* ------------------------------------------------------------------ */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/bold.ttf") format("truetype"); }

:root {
  --bg: #000000;
  --solid: #0B0C0F;
  --raise: #15171C;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .014) 70%);
  --well: rgba(255, 255, 255, .04);

  --text: #F2F4F8;
  --dim: rgba(235, 237, 245, .66);
  --muted: rgba(235, 237, 245, .42);

  /* ThemePreset.PEARL's accent, and the pearl a few shades down. */
  --accent: #E4E7EE;
  --accent-2: #A9AFBB;
  --ink: #111216;

  --green: #6BD48A;
  --red: #FF6B61;
  --amber: #FFC15E;

  --radius: 18px;
  --wide: 1120px;
  --gutter: 24px;

  /* The headlines: Windows' own Segoe UI - light, with bold italic for the
     words that matter - and Inter wherever Segoe is not installed. */
  --display: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* A damped spring, sampled - the launcher's own. */
  --spring: linear(0 0%, 0.0273 3.1%, 0.0945 6.3%, 0.1843 9.4%, 0.2841 12.5%, 0.3853 15.6%, 0.4823 18.8%, 0.5717 21.9%, 0.6515 25%, 0.7211 28.1%, 0.7805 31.3%, 0.8302 34.4%, 0.8712 37.5%, 0.9043 40.6%, 0.9307 43.8%, 0.9514 46.9%, 0.9673 50%, 0.9792 53.1%, 0.9881 56.3%, 0.9944 59.4%, 0.9988 62.5%, 1.0018 65.6%, 1.0036 68.8%, 1.0046 71.9%, 1.005 75%, 1.005 78.1%, 1.0047 81.3%, 1.0043 84.4%, 1.0039 87.5%, 1.0034 90.6%, 1.0029 93.8%, 1.0024 96.9%, 1 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* No background of its own: the page's black is on html, so the art,
     drawn below everything, shows - a body background paints over it. */
  background: transparent;
  color: var(--text);
  font: 400 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
/* Height from the width: the width and height attributes are there for the layout
   before a picture loads, not to fix its height. */
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
::selection { background: rgba(228, 231, 238, .25); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/*  Backdrop                                                          */
/* ------------------------------------------------------------------ */

.backdrop {
  position: fixed; inset: -4%; z-index: -2; pointer-events: none;
  background: #000 url("/assets/art/tubes.webp") center / cover no-repeat;
  animation: drift 70s ease-in-out infinite alternate;
  transition: opacity 1s var(--ease);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 48%, rgba(0, 0, 0, .55), transparent 75%),
              linear-gradient(to bottom, rgba(0, 0, 0, .1), transparent 30%, rgba(0, 0, 0, .55));
}
/* Away from the home page the art steps back behind the forms and tables. */
body:not([data-page="home"]) .backdrop { opacity: .45; }
body[data-page="home"] .backdrop { opacity: .85; }

@keyframes drift {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.06) rotate(1.2deg); }
}

/* ------------------------------------------------------------------ */
/*  Navigation                                                        */
/* ------------------------------------------------------------------ */

.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; padding: 0 16px; pointer-events: none; }
.nav .bar {
  pointer-events: auto;
  max-width: var(--wide); margin: 0 auto; height: 56px; padding: 0 8px 0 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  border-radius: 999px; background: rgba(6, 6, 8, .78); border: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled .bar { background: rgba(6, 6, 8, .92); border-color: var(--line-2); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }

.links { display: flex; gap: 2px; }
.links a {
  padding: 8px 14px; border-radius: 999px; color: var(--dim); font-size: 14px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.links a.on { color: var(--text); background: rgba(255, 255, 255, .07); }

.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .5s var(--spring); }
.mark:hover { transform: scale(1.08) rotate(-4deg); }
.mark img { width: 24px; height: 24px; }

.nav .side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer; place-items: center; }
.burger:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.chip-user {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chip-user:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: 12px;
}

.menu {
  position: absolute; top: 64px; right: max(16px, calc((100% - var(--wide)) / 2)); min-width: 210px; padding: 6px;
  background: var(--raise); border: 1px solid var(--line-2); border-radius: 14px; pointer-events: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6); transform-origin: top right; animation: pop .3s var(--spring);
}
.menu a, .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  background: none; border: 0; text-align: left; color: var(--dim); cursor: pointer; font-size: 14px;
}
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ------------------------------------------------------------------ */
/*  Type                                                              */
/* ------------------------------------------------------------------ */

.display {
  margin: 26px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.06; letter-spacing: -.015em; color: var(--text);
}
.display span { display: block; }
.display .indent { padding-left: clamp(36px, 9vw, 150px); }
.display em, .heading em { font-style: italic; font-weight: 700; letter-spacing: -.02em; }

.heading { margin: 14px 0 8px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.01em; }
.heading.big { font-size: clamp(34px, 4.6vw, 56px); font-weight: 400; }
.title { margin: 14px 0 8px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.015em; line-height: 1.1; }
.title em { font-style: italic; font-weight: 700; }
.lede { margin: 0; max-width: 560px; font-size: 16px; color: var(--dim); }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); color: var(--dim); font-size: 13px; white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; }
.chip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/*  Buttons and fields                                                */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform .4s var(--spring), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { background: #FFFFFF; color: var(--ink); }
.btn.primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.btn.quiet { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn.quiet:hover { background: rgba(255, 255, 255, .1); }
.btn.danger { background: rgba(255, 107, 97, .12); color: var(--red); border-color: rgba(255, 107, 97, .22); }
.btn.danger:hover { background: rgba(255, 107, 97, .2); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }
.btn .spin { width: 16px; height: 16px; }

.spin {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; opacity: .8; animation: turn .7s linear infinite;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; color: var(--dim); font-weight: 500; }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--solid); }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(255, 255, 255, .22); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: rgba(0, 0, 0, .75); box-shadow: 0 0 0 4px rgba(228, 231, 238, .08); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input.code { font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; }

.pass { position: relative; }
.pass .input { padding-right: 70px; }
.pass button {
  position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px;
}
.pass button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .3s var(--ease); }
.strength.s1 i:nth-child(-n+1) { background: var(--red); }
.strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.strength.s3 i:nth-child(-n+3) { background: var(--accent-2); }
.strength.s4 i { background: var(--green); }

.error {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 107, 97, .09); border: 1px solid rgba(255, 107, 97, .22); color: #FFB3AD; font-size: 14px;
  animation: shake .4s var(--ease);
}
.error svg { width: 18px; height: 18px; margin-top: 1px; }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.notice.good { background: rgba(107, 212, 138, .08); border-color: rgba(107, 212, 138, .2); color: #A9E8BC; }
.notice.warn { background: rgba(255, 193, 94, .08); border-color: rgba(255, 193, 94, .2); color: #FFD9A0; }

.check { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ------------------------------------------------------------------ */
/*  Surfaces                                                          */
/* ------------------------------------------------------------------ */

.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.card.flat { background: transparent; box-shadow: none; }
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.card.lift { transition: transform .6s var(--spring), border-color .25s var(--ease); }
.card.lift:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .card-label { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; vertical-align: middle; }
.dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(107, 212, 138, .5); animation: ping 2.2s var(--ease) infinite; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .07); color: var(--dim); white-space: nowrap;
}
.badge.good { background: rgba(107, 212, 138, .12); color: var(--green); }
.badge.bad { background: rgba(255, 107, 97, .12); color: var(--red); }
.badge.warn { background: rgba(255, 193, 94, .12); color: var(--amber); }
.badge.pearl { background: var(--accent); color: var(--ink); }
.badge.outline { background: transparent; border: 1px solid var(--line-2); color: var(--text); }

.kbd { font-variant-numeric: tabular-nums; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); font-size: 13px; }

/* ------------------------------------------------------------------ */
/*  Page                                                              */
/* ------------------------------------------------------------------ */

main { flex: 1; outline: none; }
main.out { animation: out .14s var(--ease) forwards; }
.page { padding: 130px 0 110px; }
.page.narrow .wrap { max-width: 480px; }
.page.mid .wrap { max-width: 780px; }
/* Blocks of a page, apart from one another (HolBite: "a little apart from each other instead of clamped"). */
.flow { display: flex; flex-direction: column; gap: 20px; }
.flow > .title { margin-bottom: 0; }
.flow > .lede { margin-top: -8px; }

.rise { opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row > .input, .row > .select { width: auto; flex: 1 1 160px; min-width: 0; }
.row > .input.num { flex: 0 0 96px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 10px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.gap-top { margin-top: 16px; }
.link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------ */
/*  Home: hero                                                        */
/* ------------------------------------------------------------------ */

.hero { position: relative; padding: 150px 0 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hero-live { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hero-live small { color: var(--muted); font-size: 12px; }

.hero-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; margin-top: 56px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 22px; }
.hero-side p { margin: 0; color: var(--dim); font-size: 16px; max-width: 400px; }
.hero-side small { color: var(--muted); font-size: 13px; }

/* Three of the client's own screens, overlapping, leaning toward the pointer. */
.shots { position: relative; aspect-ratio: 16 / 8.2; }
.shot {
  position: absolute; width: 64%; border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .65); background: #0B0C0F;
  transition: transform .9s var(--ease), border-color .3s var(--ease);
}
.shot.s1 { left: 0; top: 0; z-index: 3; }
.shot.s2 { left: 30%; top: 22%; width: 48%; z-index: 2; opacity: .92; }
.shot.s3 { left: 56%; top: 40%; width: 40%; z-index: 1; opacity: .8; }
.shots:hover .shot { border-color: rgba(255, 255, 255, .24); }

.cue { margin: 48px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: cue 2.4s var(--ease) infinite; }

/* ------------------------------------------------------------------ */
/*  Home: sections                                                    */
/* ------------------------------------------------------------------ */

.section { padding: 110px 0 0; position: relative; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 34px; }
.head p { margin: 0; color: var(--dim); max-width: 560px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* The outlined emblem at the right of a section's heading. */
.glyph {
  flex: none; width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  border: 2px solid transparent;
  background: linear-gradient(#050506, #050506) padding-box,
              linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, .7)) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 14px 30px rgba(0, 0, 0, .6);
  transform: rotate(-4deg); transition: transform .6s var(--spring);
}
.glyph:hover { transform: rotate(0deg) scale(1.05); }
.glyph svg { width: 28px; height: 28px; stroke-width: 1.6; }

.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.stat .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text);
}
.stat .icon svg { width: 18px; height: 18px; }
.stat .what { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.chart-card { display: flex; flex-direction: column; min-height: 300px; }
.chart-card .chart { flex: 1; }
.chart-card .total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.chart-card .total b { display: block; font-size: 22px; letter-spacing: -.02em; }

.updates-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.updates-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 2px 10px; align-items: start; }
/* Everything but the dot and the time in the middle column, one under the other. */
.updates-list li::before { content: ""; grid-column: 1; grid-row: 1; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--text); }
.updates-list li > * { grid-column: 2; }
.updates-list .what { font-size: 14px; color: var(--text); line-height: 1.4; }
.updates-list .ver { font-size: 12.5px; color: var(--muted); }
.updates-list time { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.updates-list .badge { justify-self: start; margin-bottom: 4px; }
.more { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--dim); display: inline-flex; gap: 6px; align-items: center; }
.more:hover { color: var(--text); }
.more svg { width: 14px; height: 14px; }

/* The menu opening, recorded from the client: tilts upright as it scrolls in. */
.stage { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; perspective: 1800px; }
.stage .screen {
  position: absolute; inset: 0; transform: rotateX(16deg) scale(.92); transform-origin: 50% 100%; opacity: 0;
  transition: transform 1.4s var(--ease), opacity 1s var(--ease);
}
.stage.seen .screen { transform: none; opacity: 1; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage .floor {
  position: absolute; left: 10%; right: 10%; bottom: -6%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 231, 238, .10), transparent); filter: blur(10px);
}

.feature .icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--accent);
}
.feature .icon svg { width: 20px; height: 20px; }
.feature p { margin: 0; color: var(--dim); font-size: 14.5px; }
.feature .go { display: inline-flex; margin-top: 18px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.feature .go:hover { color: var(--text); border-color: var(--accent); }

.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); transition: transform .7s var(--spring), border-color .3s; }
.gallery figure:hover img { transform: translateY(-4px); border-color: var(--line-2); }
.gallery figcaption { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.gallery figcaption b { color: var(--text); font-weight: 500; }

.edition { padding: 30px; overflow: hidden; }
.edition h3 { font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; font-family: var(--display); }
.edition ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.edition li { display: flex; gap: 10px; color: var(--dim); font-size: 14.5px; }
.edition li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.edition li.no svg { color: var(--muted); }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px 70px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 24px; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; color: var(--ink);
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* The closing section, over its own vortex. */
.join { position: relative; margin-top: 110px; padding: 150px 0 170px; text-align: center; overflow: hidden; }
.join .vortex {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/art/vortex.webp") center / cover no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
  animation: spin 140s linear infinite;
}
.join .lede { margin: 12px auto 30px; max-width: 520px; }
.join .facts { justify-content: center; margin-top: 24px; }
.join .facts span { display: inline-flex; gap: 6px; align-items: center; }
.join .facts svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ */
/*  Download and updates                                              */
/* ------------------------------------------------------------------ */

.download { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 32px; }
.download img { width: 96px; height: 96px; border-radius: 22px; animation: bob 6s ease-in-out infinite; }
.download h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; font-family: var(--display); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -25px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: #000; border: 2px solid var(--accent); }
.timeline .card h3 { font-family: var(--display); font-size: 19px; margin: 10px 0 6px; }
.timeline .card p { margin: 0; color: var(--dim); white-space: pre-wrap; }

/* ------------------------------------------------------------------ */
/*  Account                                                           */
/* ------------------------------------------------------------------ */

.status { display: flex; align-items: center; gap: 18px; }
.status .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.status .ring svg { width: 24px; height: 24px; }
.status.good .ring { background: rgba(107, 212, 138, .1); border-color: rgba(107, 212, 138, .25); color: var(--green); }
.status.bad .ring { background: rgba(255, 107, 97, .1); border-color: rgba(255, 107, 97, .25); color: var(--red); }
.status h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; font-family: var(--display); }
.meter { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; margin-top: 18px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: grow 1.1s var(--ease) both; }

.prose h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -.01em; font-family: var(--display); }
.prose p, .prose li { color: var(--dim); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }

/* ------------------------------------------------------------------ */
/*  Charts                                                            */
/* ------------------------------------------------------------------ */

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.draw { animation: draw 1.6s var(--ease) forwards; }
.chart .area { opacity: 0; animation: fade 1.2s .4s var(--ease) forwards; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .point { fill: #000; stroke: #fff; stroke-width: 1.6; }
.chart .bar { fill: rgba(228, 231, 238, .24); transition: fill .2s; transform-box: fill-box; transform-origin: bottom; animation: barup .9s var(--spring) both; }
.chart .bar.on { fill: #fff; }
.chart .cursor { stroke: var(--line-2); stroke-width: 1; }
.chart .knob { fill: #000; stroke: #fff; stroke-width: 2; }
.tip {
  position: absolute; top: 0; pointer-events: none; padding: 7px 10px; border-radius: 9px; white-space: nowrap; z-index: 2;
  background: var(--raise); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--dim); transform: translate(-50%, -115%);
}
.tip b { color: var(--text); font-weight: 600; margin-right: 6px; }
.empty-chart { height: 110px; display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ------------------------------------------------------------------ */
/*  Admin                                                             */
/* ------------------------------------------------------------------ */

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); width: fit-content; margin-bottom: 28px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 7px 16px; border-radius: 999px; color: var(--dim); background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; transition: color .2s var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--ink); background: #fff; animation: pop .35s var(--spring); }
.tabs .on:hover { color: var(--ink); }
.tabs .count { font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.tabs .on .count { background: rgba(0, 0, 0, .12); }

.tile { padding: 20px 22px; }
.tile .label { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tile .label svg { width: 15px; height: 15px; }
.tile .value { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tile .foot { margin-top: 8px; font-size: 13px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tr.click { cursor: pointer; }
.table svg { width: 16px; height: 16px; }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.feed b { color: var(--text); font-weight: 500; }

.answer { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; margin: 14px 0; }
.answer dt { color: var(--muted); }
.answer dd { margin: 0; color: var(--text); white-space: pre-wrap; word-break: break-word; }

.codes { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.codes code { padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); font-size: 14px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }

.drawer-back { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); animation: fade .25s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(520px, 100%); overflow-y: auto; background: var(--solid); border-left: 1px solid var(--line-2); padding: 28px; animation: slide .5s var(--spring); }
.drawer .close { position: absolute; top: 20px; right: 20px; }
.drawer h2 { margin: 0; font-size: 22px; font-family: var(--display); }
.drawer section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.drawer section:last-child { border-bottom: 0; }
.drawer h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------------ */
/*  Dialogs and toasts                                                */
/* ------------------------------------------------------------------ */

.dialog-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); animation: fade .2s var(--ease); }
.dialog { width: min(460px, 100%); background: var(--raise); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; animation: pop .4s var(--spring); }
.dialog h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--display); }
.dialog p { margin: 0 0 18px; color: var(--dim); }
.dialog .row { justify-content: flex-end; margin-top: 20px; }

.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; min-width: 220px; max-width: 360px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); font-size: 14px; animation: toast .5s var(--spring); }
.toast.leave { animation: out .25s var(--ease) forwards; }

/* ------------------------------------------------------------------ */
/*  Loading                                                           */
/* ------------------------------------------------------------------ */

.loading { display: grid; place-items: center; padding: 200px 0; color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  Footer                                                            */
/* ------------------------------------------------------------------ */

.foot { position: relative; border-top: 1px solid var(--line); padding: 54px 0 34px; color: var(--muted); font-size: 14px; background: rgba(0, 0, 0, .72); }
.foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.foot .wrap { position: relative; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: .16em; font-size: 14px; }
.foot-brand img { width: 28px; height: 28px; }
.foot-brand b { color: var(--accent-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 18px 56px; }
.foot-cols h5 { margin: 0 0 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.foot-cols a { display: block; margin: 0 0 9px; color: var(--dim); }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ------------------------------------------------------------------ */
/*  Error page                                                        */
/* ------------------------------------------------------------------ */

.oops { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.oops .code {
  font-family: var(--display); font-size: clamp(110px, 22vw, 220px); font-weight: 700; font-style: italic; letter-spacing: -.04em; line-height: .9;
  background: linear-gradient(180deg, #fff 10%, rgba(228, 231, 238, .05) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s var(--ease) both;
}
.oops h1 { margin: 18px 0 10px; font-size: 28px; font-family: var(--display); font-weight: 600; animation: rise .9s .1s var(--ease) both; }
.oops p { margin: 0 auto 28px; max-width: 420px; color: var(--dim); animation: rise .9s .2s var(--ease) both; }
.oops .row { justify-content: center; animation: rise .9s .3s var(--ease) both; }
.oops .brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 40px; font-weight: 700; letter-spacing: .16em; font-size: 14px; animation: rise .9s var(--ease) both; }
.oops .brand img { width: 24px; height: 24px; }
.oops .brand b { color: var(--accent-2); }

/* ------------------------------------------------------------------ */
/*  Motion                                                            */
/* ------------------------------------------------------------------ */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes barup { from { transform: scaleY(0); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(107, 212, 138, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(107, 212, 138, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .stage .screen { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/*  Narrow screens                                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; text-align: left; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { top: 10px; padding: 0 10px; }
  .nav .bar { grid-template-columns: auto 1fr auto; }
  .burger { display: grid; }
  .mark { justify-self: start; }
  .links { display: none; }
  .links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 10px; right: 10px; padding: 8px;
    background: var(--raise); border: 1px solid var(--line-2); border-radius: 18px; animation: pop .3s var(--spring);
  }
  .links.open a { padding: 12px 14px; border-radius: 12px; }
  .chip-user .who { display: none; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-live { align-items: flex-start; }
  .display .indent { padding-left: 28px; }
  .page { padding: 100px 0 80px; }
  .section { padding-top: 80px; }
  .glyph { width: 52px; height: 52px; border-radius: 14px; }
  .glyph svg { width: 22px; height: 22px; }
  .download { grid-template-columns: 1fr; text-align: center; }
  .download img { margin: 0 auto; }
  .download .row { justify-content: center; }
  .answer { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .drawer { padding: 22px 16px; }
  .join { padding: 110px 0 120px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(120px, auto)); gap: 18px 40px; }
}
