:root {
  color-scheme: dark;
  --bg: #080807;
  --bg-soft: #11110f;
  --surface: #171715;
  --surface-2: #20201d;
  --line: rgba(246, 240, 228, 0.14);
  --line-soft: rgba(246, 240, 228, 0.08);
  --text: #f4efe5;
  --muted: #aaa295;
  --dim: #726c63;
  --accent: #e6f25a;
  --accent-2: #ff5f3d;
  --blue: #73a7ff;
  --green: #61d095;
  --violet: #a891ff;
  --chrome: #0b0d0f;
  --chrome-2: #11151a;
  --panel: rgba(14, 17, 20, 0.88);
  --panel-raised: rgba(19, 23, 28, 0.94);
  --panel-sunken: #090b0d;
  --hud-line: rgba(180, 204, 218, 0.18);
  --hud-line-hot: rgba(214, 255, 98, 0.45);
  --hud-text: #d9e2e3;
  --hud-muted: #7f8b90;
  --signal: #e6f25a;
  --warning: #ffb84d;
  --danger: #ff5f3d;
  --cyan: #55d8ff;
  --grid-line: rgba(116, 146, 157, 0.085);
  --max: 1180px;
  --space: clamp(18px, 2.4vw, 32px);

  /* Border-radius scale — golden-ratio (φ) ladder.
     Base X is the small-control radius; each step up = previous × φ.
     Pick the tier by element size: the bigger the surface, the higher the step. */
  --phi: 1.618;
  --radius-1: 3px;                              /* X     — buttons, tags, nav, chips, metrics */
  --radius-2: calc(var(--radius-1) * var(--phi)); /* X·φ   ≈ 4.9px — cards, tiles, frames, embeds */
  --radius-3: calc(var(--radius-2) * var(--phi)); /* X·φ²  ≈ 7.9px — surface panels (hero copy backdrop) */
  --radius-4: calc(var(--radius-3) * var(--phi)); /* X·φ³  ≈ 12.7px — overlays, large modals */
  --radius-5: calc(var(--radius-4) * var(--phi)); /* X·φ⁴  ≈ 20.6px — full-bleed feature surfaces */
  --radius: var(--radius-2);                    /* legacy alias → card tier */
  --font-ui: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "CAT Rhythmus", "Arial Black", Impact, var(--font-ui);
}

