@font-face {
  font-family: "Cygnito Mono";
  src: url("assets/cygnito-mono.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/pp-neue-montreal-book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* about_sticker_v2a — Figma "ABOUT" (node 604:5998): the studio statement in
   big type with stickers set into it, the glass ball (sphere-ui_v4b) and the
   glass secondary menu (sphere-ui_v4a). */
:root {
  --bg: #e3e3e3;
  --ball: 200px;       /* set from ball.js */
  --s: 1;              /* layout scale: viewport width / 1728 (main.js) */
}

html, body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---- The page: laid out in Figma px on a 1728 × 1117 frame, scaled to fit
   the window's width. ---------------------------------------------------- */

.about-frame {
  position: relative;
  width: 100%;
  height: calc(1117px * var(--s));
}
.about {
  position: absolute;
  left: 0;
  top: 0;
  width: 1728px;
  height: 1117px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.about-text {
  position: absolute;
  left: 30px;
  top: 28px;
  width: 1668px;
  margin: 0;
  font: 400 64px/1.1 "PP Neue Montreal", "Helvetica Neue", sans-serif;
  letter-spacing: -1.28px;
  color: #000;
  white-space: pre-wrap;
}
.about-text p { margin: 0; }
.about-text em { font-style: normal; color: #ff5b00; }

/* A sticker: placed by its centre (--x, --y), sized (--w, --h), turned (--r). */
.sticker {
  position: absolute;
  left: calc(var(--x) * 1px - var(--w) * 0.5px);
  top: calc(var(--y) * 1px - var(--h) * 0.5px);
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: rotate(calc(var(--r, 0) * 1deg));
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
/* Figma "fk - sticker stroke": a thin white die-cut edge round the cut-out. */
.sticker.is-cut {
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff);
}
/* The paste-down layer (paste.js): over the page, in the same Figma px. */
.paste-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 1728px;
  height: 1117px;
  pointer-events: none;
}
/* Before the intro (intro.js) runs: text and stickers wait hidden. */
.about.is-intro .about-text, .about.is-intro .sticker { opacity: 0; }

/* ---- The ball ------------------------------------------------------------- */

.ball {
  position: fixed;
  /* In from the corner, as sphere-ui_v4b (ball.js sets --pan-x/--pan-y). */
  left: calc(32px + var(--pan-x, 0px));
  bottom: calc(32px - var(--pan-y, 0px));
  width: var(--ball);
  height: var(--ball);
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  z-index: 10;
}
.ball.is-dragging { cursor: grabbing; }

.ball:focus-visible { outline: 2px solid rgb(0 0 0 / 0.4); outline-offset: 4px; }

/* Glass: frosted fallback first; Chromium also understands the SVG lens and
   replaces it with real refraction (other browsers drop that declaration). */
.ball-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backdrop-filter: blur(1.5px) saturate(1.15);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.15);
}
.ball-glass.has-lens { backdrop-filter: url(#lens); }

.ball-canvas {
  /* The Figma ball is turned 5.63° (its shading and the logo with it). */
  transform: rotate(5.63deg);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Direction hints: four small chevrons that appear on hover. */
.ball-hint {
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgb(0 0 0 / 0.5);
  border-left: 1.5px solid rgb(0 0 0 / 0.5);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.ball:hover .ball-hint, .ball:focus-visible .ball-hint { opacity: 1; }
.ball.is-dragging .ball-hint { opacity: 0; }
.ball-hint--up    { top: -14px;  left: 50%; transform: translateX(-50%) rotate(45deg); }
.ball-hint--down  { bottom: -14px; left: 50%; transform: translateX(-50%) rotate(225deg); }
.ball-hint--left  { left: -14px; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.ball-hint--right { right: -14px; top: 50%; transform: translateY(-50%) rotate(135deg); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}



/* Sub-page tags curved round the ball (tags.js). */
.ball-tags {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
  overflow: visible;
  text-transform: uppercase;
}

/* The 8-ball face is clickable (shake it). */
.ball.is-lucky:not(.is-dragging) { cursor: pointer; }

/* v4a: the ball's shadow on the page (placed by ball.js). */
.ball-shadow {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0.18) 62%, transparent);
  filter: blur(12px);
}

/* Secondary menu (menu.js, from sphere-ui_v4a), Figma node 578:30280, restyled to match the
   glass ball — a frosted pill lit from the top left like the ball, with a
   tiny glass ball for the switch's knob. */
.menu2 {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 40px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  font: 12px/1 "Cygnito Mono", ui-monospace, monospace;
  text-transform: uppercase;
  color: #010103;
  user-select: none;
  -webkit-user-select: none;
  /* Glass: frosted, a little brighter at the top where the light catches it. */
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.22) 55%, rgb(255 255 255 / 0.32));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),          /* lit top rim */
    inset 0 -1px 0 rgb(0 0 0 / 0.08),               /* shaded underside */
    inset 0 0 0 1px rgb(255 255 255 / 0.35),
    0 1px 2px rgb(0 0 0 / 0.08),
    6px 12px 26px rgb(0 0 0 / 0.14);                /* on the page, down-right like the ball's */
}
.menu2-mode { display: flex; align-items: center; gap: 12px; }
.menu2-label { cursor: pointer; transition: opacity 200ms; }
.menu2[data-mode="stickers"] .menu2-label[data-mode="blobs"],
.menu2[data-mode="blobs"] .menu2-label[data-mode="stickers"] { opacity: 0.4; }

/* The switch: a groove pressed into the glass, a little glass ball in it. */
.menu2-switch {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgb(0 0 0 / 0.06);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.22), inset 0 -1px 0 rgb(255 255 255 / 0.8);
}
.menu2-switch:focus-visible { outline: 2px solid rgb(0 0 0 / 0.4); outline-offset: 3px; }
.menu2-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 12%, rgb(255 255 255 / 0) 34%),
    radial-gradient(circle at 50% 60%, #f4f5f7, #c9ccd2 70%, #9ea2aa);
  box-shadow: inset 0 -1px 2px rgb(0 0 0 / 0.18), 1px 2px 3px rgb(0 0 0 / 0.25);
  /* Rolls across with a little overshoot, like the ball's own rolls. */
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.menu2[data-mode="blobs"] .menu2-knob { transform: translateX(16px) rotate(180deg); }

.menu2-rule { width: 1px; height: 16px; background: rgb(0 0 0 / 0.18); }
.menu2-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu2-social { display: flex; gap: 8px; }
.menu2-social a { display: block; width: 16px; height: 16px; opacity: 0.85; transition: opacity 150ms, transform 150ms; }
.menu2-social a:hover { opacity: 1; transform: translateY(-1px); }
.menu2-social img { display: block; width: 100%; height: 100%; }

/* v2a: the sticker balloon (balloon.js) — over the page, under the ball and
   menu. It takes no pointer events itself: balloon.js hit-tests it. */
.balloon-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}
body.is-over-balloon { cursor: grab; }
body.is-grabbing-balloon, body.is-grabbing-balloon * { cursor: grabbing !important; user-select: none; }
.balloon-shadow {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 7;               /* under the balloon (8), over the page */
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;   /* fuller above, like the balloon */
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.3) 55%, transparent);
  filter: blur(14px);
  opacity: 0;
  transform-origin: 50% 40%;
}
