/* financialstack.ai — the holding page's stage: a black set under a neutral
   light, the particle mark (assets/holding.js), and the wordmark under it.
   No inline style anywhere: the CSP allows this file and nothing else. */

/* Archivo, served from the site (font-src 'self'): Google Fonts' latin file,
   variable in weight and width. SIL OFL 1.1; the licence is served beside it. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

/* The stage and its text are the brand book's (section 12); the wordmark's
   inks are the parent's for a dark surface (ADR 0154, decision 4). */
:root {
  color-scheme: dark;
  --stage: #030409;
  --fg: #eef3fb;
  --muted: #a6b4c8;
  --ink: #f4f6f8;
  --ink-muted: #a2a7ac;
  --light: 148, 163, 184;
  /* The field: the most the page can give it, as wide as it is tall. */
  --field: min(100vw - 32px, 62vh, 680px);
}

@supports (height: 1svh) {
  :root { --field: min(100vw - 32px, 62svh, 680px); }
}

* { box-sizing: border-box; }

html { background: var(--stage); }

body {
  margin: 0;
  background: var(--stage);
  color: var(--fg);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.holding {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  text-align: center;
}

/* The parent's light is neutral: the book's stage slide, behind the mark. */
.holding::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% 38%, rgba(var(--light), .17), transparent 62%),
    radial-gradient(700px 420px at 6% 105%, rgba(var(--light), .10), transparent 70%);
}

.field-wrap {
  position: relative;
  width: var(--field);
  aspect-ratio: 1 / 1;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px rgba(var(--light), .45));
  cursor: crosshair;
  touch-action: none;
}

/* With no script the canvas stays empty: the mark itself, where the points come
   to rest. The script draws the 256 box 107.95% of the field wide (0.8376 x
   256 / 198.64), so the picture is drawn at that size about the same centre. */
.mark {
  position: absolute;
  left: -3.97%;
  top: -3.97%;
  width: 107.95%;
  height: 107.95%;
}

/* The wordmark, set to the mark's width as in the stacked lockup: the mark
   at rest is 200 of the script's units, 84.33% of the field, and the
   wordmark is 7.556 of its own size wide. No film grain over the window: a
   full-window layer showed as lines across the whole screen in Edge
   (bankstack.ai's page, 2026-11-05). */
h1 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: calc(var(--field) * .8433 / 7.556);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

h1 i {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
}

/* The 404 page. */
.mark-small {
  display: block;
  width: 96px;
  height: 96px;
}

.note {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
}

a { color: var(--fg); }