@font-face {
  font-family: "Misadventures";
  src: url("../fonts/MisadventuresW00-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Primary display font (full Latin + Cyrillic coverage) */
@font-face {
  font-family: "Gogh";
  src: url("../fonts/Gogh-ExtraBold.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CAT Rhythmus";
  src: url("../fonts/CATRhythmus.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DotMatrix";
  src: url("../fonts/DotMatrix-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BeckerShadow";
  src: url("../fonts/BeckerShadow.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LazenbyCompLiquid";
  src: url("../fonts/LazenbyCompLiquid.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  cursor: -webkit-image-set(url("../cursors/cursor-normal-1x.png") 1x, url("../cursors/cursor-normal-2x.png") 2x) 3 4, auto;
  cursor: image-set(url("../cursors/cursor-normal-1x.png") 1x, url("../cursors/cursor-normal-2x.png") 2x) 3 4, auto;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.screen {
  position: relative;
  scroll-margin-top: 62px;
}

.screen-copy {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 6;
  padding: 4px 9px;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--hud-muted);
  background: rgba(9, 11, 13, 0.42);
  border: 1px solid var(--hud-line);
  border-radius: var(--radius-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.4;
  transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.screen:hover > .screen-copy,
.screen-copy:focus-visible {
  opacity: 1;
}

.screen-copy:hover {
  color: var(--hud-text);
  border-color: rgba(214, 255, 98, 0.6);
}

.screen-copy.is-copied {
  opacity: 1;
  color: #d6ff62;
  border-color: #d6ff62;
}

.nav-links a.is-active {
  color: var(--hud-text);
  border-color: var(--hud-line);
  background: rgba(255, 255, 255, 0.045);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  color: var(--hud-muted);
  text-decoration: none;
  border: 1px solid var(--hud-line);
  border-radius: var(--radius-1);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-back:hover,
.nav-back:focus-visible {
  color: var(--hud-text);
  border-color: rgba(214, 255, 98, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.lab-shot {
  margin: 0;
  border: 1px solid var(--hud-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.lab-shot img,
.lab-shot__video {
  display: block;
  width: 100%;
  height: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 95, 61, 0.08), transparent 280px),
    radial-gradient(circle at 80% 0%, rgba(214, 255, 98, 0.08), transparent 360px),
    var(--bg);
  background-size: auto, auto, auto;
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

body.art-page {
  background: var(--bg);
}

a {
  color: inherit;
}

/* Inline text links: accent color, no underline (underline on hover).
   Classed links (.btn etc.) keep their component styles. */
.copy-block a:not([class]),
.lh-text a:not([class]),
.mv-intro a:not([class]),
.manifesto-body a:not([class]),
p a:not([class]) {
  color: var(--accent);
  text-decoration: none;
}

.copy-block a:not([class]):hover,
.lh-text a:not([class]):hover,
.mv-intro a:not([class]):hover,
.manifesto-body a:not([class]):hover,
p a:not([class]):hover {
  text-decoration: underline;
}

a,
button,
[role="button"],
input,
select,
textarea,
label {
  cursor: -webkit-image-set(url("../cursors/cursor-link-1x.png") 1x, url("../cursors/cursor-link-2x.png") 2x) 3 4, pointer;
  cursor: image-set(url("../cursors/cursor-link-1x.png") 1x, url("../cursors/cursor-link-2x.png") 2x) 3 4, pointer;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(var(--max), calc(100% - var(--space) * 2));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px var(--space);
  border-bottom: 1px solid var(--hud-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.012)),
    rgba(9, 11, 13, 0.26);
  backdrop-filter: blur(32px) saturate(1.34);
  -webkit-backdrop-filter: blur(32px) saturate(1.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 12px 38px rgba(0,0,0,0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(230,242,90,0.34);
  background: rgba(9, 11, 13, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 18px rgba(230,242,90,0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: saturate(1.18) contrast(1.08);
}

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 30px;
  padding: 6px 10px;
  color: var(--hud-muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--hud-text);
  border-color: var(--hud-line);
  background: rgba(255, 255, 255, 0.045);
}

.hero {
  --hero-bg-y: 0px;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: start;
  padding: clamp(24px, 5vw, 58px) 0 36px;
  background-image: url("../images/graph.png");
  background-repeat: no-repeat;
  background-position: center var(--hero-bg-y);
  background-size: 100% auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: end;
}

.hero .eyebrow {
  margin-bottom: clamp(16px, 2.7vw, 36px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.93;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 {
  max-width: 1080px;
  font-size: clamp(66px, 12.6vw, 178px);
  line-height: 0.82;
}

.hero h1 span {
  color: var(--accent);
}

.hero h1 .hero-kicker {
  display: block;
  color: var(--text);
  font-size: 0.58em;
  line-height: 0.85;
}

.hero h1 .hero-main {
  display: block;
  color: var(--accent);
  font-size: 1em;
  line-height: 0.78;
}

/* Grain confined to each glyph: opaque noise blended over the accent fill, clipped to the letter */
.hero h1 .hero-main .type-art__char {
  /* CAT Rhythmus glyphs overflow their declared em box (yMax 906 vs ascent 750):
     grow the paint box so background-clip:text doesn't crop the fill, cancel with margins */
  padding: 0.22em 0.06em;
  margin: -0.22em -0.06em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='80'%20height='80'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type='linear'%20slope='1.5'%20intercept='0.05'/%3E%3CfeFuncG%20type='linear'%20slope='1.5'%20intercept='0.05'/%3E%3CfeFuncB%20type='linear'%20slope='1.5'%20intercept='0.05'/%3E%3CfeFuncA%20type='discrete'%20tableValues='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(var(--accent), var(--accent));
  background-size: 80px 80px, 100% 100%;
  background-position: center, center;
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  /* poster's chromatic offset can't be a text-shadow here (it paints over the clipped fill);
     do it as drop-shadow so the red/blue glyph copies sit behind the grained lime fill */
  text-shadow: 0 0 18px rgba(230, 242, 90, 0.2);
  filter:
    drop-shadow(0.035em 0.02em 0 rgba(255, 95, 61, 0.48))
    drop-shadow(-0.025em -0.018em 0 rgba(115, 167, 255, 0.42)) !important;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: #d5ccbd;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.hero-copy-placeholder:empty {
  display: none;
}

.hero-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-text-panel {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: clamp(20px, 2vw, 30px) clamp(22px, 2.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-3);
  background: rgba(12, 12, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-panel p {
  margin: 0;
  color: #ece6da;
}

.manifesto-link {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.manifesto-link:hover {
  text-decoration: underline;
}

.section {
  position: relative;
  padding: clamp(42px, 7vw, 88px) 0;
  border-top: 1px solid var(--hud-line);
}

/* Inner pages: drop section/art-strip dividers */
.project-page .section,
.page-hero ~ .section {
  border-top: none;
}

.project-page .art-strip {
  border-top: none;
  border-bottom: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.project-hero h1 {
  margin: 0;
}

/* hero eyebrows on inner pages: more air before the title */
.project-hero .eyebrow,
.page-hero .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--signal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.btn,
button.btn {
  display: inline-flex;
  flex: none;
  width: fit-content;
  white-space: nowrap;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-1);
  background: var(--accent);
  color: #101108;
  font: inherit;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: -webkit-image-set(url("../cursors/cursor-link-1x.png") 1x, url("../cursors/cursor-link-2x.png") 2x) 3 4, pointer;
  cursor: image-set(url("../cursors/cursor-link-1x.png") 1x, url("../cursors/cursor-link-2x.png") 2x) 3 4, pointer;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  text-shadow: none;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  border-color: rgba(180,204,218,0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.035)),
    rgba(20, 25, 30, 0.26);
  color: var(--hud-text);
}

.btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero .action-row {
  margin-top: clamp(34px, 5vw, 74px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.05), transparent 55%),
    rgba(14, 17, 20, 0.22);
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 52px rgba(0,0,0,0.24);
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 242, 90, 0.58);
  background-color: rgba(18, 22, 27, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(230, 242, 90, 0.12),
    0 0 26px rgba(230, 242, 90, 0.12),
    0 18px 52px rgba(0,0,0,0.24);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card h3 {
  margin: auto 0 0;
  max-width: 12ch;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.98;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.project-card:hover h3 {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(230, 242, 90, 0.16);
}

.project-card p {
  margin: 0;
  color: var(--hud-text);
  font-size: 13px;
  line-height: 1.35;
}

.project-card--editorial {
  background:
    linear-gradient(160deg, rgba(255, 95, 61, 0.18), transparent 58%),
    rgba(23, 18, 16, 0.26);
}

.project-card--cartographic {
  background:
    linear-gradient(145deg, rgba(115, 167, 255, 0.2), transparent 56%),
    rgba(16, 20, 23, 0.26);
}

.project-card--forensic {
  background:
    linear-gradient(145deg, rgba(97, 208, 149, 0.16), transparent 56%),
    rgba(16, 22, 18, 0.26);
}

.project-card--timeline {
  background:
    linear-gradient(145deg, rgba(168, 145, 255, 0.2), transparent 56%),
    rgba(18, 16, 23, 0.26);
}

.project-card--operator {
  background:
    linear-gradient(145deg, rgba(255, 184, 77, 0.18), transparent 56%),
    rgba(24, 19, 13, 0.26);
}

.project-card--image-lab {
  background:
    linear-gradient(145deg, rgba(255, 88, 158, 0.16), transparent 56%),
    rgba(24, 13, 19, 0.25);
}

.project-card--archive {
  background:
    linear-gradient(145deg, rgba(177, 200, 190, 0.14), transparent 56%),
    rgba(16, 18, 17, 0.27);
}

.project-card--black-box {
  background:
    linear-gradient(145deg, rgba(230, 242, 90, 0.12), transparent 52%),
    rgba(12, 13, 11, 0.24);
}

.work-section {
  min-height: 760px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12,16,18,0.82), rgba(9,10,12,0.96));
}

.work-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0.58) 100%),
    linear-gradient(180deg, transparent 58%, rgba(0,0,0,0.34));
}

.work-section__inner {
  position: relative;
  z-index: 3;
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.96;
}

/* Lost Highway — embedded WebGL title-sequence recreation */
.lh-ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--hud-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lh-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lh-text {
  margin-top: clamp(22px, 3vw, 36px);
  columns: 2;
  column-gap: clamp(24px, 4vw, 48px);
  color: var(--muted);
}

.lh-text p {
  margin: 0 0 1em;
  break-inside: avoid;
}

@media (max-width: 640px) {
  .lh-text {
    columns: 1;
  }
}

/* Microvideo — single-screen phase bento */
.mv-section {
  padding-top: clamp(16px, 2.5vw, 26px);
  padding-bottom: clamp(16px, 2.5vw, 26px);
}

.mv-section .section-head {
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.mv-intro {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--muted);
}

.bento {
  --cols: 20;
  --rows: 10;
  /* rows used for the viewport-height cap: keeps cell size stable when a page
     extends the grid downwards with --rows > 10 */
  --rows-fit: 10;
  --g: 6px;
  --gutter: clamp(14px, 3vw, 36px);
  /* square cell sized to fill full viewport width, capped by viewport height */
  --u: min(
    (100vw - 2 * var(--gutter) - (var(--cols) - 1) * var(--g)) / var(--cols),
    (82vh - (var(--rows-fit) - 1) * var(--g)) / var(--rows-fit)
  );
  /* break out of the shell to full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--u));
  grid-template-rows: repeat(var(--rows), var(--u));
  gap: var(--g);
  justify-content: center;
  margin-top: clamp(16px, 2vw, 26px);
}

.bento__tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #000;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.bento.is-swapping {
  cursor: grabbing;
}

.bento.is-swapping .bento__tile:hover :is(img, video) {
  transform: none;
  filter: saturate(1.05) contrast(1.04);
}

.bento__tile.is-dragging {
  opacity: 0.32;
  border-color: var(--hud-line-hot);
}

.bento__tile.is-drop {
  z-index: 3;
}

.bento__tile.is-drop::after {
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 30px rgba(230, 242, 90, 0.25);
}

.bento__tile.just-swapped {
  animation: bento-pop 0.45s ease;
}

@keyframes bento-pop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.bento-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hud-line-hot);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
  will-change: transform;
}

.bento-ghost :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento__tile :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}

.bento__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.4s ease;
}

.bento__tile:hover {
  border-color: var(--hud-line-hot);
  z-index: 2;
}

.bento__tile:hover :is(img, video) {
  transform: scale(1.07);
  filter: saturate(1.28) contrast(1.1) brightness(1.06);
}

.bento__tile:hover::after {
  box-shadow: inset 0 0 0 1px var(--hud-line-hot);
}

@media (max-width: 640px) {
  .bento {
    --u: 64px;
  }
}

.magnetic-title__line {
  display: block;
}

.magnetic-title__word {
  display: inline-block;
  margin-right: 0.16em;
}

.magnetic-title__char {
  --mx: 0px;
  --my: 0px;
  --mr: 0deg;
  display: inline-block;
  transform: translate(var(--mx), var(--my)) rotate(var(--mr));
  transition: transform 90ms ease-out;
  will-change: transform;
}

/* Lab pager: horizontal pages with side nav */
.lab-pager {
  position: relative;
}

.lab-pager__viewport {
  overflow: hidden;
}

.lab-pager__track {
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lab-pager__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.lab-pager__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  font: 400 20px/1 var(--font-ui);
  color: var(--hud-muted);
  background: rgba(9, 11, 13, 0.5);
  border: 1px solid var(--hud-line);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.lab-pager__nav:hover {
  color: var(--accent);
  border-color: var(--hud-line-hot);
}

.lab-pager__nav[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

.lab-pager__nav--prev { left: clamp(8px, 1.6vw, 24px); }
.lab-pager__nav--next { right: clamp(8px, 1.6vw, 24px); }

.lab-pager__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.lab-pager__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--hud-line);
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lab-pager__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.lab-title.lab-title--dot {
  font-family: "DotMatrix", var(--font-display);
  font-size: clamp(1.05rem, min(2.6vw, 5.6vmin), 2.4rem);
  white-space: nowrap;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #f4efe5;
  color: #111;
}

.post-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #111;
}

.post-card p {
  margin: 0;
  color: #26241f;
  font-size: 14px;
  font-weight: 560;
}

/* accent links are unreadable on the cream card: use the site's secondary accent, darkened */
.post-card a:not([class]) {
  color: #c9340e;
}

.post-card .eyebrow {
  margin-bottom: 10px;
  color: #6b6455;
}

.post-card .post-embed {
  margin-top: 14px;
}

@media (max-width: 720px) {
  /* Lab pager: horizontal pages with side nav */
.lab-pager {
  position: relative;
}

.lab-pager__viewport {
  overflow: hidden;
}

.lab-pager__track {
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lab-pager__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.lab-pager__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  font: 400 20px/1 var(--font-ui);
  color: var(--hud-muted);
  background: rgba(9, 11, 13, 0.5);
  border: 1px solid var(--hud-line);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.lab-pager__nav:hover {
  color: var(--accent);
  border-color: var(--hud-line-hot);
}

.lab-pager__nav[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

.lab-pager__nav--prev { left: clamp(8px, 1.6vw, 24px); }
.lab-pager__nav--next { right: clamp(8px, 1.6vw, 24px); }

.lab-pager__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.lab-pager__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--hud-line);
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lab-pager__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.journal-grid {
    grid-template-columns: 1fr;
  }
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-1);
  color: rgba(255,255,255,0.88);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(230,242,90,0.07);
  opacity: 0.86;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

/* Lab section: give the preview more room so the UI inside reads better */
.site-shell.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.copy-block {
  color: var(--hud-text);
  font-size: 15px;
}

.copy-block p {
  margin: 0 0 16px;
}

.lab-title {
  font-family: "LazenbyCompLiquid", var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0.1em 0 0.35em;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lab-card {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-height: 286px;
  border: 1px solid var(--hud-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
}

.lab-card__image {
  display: block;
  overflow: hidden;
  background: var(--panel-sunken);
  border-bottom: 1px solid var(--hud-line);
}

.lab-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.75);
  transition: transform 180ms ease, filter 180ms ease;
}

.lab-card:hover img {
  transform: scale(1.04);
  filter: none;
}

.lab-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
  color: var(--hud-muted);
  font-size: 12px;
}

.lab-card__body strong {
  color: var(--hud-text);
  font-size: 13px;
  text-transform: uppercase;
}

.page-hero,
.project-hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(26px, 5vw, 60px);
}

.page-hero p,
.project-hero p {
  max-width: 780px;
}

.project-hero .lead,
.page-hero .lead {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.32;
  letter-spacing: 0;
  text-transform: none;
}

.project-hero .tag-row {
  margin-top: 18px;
}

.project-page {
  min-height: 100vh;
  background: var(--bg);
}

.project-hero h1 {
  max-width: 880px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.94;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.type-art {
  --type-depth: 0.12em;
  position: relative;
  display: block;
  isolation: isolate;
  overflow: visible;
  text-shadow: 0.035em 0.035em 0 rgba(214, 255, 98, 0.18);
}

.type-art__word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.18em;
}

.type-art__char {
  --i: 0;
  --r: 0deg;
  --x: 0px;
  --y: 0px;
  --sx: 1;
  --sy: 1;
  display: inline-block;
  transform:
    translate(var(--x), var(--y))
    rotate(var(--r))
    scaleX(var(--sx))
    scaleY(var(--sy));
  transform-origin: 50% 65%;
  will-change: transform, filter;
}

.type-art--glitch .type-art__char {
  animation: type-glitch 2.8s steps(2, end) infinite;
  animation-delay: calc(var(--i) * -71ms);
  text-shadow:
    0.05em 0 rgba(255, 95, 61, 0.55),
    -0.045em 0 rgba(115, 167, 255, 0.5);
}

.type-art--prism .type-art__char {
  color: var(--text);
  text-shadow:
    calc(var(--i) * 0.002em) 0.035em 0 rgba(214, 255, 98, 0.26),
    -0.045em -0.02em 0 rgba(168, 145, 255, 0.36);
  animation: type-prism 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -110ms);
}

.type-art--fracture .type-art__char {
  clip-path: polygon(0 0, 100% 3%, 92% 100%, 5% 88%);
  text-shadow: 0.08em 0.04em 0 rgba(97, 208, 149, 0.28);
}

.type-art--wave .type-art__char {
  animation: type-wave 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -95ms);
}

.type-art--scan {
  background:
    repeating-linear-gradient(0deg, rgba(244, 239, 229, 0.12) 0 1px, transparent 1px 10px);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(244, 239, 229, 0.96);
}

.type-art--scan .type-art__char {
  animation: type-scan 2.2s linear infinite;
  animation-delay: calc(var(--i) * -40ms);
}

.type-art--cut .type-art__char {
  animation: type-cut 5s cubic-bezier(.2, .8, .2, 1) infinite;
  animation-delay: calc(var(--i) * -130ms);
}

.type-art--poster {
  --poster-a: var(--accent);
  --poster-b: #ff5f3d;
  --poster-c: #73a7ff;
  color: var(--text);
  text-shadow:
    0.035em 0.02em 0 rgba(255, 95, 61, 0.48),
    -0.025em -0.018em 0 rgba(115, 167, 255, 0.42);
}

.type-art--poster .type-art__word {
  margin-right: 0.12em;
}

.type-art--poster .hero-kicker,
.type-art--poster .hero-kicker .type-art__char {
  color: var(--text);
}

.type-art--poster > .type-art__word:nth-last-of-type(2),
.type-art--poster > .type-art__word:nth-last-of-type(1) {
  color: var(--poster-a);
  text-shadow:
    0.045em 0.025em 0 rgba(255, 95, 61, 0.52),
    -0.04em -0.02em 0 rgba(115, 167, 255, 0.48),
    0 0 32px rgba(214, 255, 98, 0.16);
}

.type-art--poster .type-art__char {
  animation: type-poster 4.8s cubic-bezier(.2, .8, .2, 1) infinite;
  animation-delay: calc(var(--i) * -84ms);
}

@keyframes type-glitch {
  0%, 83%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)); filter: none; }
  86% { transform: translate(calc(var(--x) + 0.045em), calc(var(--y) - 0.035em)) rotate(calc(var(--r) - 2deg)) scaleX(calc(var(--sx) * 1.08)); filter: contrast(1.35); }
  89% { transform: translate(calc(var(--x) - 0.06em), calc(var(--y) + 0.025em)) rotate(calc(var(--r) + 2deg)) scaleX(calc(var(--sx) * 0.94)); }
}

@keyframes type-prism {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)); }
  50% { transform: translate(calc(var(--x) + 0.025em), calc(var(--y) - 0.035em)) rotate(calc(var(--r) + 1.5deg)) scaleX(calc(var(--sx) * 1.06)); }
}

@keyframes type-wave {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)); }
  45% { transform: translate(var(--x), calc(var(--y) - 0.11em)) rotate(calc(var(--r) + 3deg)) scaleX(calc(var(--sx) * 0.92)); }
}

@keyframes type-scan {
  0%, 100% { filter: brightness(1); transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)); }
  50% { filter: brightness(1.45); transform: translate(calc(var(--x) + 0.02em), var(--y)) rotate(var(--r)) scaleX(calc(var(--sx) * 1.03)); }
}

@keyframes type-cut {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)) skewX(0deg); }
  48% { transform: translate(calc(var(--x) - 0.02em), calc(var(--y) + 0.02em)) rotate(calc(var(--r) - 1deg)) scaleX(calc(var(--sx) * 1.1)) skewX(-4deg); }
}

