@font-face { font-family: Telegraf; src: url('assets/fonts/telegraf.otf') format('opentype'); font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
body { font: 13px/1.4 Telegraf, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

/* ---------- scroller ---------- */
.scroller {
  position: fixed; left: 0; right: 0; top: var(--top); bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: none; scrollbar-width: none; outline: none;
  background: var(--bg);
}
.scroller::-webkit-scrollbar { display: none; }
.world { position: relative; width: 100%; overflow: hidden; }
.tile { position: absolute; left: 0; width: 100%; }

/* ---------- work cards ---------- */
.photo {
  position: absolute; display: block; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #1a1a1a; overflow: hidden; cursor: pointer; text-align: left;
}
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.photo:focus-visible { outline: 2px solid #4f9dea; outline-offset: -3px; z-index: 5; }

.label {
  position: absolute; top: 12px; left: 12px;
  color: #fff; background: rgba(17, 17, 17, .9);
  font-size: 11px; line-height: 1.4; padding: 5px 8px; white-space: nowrap;
  pointer-events: none;
}

/* ---------- BLOCK modules ---------- */
.module { position: absolute; background: #101010; overflow: hidden; }
.module-identity {
  position: absolute; left: 4px; right: 4px; top: 4px; height: 28px;
  color: #f2f2f2; font-size: 11px; line-height: 16px; pointer-events: none;
}
.module-index { position: absolute; left: 8px; top: 6px; color: #8c8c8c; }
.module-title { position: absolute; left: 46px; top: 6px; white-space: nowrap; }

/* ---------- header ---------- */
.header { position: fixed; left: 0; right: 0; top: 0; height: var(--header-h); z-index: 10; pointer-events: none; color: #fff; }
.header.cut { mix-blend-mode: difference; }
.header.block { background: #101010; }
.logo { position: absolute; left: 28px; top: 20px; width: 58px; height: 26px; }
.header.block .logo { top: 19px; }
.nav button {
  position: absolute; top: 23px; margin: 0; padding: 0; border: 0; background: none;
  font-size: 13px; line-height: 1.4; cursor: pointer; pointer-events: auto;
}
.nav .about   { left: 77.78%; }
.nav .contact { left: 84.72%; }
.nav .works   { left: 92.64%; }
.nav button:focus-visible { outline: 2px solid #4f9dea; outline-offset: 4px; }

/* ---------- phone ---------- */
@media (max-width: 819px) {
  .logo { left: 16px; top: 17px; width: 50px; height: 22px; }
  .header.block .logo { top: 15px; }
  .nav { position: absolute; right: 6px; top: 0; height: var(--header-h); display: flex; align-items: center; pointer-events: auto; }
  .nav button { position: static; padding: 12px 10px; font-size: 13px; }
  .label { top: 10px; font-size: 10px; padding: 4px 7px; }
}

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