/* Ventryn LLC holding page: the new site's tokens, type and marker, with the mascot standing in
   for the hero container. Copy in shared/content/maintenance.json. */
/* Two static instances of the face cut to printable ASCII (fontTools): 500 at the heading's optical
   size, 600 at the lede's. The full latin variable file stays in shared/assets/source/fonts for the new site. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-holding-500.2644d3f53c.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-holding-600.3ce97bbf7f.woff2") format("woff2");
}
:root {
  --bg: #f3f4f7;
  --fg: #101217;
  --muted: #6a7080;
  --ink: #ff4d24;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px max(32px, 8vw);
  overflow: hidden;
}
.row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: 100%;
  max-width: 1200px;
}
.copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* the heading: typed on letter by letter, the "it" written by the marker */
.copy { --howto-fs: clamp(34px, 4.6vw, 72px); }
.howto {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-weight: 500;
  font-size: var(--howto-fs);
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
/* hidden until the script has split it into typing units, so the first frame shows no untyped text */
.howto { visibility: hidden; }
.howto.is-ready { visibility: visible; }
.howto-ch { display: inline-block; opacity: 0; will-change: opacity, transform, filter; }
.howto-sp { display: inline-block; width: 0.22em; }
.howto-it { display: block; flex: 0 0 auto; width: 0.76em; height: 0.92em; margin-left: 0.22em; overflow: visible; }
.howto-it path { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.howto-tail { display: inline-block; flex: 0 0 auto; margin-left: 0.08em; }
/* once the heading has landed the three dots keep working: each hops in turn, a sixth of a beat apart */
.howto.is-done .howto-tail .howto-ch { animation: tail-hop 1.4s cubic-bezier(0.36, 0, 0.3, 1) infinite; }
.howto.is-done .howto-tail .howto-ch:nth-child(2) { animation-delay: 0.16s; }
.howto.is-done .howto-tail .howto-ch:nth-child(3) { animation-delay: 0.32s; }
@keyframes tail-hop {
  0%, 36%, 100% { transform: translateY(0); }
  18% { transform: translateY(-0.2em); }
}
/* the marker's line runs through the gap between the heading and the line of copy */
.lede {
  margin: calc(var(--howto-fs) * 0.9) 0 0;
  max-width: 34em;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lede.is-on { opacity: 1; transform: none; }
.lede b { color: var(--fg); font-weight: 600; }
/* the mascot, drawn frame by frame on a canvas sized by the viewport */
.mascot {
  position: relative;
  flex: 0 0 auto;
  height: clamp(220px, 68vh, 679px); /* the 2x sheet's frame is 1358 px tall: never larger than 1:1 at 2x */
  aspect-ratio: 354 / 679; /* the 1x frame size; the script sets the live value from the manifest */
}
.mascot .mascot-still, .mascot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* the still is the first paint; the canvas takes over once the sheet has decoded */
.mascot.is-sheet .mascot-still { visibility: hidden; }
/* A contact shadow on an invisible floor: a tight dark core right under his soles and a wider,
   fainter ambient pool, both centred on the sole line (--feet, set by the script from the
   manifest) and drawn below him so his boots cover the top half. */
.mascot-shadow {
  position: absolute;
  left: 16%;
  right: 16%;
  top: calc(var(--feet, 99.5%) - 2.6%);
  height: 5.2%;
  background:
    radial-gradient(42% 50% at 50% 50%, rgba(16, 18, 23, 0.42), rgba(16, 18, 23, 0.16) 55%, transparent 78%),
    radial-gradient(70% 50% at 50% 50%, rgba(16, 18, 23, 0.12), transparent 72%);
  filter: blur(1.5px);
  pointer-events: none;
}
/* the marker's line, drawn from behind him and in under the heading */
.scribble { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.scribble path { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 810px) {
  .stage { padding: 32px 20px; }
  .row { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .mascot { height: clamp(180px, 38vh, 360px); align-self: center; }
  .copy { --howto-fs: clamp(34px, 9.5vw, 56px); }
  .howto { white-space: normal; }
  .howto-it path, .scribble path { stroke-width: 9; }
}
@media (prefers-reduced-motion: reduce) {
  .lede { transition: none; }
  .howto.is-done .howto-tail .howto-ch { animation: none; }
}