@keyframes type-poster {
  0%, 100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(var(--sx)) scaleY(var(--sy)) skewX(0deg);
    filter: saturate(1);
  }
  36% {
    transform: translate(calc(var(--x) + 0.018em), calc(var(--y) - 0.035em)) rotate(calc(var(--r) + 1.4deg)) scaleX(calc(var(--sx) * 1.05)) scaleY(var(--sy)) skewX(-3deg);
    filter: saturate(1.35);
  }
  64% {
    transform: translate(calc(var(--x) - 0.022em), calc(var(--y) + 0.018em)) rotate(calc(var(--r) - 1deg)) scaleX(calc(var(--sx) * 0.96)) scaleY(calc(var(--sy) * 1.03)) skewX(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-art__char {
    animation: none !important;
  }
}

.project-frame {
  border: 1px solid var(--hud-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 46px),
    var(--panel);
  border-radius: var(--radius);
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 10px;
  border: 1px solid var(--hud-line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-1);
}

.metric strong {
  display: block;
  color: var(--signal);
  font-size: 15px;
  text-transform: uppercase;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--hud-text);
}

.data-table thead {
  color: var(--signal);
  text-transform: uppercase;
  font-size: 10px;
}

.data-table th,
.data-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--hud-line);
  text-align: left;
  vertical-align: top;
}

