@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #e9eef1;
  --body: #a6b3bc;
  --faint: #6d7c87;
  --line: #ffffff17;
  --line-strong: #ffffff2b;
  --wall: #0a0f13;
  --wall-2: #10171d;
  --panel: #141c23;
  --app-bg: #1a1b26;
  --app-card: #1f2233;
  --app-sunken: #16171f;
  --app-fg: #c0caf5;
  --app-muted: #8f97bf;
  --up: #73daca;
  --down: #f7768e;
  --warn: #e0af68;
  --steel-hi: #f4f7f9;
  --steel-mid: #a5b2ba;
  --steel-lo: #4b6475;
  --paper: #e9e6dd;
  --paper-ink: #1b2329;
  --paper-soft: #58615f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--wall); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--body);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, p, figure, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-color: #ffffff40; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
b { color: var(--ink); font-weight: 600; }
code, kbd, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #ffffff0d;
  color: var(--ink);
  font: 500 0.78em/1.5 var(--sans);
  text-align: center;
}

/* The top bar */

.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 2.4vw, 28px);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__mark { display: flex; gap: 10px; align-items: center; height: 34px; padding: 0 10px 0 4px; border-radius: 8px; color: var(--ink); font-weight: 550; font-size: 15px; text-decoration: none; background: #0a0f13d9; backdrop-filter: blur(10px); }
.bar__tools { display: flex; gap: 6px; align-items: center; }
.tool {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  background: #0a0f13d9;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, background 0.2s;
}
.tool:hover { border-color: var(--line-strong); }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool kbd { border: 0; background: none; padding: 0; color: var(--body); font-size: 12px; min-width: 0; }
.eye-shut { display: none; }
.privacy .eye-open { display: none; }
.privacy .eye-shut { display: block; color: var(--up); }

/* The vault: the unpinned page, for no WebGL or reduced motion */

.vault { position: relative; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 90px var(--gutter) 40px; }
.stage > .hero { order: 1; }
.stage > .door-still { order: 0; width: min(46vw, 240px); }
.stage > .tour { order: 2; }
.door { display: none; }
.scrollcue { display: none; }

.hero { max-width: 1120px; text-align: center; }
.alpha {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px solid #e0af6866;
  border-radius: 99px;
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 550;
}
.hero__title {
  --sheen: 40%;
  font: 340 clamp(42px, 6.1vw, 88px)/1.02 var(--serif);
  letter-spacing: -0.022em;
  color: var(--steel-hi);
  background: linear-gradient(100deg, #93a4af, #f4f7f9 calc(var(--sheen) - 18%), #ffffff var(--sheen), #dde4e8 calc(var(--sheen) + 18%), #93a4af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}
.hero__lede { margin: 16px auto 0; max-width: 620px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.hero__small { margin-top: 12px; color: var(--faint); font-size: 13px; }

.btn {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn--steel {
  color: #0d1418;
  background: linear-gradient(180deg, #f3f6f8 0%, #d3dbe0 48%, #b6c1c8 56%, #cdd6db 100%);
  box-shadow: inset 0 1px 0 #ffffffcc, inset 0 -1px 0 #00000026, 0 1px 2px #0009, 0 8px 28px #a5b2ba26;
}
.btn--steel:hover { filter: brightness(1.07); }
.btn--ghost { border: 1px solid #00000040; color: #0d1418; background: #ffffff45; }
.btn--ghost:hover { background: #ffffff70; }
.btn--danger { width: 100%; margin-top: 18px; color: #1a1014; background: var(--down); }
.btn--danger:hover { filter: brightness(1.1); }

.copy {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0a0f13b3;
  color: var(--ink);
  transition: border-color 0.2s;
}
.copy:hover { border-color: #ffffff55; }
.copy code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--body); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The tour */

.tour { width: min(100%, 1240px); }
.tour__note { margin-bottom: 12px; text-align: center; color: var(--body); font-size: 14px; }
.tour__live { color: var(--up); font-weight: 550; }
.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--app-bg);
  box-shadow: 0 40px 120px #000a, 0 0 0 1px #0008;
  aspect-ratio: 1980 / 1290;
}
.window video, .window__hidden { width: 100%; height: 100%; object-fit: cover; }
.window__hidden { position: absolute; inset: 0; }
.chapters { display: flex; gap: 2px; justify-content: center; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapter {
  flex: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--body);
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.chapter:hover { color: var(--ink); }
.chapter kbd { min-width: 1.5em; padding: 0 0.3em; font-size: 11px; color: var(--body); }
.chapter.is-on { background: #ffffff14; color: var(--ink); }

/* The pinned stage */

.pinned .vault { height: 380vh; height: 380svh; }
.pinned .stage {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #18222a 0%, var(--wall) 62%);
}
.pinned .door { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.pinned .door-still { display: none; }
.pinned .tour {
  position: absolute;
  z-index: 1;
  top: 56px;
  left: 50%;
  width: min(92vw, calc((100svh - 150px) * 1.535));
  margin-left: calc(min(92vw, calc((100svh - 150px) * 1.535)) / -2);
  opacity: 0;
  visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.pinned .hero {
  position: absolute;
  z-index: 3;
  bottom: max(26px, 4.5svh);
  left: 50%;
  width: min(100% - 40px, 1120px);
  margin-left: calc(min(100% - 40px, 1120px) / -2);
  will-change: opacity, transform;
}
.pinned .scrollcue {
  display: block;
  position: absolute;
  z-index: 3;
  bottom: 8px;
  inset-inline: 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Departments */

.dept { padding: clamp(84px, 13vw, 170px) var(--gutter) 0; max-width: 1360px; margin: 0 auto; }
.dept__head { max-width: 860px; }
.eyebrow { color: var(--faint); font-size: 13px; letter-spacing: 0.02em; }
.eyebrow span { margin-left: 8px; color: var(--steel-mid); }
h2 {
  margin-top: 14px;
  color: var(--ink);
  font: 340 clamp(36px, 5.1vw, 72px)/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.dept__lede { margin-top: 18px; max-width: 660px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.dept__lede a { color: var(--ink); }

.rises { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rises.is-seen { opacity: 1; transform: none; }

/* The file and its portfolio */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
.file { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 14px; background: #0d1317; overflow: hidden; }
.file__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.file__name { color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.link { color: var(--up); font-weight: 550; font-size: 13px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.file__body { position: relative; flex: 1; display: flex; min-height: 240px; font: 13px/1.75 var(--mono); }
.file__lines { flex: none; padding: 14px 10px 14px 14px; color: #47545e; text-align: right; user-select: none; overflow: hidden; font: inherit; }
.file__edit { position: relative; flex: 1; min-width: 0; }
.file__paint, .file__edit textarea {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 14px 14px 14px 4px;
  font: inherit;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
  letter-spacing: 0;
}
.file__paint { color: #9fb0bb; pointer-events: none; scrollbar-width: none; }
.file__paint::-webkit-scrollbar { display: none; }
.file__edit textarea {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: transparent;
  caret-color: var(--up);
}
.file__edit textarea::selection { background: #73daca40; color: transparent; }
.tok-k { color: #8aa4c4; }
.tok-s { color: #9ccfc2; }
.tok-n { color: #e0c58f; }
.tok-err { display: inline-block; min-width: 100%; background: #e0af6826; box-shadow: -4px 0 0 #e0af6826, 4px 0 0 #e0af6826; }
.privacy .tok-n { filter: blur(5px); }

.sketch { min-width: 0; min-height: 330px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid #2c3048; border-radius: 14px; background: linear-gradient(160deg, #27384a -10%, var(--app-card) 44%); color: var(--app-fg); display: grid; align-content: center; }
.sketch__label { color: var(--app-muted); font-size: 13px; }
.sketch__total {
  display: flex;
  margin: 2px 0 20px;
  color: var(--app-fg);
  font: 700 clamp(32px, 3.6vw, 48px)/1.15 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  flex-wrap: nowrap;
  min-height: 1.15em;
}
.digit { display: inline-block; height: 1.15em; overflow: hidden; }
.digit__reel { display: block; width: 1ch; word-break: break-all; white-space: normal; line-height: 1.15; transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1); }
.char { display: inline-block; white-space: pre; }
.sketch__total.is-hidden .char { letter-spacing: 0.08em; }

.alloc { display: flex; gap: 2px; height: 8px; border-radius: 5px; overflow: hidden; background: #ffffff0f; }
.alloc__seg { flex-basis: 0; min-width: 0; transition: flex-grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.classes { margin-top: 16px; font-size: 14.5px; }
.classes li { display: grid; grid-template-columns: 10px 1fr auto 3.8em; gap: 10px; align-items: center; padding: 5px 0; }
.classes i { width: 9px; height: 9px; border-radius: 50%; }
.classes .num { color: var(--app-muted); text-align: right; }
.classes b { color: var(--app-fg); font-weight: 600; }
.classes__warn.classes__warn { display: block; color: var(--warn); font-size: 13px; line-height: 1.4; }

.sketch__bad { animation: bad 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); }
@keyframes bad { from { opacity: 0; transform: translateY(6px) scale(0.985); } }
.bad__title { display: flex; gap: 10px; align-items: center; color: var(--app-fg); font-weight: 600; font-size: 15px; }
.bad__title svg { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bad__body { margin-top: 10px; color: var(--app-muted); font-size: 14.5px; line-height: 1.45; }
.bad__where { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #38343a; font-size: 14px; line-height: 1.5; }
.bad__pos { color: var(--warn); font-weight: 600; }
.bad__msg { margin-top: 3px; color: var(--app-fg); }
.bad__path { margin-top: 3px; color: var(--app-muted); font-size: 12.5px; overflow-wrap: anywhere; }

.footnote { margin-top: 14px; max-width: 740px; color: var(--faint); font-size: 14px; line-height: 1.5; }

/* The desk */

.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 52px);
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid #2c3048;
  border-radius: 14px;
  overflow: hidden;
  background: var(--app-card);
  color: var(--app-fg);
}
.desk__title { color: var(--app-muted); font-size: 13px; margin: 0 0 9px; }
.desk__result .alloc + .desk__title { margin-top: 16px; }
.slider { display: grid; grid-template-columns: 76px 1fr 3em; gap: 12px; align-items: center; min-height: 42px; font-size: 14.5px; }
.slider__name { display: inline-flex; gap: 8px; align-items: center; }
.slider__name i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.slider output { color: var(--app-muted); text-align: right; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 24px; background: transparent; cursor: grab; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #ffffff1f; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 3px; background: #ffffff1f; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: conic-gradient(#f4f7f9, #8b9aa4, #f4f7f9, #8b9aa4, #f4f7f9);
  box-shadow: 0 1px 4px #000a, inset 0 0 0 1px #ffffff55;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #c7d0d4; box-shadow: 0 1px 4px #000a; }
.moves { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.moves th { padding: 0 0 8px; color: var(--app-muted); font-weight: 400; font-size: 13px; text-align: left; }
.moves td { padding: 8px 0; border-top: 1px solid #ffffff12; }
.moves .num, .moves th.num { text-align: right; }
.moves__none { color: var(--app-muted); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.pill--up { color: var(--up); background: #73daca26; }
.pill--down { color: var(--down); background: #f7768e26; }

.shutter {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    repeating-linear-gradient(180deg, #ffffff30 0 1px, #00000000 1px 3px, #00000038 3px 34px, #00000085 34px 36px),
    linear-gradient(90deg, #7f8f99, #cbd4d9 22%, #98a7b0 48%, #d7dee2 72%, #7f8f99);
  transform: translateY(-101%);
  visibility: hidden;
  transition: transform 0.72s cubic-bezier(0.55, 0.05, 0.3, 1.0), visibility 0s 0.72s;
}
.desk.is-closed .shutter { transform: none; visibility: visible; transition: transform 0.72s cubic-bezier(0.34, 1.22, 0.45, 1), visibility 0s; }
.shutter__sign {
  max-width: 440px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 6px;
  color: #101619;
  text-align: center;
  background: #e9e6dd;
  box-shadow: 0 2px 0 #0003, 0 14px 40px #0006;
  font-size: 15px;
  line-height: 1.45;
}
.shutter__closed { margin-bottom: 8px; font: 400 clamp(38px, 5vw, 58px)/1 var(--serif); letter-spacing: -0.015em; }
.shutter .btn { min-height: 38px; margin-top: 14px; font-size: 14px; }

/* Compliance */

.memo { position: relative; margin-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(0px, 5vw, 66px); }
.shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--app-bg); box-shadow: 0 30px 90px #0008; }
.shot--wide { width: min(100%, 980px); }
.shot img { width: 100%; }
.policy {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(44%, 450px);
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d1317f2;
  box-shadow: 0 24px 70px #000b;
  color: #9fb0bb;
  font-size: 12.5px;
  line-height: 1.7;
}
.policy .c { color: #5d6c76; }
.policy .k { color: #8aa4c4; }
.policy .s { color: #9ccfc2; }
.policy .n { color: #e0c58f; }
.policy .h { color: var(--ink); }

/* The analysts */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px) 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
.tile { min-width: 0; }
.tile { grid-column: span 3; }
.tile__view {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--app-bg);
  cursor: zoom-in;
}
.tile img { width: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile__view:hover img { transform: scale(1.018); }
.tile figcaption { margin-top: 12px; max-width: 480px; font-size: 15px; line-height: 1.45; }

/* Discretion */

.dept--discretion { text-align: center; }
.dept--discretion .dept__lede { margin-inline: auto; }
.big-amount {
  margin-top: 30px;
  color: var(--steel-hi);
  font: 700 clamp(44px, 10vw, 138px)/1.05 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.key {
  display: inline-grid;
  place-items: center;
  width: 1.32em;
  height: 1.32em;
  margin: 0 0.05em;
  vertical-align: -0.2em;
  border-radius: 0.22em;
  color: #11181c;
  font: 500 0.82em/1 var(--sans);
  background: linear-gradient(180deg, #f6f8fa, #bcc7cd);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #8d9ba4, 0 3px 0 #4b5a63, 0 8px 18px #0008;
  transition: transform 0.08s, box-shadow 0.08s;
}
.key:hover { filter: brightness(1.05); }
.key:active, .privacy .key { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #8d9ba4, 0 1px 0 #4b5a63, 0 3px 8px #0008; }
.natives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
  max-width: 980px;
  margin: 58px auto 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}
.natives li { padding-top: 16px; border-top: 1px solid var(--line); }
.natives kbd { margin-right: 4px; }
.natives code { color: var(--ink); font-size: 0.9em; }

/* The letter */

.terms { padding: clamp(84px, 13vw, 170px) clamp(12px, 4vw, 40px) 0; }
.letter {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(26px, 5.6vw, 76px);
  border-radius: 3px;
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image: radial-gradient(#00000009 1px, transparent 1px), linear-gradient(170deg, #f1eee6, #e2dfd5);
  background-size: 3px 3px, 100% 100%;
  box-shadow: 0 2px 0 #fff4 inset, 0 50px 120px #000a, 0 2px 8px #0008;
  font: 400 clamp(18px, 1.55vw, 20px)/1.46 var(--serif);
}
.letter a { color: inherit; text-decoration-color: #0007; }
.letter b { color: inherit; font-weight: 500; }
.letter code { font-size: 0.75em; background: #00000012; padding: 0.12em 0.34em; border-radius: 3px; overflow-wrap: anywhere; }
.letter__head { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #0003; }
.letter__head p { font: 500 18px/1.25 var(--serif); }
.letter__head span { color: var(--paper-soft); font: 400 12.5px var(--mono); }
.letter__body p + p, .letter__body ol + p { margin-top: 0.85em; }
.letter__salute { font-size: 1.22em; }
.letter__body ol { margin-top: 0.7em; padding-left: 1.3em; list-style: decimal; }
.letter__body li + li { margin-top: 0.4em; }
.letter__close { margin-top: 1.4em !important; }
.letter__close i { font-size: 1.32em; }
.fees h2 { margin: 0 0 14px; color: var(--paper-ink); font: 400 clamp(26px, 2.5vw, 33px)/1.1 var(--serif); letter-spacing: -0.012em; }
.fees table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.fees th, .fees td { padding: 9px 0; border-top: 1px solid #0002; }
.fees tr:last-child th, .fees tr:last-child td { border-bottom: 1px solid #0002; }
.fees th { font-weight: 400; text-align: left; }
.fees td { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.fees__fine { margin-top: 16px; color: var(--paper-soft); font: 400 12.5px/1.5 var(--sans); }

/* The account */

.account { padding: clamp(84px, 13vw, 170px) var(--gutter) clamp(50px, 7vw, 90px); text-align: center; }
.account h2 { font-size: clamp(46px, 8vw, 112px); margin-top: 0; }
.account .dept__lede { margin-inline: auto; }
.install { max-width: 690px; margin: 38px auto 0; text-align: left; }
.install__tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.install__tabs button { white-space: nowrap; padding: 7px 13px; border-radius: 8px; color: var(--body); font-size: 14px; }
.install__tabs button:hover { color: var(--ink); }
.install__tabs [aria-selected="true"] { color: var(--ink); background: #ffffff14; }
.row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 0;
  background: #0d1317;
  font-size: 14px;
}
.row:first-child { border-radius: 12px 12px 0 0; }
.install__panel > .row:nth-last-of-type(1) { border-bottom-width: 1px; border-radius: 0 0 12px 12px; }
.row__label { color: var(--faint); }
.row__value { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code.row__value { font-size: 13px; }
.row__go {
  display: inline-grid;
  place-items: center;
  min-width: 66px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #0d1418;
  font-weight: 550;
  font-size: 13.5px;
  text-decoration: none;
  background: linear-gradient(180deg, #eef2f4, #b9c4ca);
}
.row__go:hover { filter: brightness(1.08); }
.install__note { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
.install__all { margin-top: 18px; font-size: 14px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}
.foot i { font-family: var(--serif); font-size: 1.14em; color: var(--body); }

/* The palette, drawn after the app's */

dialog { color: inherit; }
.palette {
  width: min(92vw, 620px);
  max-height: min(70vh, 560px);
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid #383c5a;
  border-radius: 14px;
  overflow: hidden;
  color: var(--app-fg);
  background: linear-gradient(150deg, #24273f, #1c1f33);
  box-shadow: 0 40px 120px #000c;
}
.palette[open] { display: flex; flex-direction: column; animation: palette-in 0.17s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } }
.palette::backdrop { background: #05070ab3; }
.palette__search { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #ffffff14; }
.palette__search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--app-muted); stroke-width: 1.8; stroke-linecap: round; }
.palette__search input { width: 100%; border: 0; outline: 0; background: none; color: var(--app-fg); font: 400 16px var(--sans); }
.palette__search input::placeholder { color: var(--app-muted); }
.palette__list { padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.palette__group { padding: 9px 10px 5px; color: var(--app-muted); font-size: 12.5px; }
.palette__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 7px; text-align: left; font-size: 14.5px; }
.palette__row.is-on { background: #ffffff14; }
.palette__row kbd { font-size: 11px; color: var(--app-muted); }
.palette__hint { color: var(--app-muted); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.palette__none { padding: 26px 12px; text-align: center; color: var(--app-muted); font-size: 14.5px; }

.zoom { width: min(96vw, 1500px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--app-bg); overflow: hidden; cursor: zoom-out; }
.zoom::backdrop { background: #05070ae0; }
.zoom img { width: 100%; }

.toast {
  position: fixed;
  z-index: 50;
  bottom: 22px;
  left: 50%;
  padding: 8px 14px;
  max-width: 92vw;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #1a2228;
  box-shadow: 0 10px 40px #000a;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Small screens */

@media (max-width: 900px) {
  .ledger, .desk, .letter { grid-template-columns: minmax(0, 1fr); }
  .letter__head { grid-column: auto; }
  .natives { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-column: 1 / -1; }
  .memo { padding-bottom: 0; }
  .policy { position: static; width: 100%; margin-top: 14px; }
  .chapters { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tool--palette kbd { display: none; }
  .hero__lede { margin-top: 10px; font-size: 15px; line-height: 1.42; }
  .hero__actions { margin-top: 14px; flex-direction: column; }
  .btn, .copy { width: 100%; min-height: 44px; justify-content: center; }
  .hero__small { margin-top: 9px; font-size: 12px; }
  .pinned .hero { bottom: 30px; }
  .pinned .tour { top: 27svh; width: 94vw; margin-left: -47vw; }
  .file__body { font-size: 12px; }
  .pinned .scrollcue { bottom: 4px; font-size: 11px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  .row__label { grid-column: 1 / -1; margin-bottom: -10px; font-size: 12px; }
  code.row__value { font-size: 11.5px; }
  .install__tabs button { padding: 7px 8px; }
}

@media (max-height: 700px) and (min-width: 561px) {
  .hero__title { font-size: clamp(38px, 8svh, 60px); }
  .hero__lede { margin-top: 8px; font-size: 15px; }
  .hero__actions { margin-top: 12px; }
  .hero__small { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .digit__reel { transition: none; }
  .rises { opacity: 1; transform: none; }
}

@media print {
  .bar, .tour, .door, .scrollcue, .palette, .toast { display: none !important; }
  .pinned .vault { height: auto; }
  .pinned .stage { position: static; height: auto; }
}

/* The legal page */

.foot__legal { flex-basis: 100%; font-size: 12.5px; }
.foot__legal a { margin-left: 6px; color: var(--body); }
.legal { max-width: 680px; margin: 0 auto; padding: 44px 22px 72px; font-size: 15px; line-height: 1.6; }
.legal h1 { margin: 44px 0 10px; color: var(--ink); font: 340 34px/1.1 var(--serif); letter-spacing: -0.015em; }
.legal__back + h1 { margin-top: 32px; }
.legal h2 { margin: 26px 0 6px; color: var(--ink); font: 550 15px/1.4 var(--sans); letter-spacing: 0; text-wrap: wrap; }
.legal p + p, .legal address + p { margin-top: 10px; }
.legal address { margin-top: 10px; color: var(--ink); font-style: normal; }
.legal a { color: var(--ink); }
.legal code { color: var(--ink); font-size: 0.88em; overflow-wrap: anywhere; }
.legal__back { font-size: 14px; }