/* body is a flex column: main grows, footer sits at the viewport bottom on short pages */
body > main {
  flex: 1;
}

.site-footer {
  min-height: 40px;
  padding: 8px var(--space);
  border-top: 1px solid var(--hud-line);
  background: rgba(9, 11, 13, 0.94);
  color: var(--hud-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.site-footer .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--hud-text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s ease;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: var(--accent);
}

.art-strip {
  min-height: 320px;
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.art-strip--redakcia {
  background:
    linear-gradient(90deg, rgba(255, 95, 61, 0.2), transparent),
    repeating-linear-gradient(0deg, rgba(244, 239, 229, 0.08) 0 1px, transparent 1px 22px),
    #140e0c;
}

.art-strip--map {
  background:
    radial-gradient(circle at 60% 40%, rgba(115, 167, 255, 0.28), transparent 280px),
    linear-gradient(120deg, #071017, #11160e);
}

.art-strip--layers {
  background:
    linear-gradient(90deg, rgba(97, 208, 149, 0.2), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,0.08) 18px 19px),
    #0e1611;
}

.art-strip--timeline {
  background:
    linear-gradient(120deg, rgba(168, 145, 255, 0.24), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 80px),
    #121018;
}

.art-strip__inner {
  width: min(var(--max), calc(100% - var(--space) * 2));
  margin: 0 auto;
  font-size: clamp(44px, 9vw, 118px);
  line-height: 0.9;
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-bottom: clamp(28px, 8vw, 52px);
    background-size: cover;
    background-position: center top;
  }

  .hero-grid,
  .split,
  .site-shell.split {
    grid-template-columns: 1fr;
  }

  .hero-text-panel {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 28px;
    overflow: visible;
    align-items: flex-start;
  }

  .hero-text-panel > * {
    display: block;
  }

  .project-grid,
  .lab-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .project-grid,
  .lab-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Manifesto overlay */
.manifesto-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}

.manifesto-overlay[hidden] {
  display: none;
}

.manifesto-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: manifesto-fade 0.3s ease both;
}

.manifesto-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-4);
  background: linear-gradient(180deg, #14140f 0%, #0c0c0a 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: manifesto-rise 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.manifesto-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  margin: -8px -8px 0 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.8);
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.manifesto-close > * {
  pointer-events: none;
}

.manifesto-close:hover,
.manifesto-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(40, 40, 34, 0.92);
}

.manifesto-close:active {
  transform: scale(0.92);
}

.manifesto-body {
  position: relative;
  color: #e9e3d6;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.62;
}

.manifesto-body p {
  margin: 0 0 1.05em;
}

.manifesto-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manifesto-q {
  margin: 0 0 0.5em;
  font-family: "BeckerShadow", var(--font-display);
  font-size: clamp(52px, 10vw, 104px);
  line-height: 1;
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
}

.manifesto-sign {
  margin-top: 1.4em;
  color: #fff;
  font-weight: 600;
}

.m-term {
  color: var(--accent);
  cursor: help;
}

.m-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: min(320px, 100%);
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #14110c;
  color: #d9d2c4;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.m-tip.is-on {
  opacity: 1;
  transform: translateY(0);
}

@keyframes manifesto-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes manifesto-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Floating radial menu (home page) — replaces the header.
   Main button = Home; items fan out down-left across a 90° sector.
   ============================================================ */
.fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
}

/* invisible hit-bridge over the fan sector so the cursor never leaves .fab
   while travelling from the button to an item (only captures when open) */
.fab::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 230px;
  height: 230px;
  pointer-events: none;
}

.fab:hover::before,
.fab.is-open::before,
.fab:focus-within::before {
  pointer-events: auto;
}

.fab__main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -4px;
  /* silhouette only — no circle/box; drop-shadow hugs the object edge */
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
}

.fab__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.fab:hover .fab__main,
.fab.is-open .fab__main,
.fab:focus-within .fab__main {
  transform: rotate(-4deg) scale(1.08);
  filter:
    drop-shadow(0 6px 9px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 10px var(--glow, rgba(230, 242, 90, 0.5)));
}

.fab__items {
  position: absolute;
  inset: 0;
}

.fab__item {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  transform: translate(0, 0) scale(0.2);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.46s cubic-bezier(0.18, 0.9, 0.24, 1),
    opacity 0.3s ease;
  transition-delay: 0ms;
}

.fab:hover .fab__item,
.fab.is-open .fab__item,
.fab:focus-within .fab__item {
  transform: translate(var(--tx), var(--ty)) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition-delay: calc(var(--i) * 55ms);
}

.fab__pic {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  /* no circle, no box — the object's own alpha silhouette is the shape,
     drop-shadow hugs the object edge instead of a bounding box */
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s ease;
}

.fab__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.fab__item:hover .fab__pic,
.fab__item:focus-visible .fab__pic {
  transform: scale(1.22);
  filter:
    /* bright crisp stroke hugging the silhouette (0-blur directional offsets) */
    drop-shadow(1px 0 0 var(--glow, #d6f25a))
    drop-shadow(-1px 0 0 var(--glow, #d6f25a))
    drop-shadow(0 1px 0 var(--glow, #d6f25a))
    drop-shadow(0 -1px 0 var(--glow, #d6f25a))
    /* soft glow falling off from the stroke */
    drop-shadow(0 0 7px var(--halo, rgba(230, 242, 90, 0.4)))
    drop-shadow(0 0 3px var(--halo, rgba(230, 242, 90, 0.4)));
}

.fab__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: var(--radius-1);
  border: 1px solid var(--hud-line);
  background: rgba(9, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--hud-text);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fab__item:hover .fab__label,
.fab__item:focus-visible .fab__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fab__main,
  .fab__item,
  .fab__pic,
  .fab__label {
    transition-duration: 0.01ms;
  }
}
